summaryrefslogtreecommitdiff
path: root/gio/gmenumodel.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-09-12 00:00:40 -0400
committerMatthias Clasen <mclasen@redhat.com>2015-09-12 11:13:45 -0400
commit9acd0ddbf3c0f14e6ae7cb3f7faf4c24767f13b8 (patch)
tree97e326f485fbd36233f84124d26511ba26b44cb1 /gio/gmenumodel.c
parentc90f283be33bffde48c244e0478b63fd6798fbcf (diff)
downloadglib-9acd0ddbf3c0f14e6ae7cb3f7faf4c24767f13b8.tar.gz
gio: Intern all signal names beforehand
This avoids pointless copying of static strings.
Diffstat (limited to 'gio/gmenumodel.c')
-rw-r--r--gio/gmenumodel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gio/gmenumodel.c b/gio/gmenumodel.c
index 612f8e7ae..4ffe21f65 100644
--- a/gio/gmenumodel.c
+++ b/gio/gmenumodel.c
@@ -21,6 +21,8 @@
#include "gmenumodel.h"
+#include "glibintl.h"
+
/**
* SECTION:gmenumodel
* @title: GMenuModel
@@ -448,7 +450,7 @@ g_menu_model_class_init (GMenuModelClass *class)
* reported. The signal is emitted after the modification.
**/
g_menu_model_items_changed_signal =
- g_signal_new ("items-changed", G_TYPE_MENU_MODEL,
+ g_signal_new (I_("items-changed"), G_TYPE_MENU_MODEL,
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
g_cclosure_marshal_generic, G_TYPE_NONE,
3, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT);