diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-09-01 05:11:46 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-01 05:11:46 +0000 |
commit | 94eec042676a8e18cebc9af8f27cd251355f4ba4 (patch) | |
tree | 51b9ff698258fc9799413f62fb82589c8d525f0e /gtk/gtkicontheme.c | |
parent | f4bbe8f0deb8d1c36829acfc791d632d27805f30 (diff) | |
download | gtk+-94eec042676a8e18cebc9af8f27cd251355f4ba4.tar.gz |
Intern some more strings.
2005-09-01 Matthias Clasen <mclasen@redhat.com>
* 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().
Diffstat (limited to 'gtk/gtkicontheme.c')
-rw-r--r-- | gtk/gtkicontheme.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkicontheme.c b/gtk/gtkicontheme.c index 299b02900c..3dcc0b8bea 100644 --- a/gtk/gtkicontheme.c +++ b/gtk/gtkicontheme.c @@ -256,7 +256,7 @@ gtk_icon_theme_get_type (void) (GInstanceInitFunc) gtk_icon_theme_init, }; - type = g_type_register_static (G_TYPE_OBJECT, g_intern_static_string ("GtkIconTheme"), &info, 0); + type = g_type_register_static (G_TYPE_OBJECT, I_("GtkIconTheme"), &info, 0); } return type; @@ -339,7 +339,7 @@ gtk_icon_theme_get_for_screen (GdkScreen *screen) priv = icon_theme->priv; priv->is_screen_singleton = TRUE; - g_object_set_data (G_OBJECT (screen), g_intern_static_string ("gtk-icon-theme"), icon_theme); + g_object_set_data (G_OBJECT (screen), I_("gtk-icon-theme"), icon_theme); } return icon_theme; @@ -362,7 +362,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass) * that a change has occurred in the contents of the current * icon theme. **/ - signal_changed = g_signal_new ("changed", + signal_changed = g_signal_new (I_("changed"), G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GtkIconThemeClass, changed), @@ -389,7 +389,7 @@ display_closed (GdkDisplay *display, if (was_screen_singleton) { - g_object_set_data (G_OBJECT (screen), g_intern_static_string ("gtk-icon-theme"), NULL); + g_object_set_data (G_OBJECT (screen), I_("gtk-icon-theme"), NULL); priv->is_screen_singleton = FALSE; } @@ -2265,7 +2265,7 @@ gtk_icon_info_get_type (void) static GType our_type = 0; if (our_type == 0) - our_type = g_boxed_type_register_static (g_intern_static_string ("GtkIconInfo"), + our_type = g_boxed_type_register_static (I_("GtkIconInfo"), (GBoxedCopyFunc) gtk_icon_info_copy, (GBoxedFreeFunc) gtk_icon_info_free); |