From 94eec042676a8e18cebc9af8f27cd251355f4ba4 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 1 Sep 2005 05:11:46 +0000 Subject: Intern some more strings. 2005-09-01 Matthias Clasen * gdk/*.c: Intern some more strings. * gtk/gtkintl.h: * gtk/*.c: Define an I_() macro and use it instead of the bulky g_intern_static_string(). --- gtk/gtkmenushell.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gtk/gtkmenushell.c') diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index ac6a0d7fd0..bce558672a 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -227,7 +227,7 @@ gtk_menu_shell_get_type (void) }; menu_shell_type = - g_type_register_static (GTK_TYPE_CONTAINER, g_intern_static_string ("GtkMenuShell"), + g_type_register_static (GTK_TYPE_CONTAINER, I_("GtkMenuShell"), &menu_shell_info, G_TYPE_FLAG_ABSTRACT); } @@ -277,7 +277,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) klass->insert = gtk_menu_shell_real_insert; menu_shell_signals[DEACTIVATE] = - g_signal_new ("deactivate", + g_signal_new (I_("deactivate"), G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkMenuShellClass, deactivate), @@ -285,7 +285,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) _gtk_marshal_VOID__VOID, G_TYPE_NONE, 0); menu_shell_signals[SELECTION_DONE] = - g_signal_new ("selection-done", + g_signal_new (I_("selection-done"), G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GtkMenuShellClass, selection_done), @@ -293,7 +293,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) _gtk_marshal_VOID__VOID, G_TYPE_NONE, 0); menu_shell_signals[MOVE_CURRENT] = - g_signal_new ("move_current", + g_signal_new (I_("move_current"), G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GtkMenuShellClass, move_current), @@ -302,7 +302,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) G_TYPE_NONE, 1, GTK_TYPE_MENU_DIRECTION_TYPE); menu_shell_signals[ACTIVATE_CURRENT] = - g_signal_new ("activate_current", + g_signal_new (I_("activate_current"), G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GtkMenuShellClass, activate_current), @@ -311,7 +311,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) G_TYPE_NONE, 1, G_TYPE_BOOLEAN); menu_shell_signals[CANCEL] = - g_signal_new ("cancel", + g_signal_new (I_("cancel"), G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_STRUCT_OFFSET (GtkMenuShellClass, cancel), @@ -319,7 +319,7 @@ gtk_menu_shell_class_init (GtkMenuShellClass *klass) _gtk_marshal_VOID__VOID, G_TYPE_NONE, 0); menu_shell_signals[CYCLE_FOCUS] = - _gtk_binding_signal_new ("cycle_focus", + _gtk_binding_signal_new (I_("cycle_focus"), G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_CALLBACK (gtk_real_menu_shell_cycle_focus), -- cgit v1.2.1