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/gtkactionmuxer.c | |
parent | c8dcb690aacccf56d84195a2470da0aad74c9e29 (diff) | |
download | gtk+-66f0bdee0adf422f23b5e0bb5addd6256958eb82.tar.gz |
Intern all signal names beforehand
This avoids pointless allocations
Diffstat (limited to 'gtk/gtkactionmuxer.c')
-rw-r--r-- | gtk/gtkactionmuxer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkactionmuxer.c b/gtk/gtkactionmuxer.c index 408973bc2f..643aeb3190 100644 --- a/gtk/gtkactionmuxer.c +++ b/gtk/gtkactionmuxer.c @@ -23,6 +23,7 @@ #include "gtkactionobservable.h" #include "gtkactionobserver.h" +#include "gtkintl.h" #include <string.h> @@ -632,7 +633,7 @@ gtk_action_muxer_class_init (GObjectClass *class) class->finalize = gtk_action_muxer_finalize; class->dispose = gtk_action_muxer_dispose; - accel_signal = g_signal_new ("primary-accel-changed", GTK_TYPE_ACTION_MUXER, G_SIGNAL_RUN_LAST, + accel_signal = g_signal_new (I_("primary-accel-changed"), GTK_TYPE_ACTION_MUXER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING); properties[PROP_PARENT] = g_param_spec_object ("parent", "Parent", |