diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-09-12 09:13:00 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-09-12 12:50:39 -0400 |
commit | 66f0bdee0adf422f23b5e0bb5addd6256958eb82 (patch) | |
tree | f6d1dc55558cdd1d56015c74e13b8d4f6e05613f /gtk/gtkgesturezoom.c | |
parent | c8dcb690aacccf56d84195a2470da0aad74c9e29 (diff) | |
download | gtk+-66f0bdee0adf422f23b5e0bb5addd6256958eb82.tar.gz |
Intern all signal names beforehand
This avoids pointless allocations
Diffstat (limited to 'gtk/gtkgesturezoom.c')
-rw-r--r-- | gtk/gtkgesturezoom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c index 00a8f17639..8b61b3594e 100644 --- a/gtk/gtkgesturezoom.c +++ b/gtk/gtkgesturezoom.c @@ -34,6 +34,7 @@ #include <math.h> #include "gtkgesturezoom.h" #include "gtkgesturezoomprivate.h" +#include "gtkintl.h" typedef struct _GtkGestureZoomPrivate GtkGestureZoomPrivate; @@ -196,7 +197,7 @@ gtk_gesture_zoom_class_init (GtkGestureZoomClass *klass) * Since: 3.14 */ signals[SCALE_CHANGED] = - g_signal_new ("scale-changed", + g_signal_new (I_("scale-changed"), GTK_TYPE_GESTURE_ZOOM, G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkGestureZoomClass, scale_changed), |