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/gtkselection.c | |
parent | f4bbe8f0deb8d1c36829acfc791d632d27805f30 (diff) | |
download | gdk-pixbuf-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/gtkselection.c')
-rw-r--r-- | gtk/gtkselection.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk/gtkselection.c b/gtk/gtkselection.c index 739ff38c0..78d257a49 100644 --- a/gtk/gtkselection.c +++ b/gtk/gtkselection.c @@ -58,6 +58,7 @@ #include "gtkmain.h" #include "gtkselection.h" +#include "gtkintl.h" #include "gdk-pixbuf/gdk-pixbuf.h" #ifdef GDK_WINDOWING_X11 @@ -682,7 +683,7 @@ gtk_selection_target_list_get (GtkWidget *widget, sellist->list = gtk_target_list_new (NULL, 0); lists = g_list_prepend (lists, sellist); - g_object_set_data (G_OBJECT (widget), g_intern_static_string (gtk_selection_handler_key), lists); + g_object_set_data (G_OBJECT (widget), I_(gtk_selection_handler_key), lists); return sellist->list; } @@ -708,7 +709,7 @@ gtk_selection_target_list_remove (GtkWidget *widget) } g_list_free (lists); - g_object_set_data (G_OBJECT (widget), g_intern_static_string (gtk_selection_handler_key), NULL); + g_object_set_data (G_OBJECT (widget), I_(gtk_selection_handler_key), NULL); } /** @@ -748,7 +749,7 @@ gtk_selection_clear_targets (GtkWidget *widget, tmp_list = tmp_list->next; } - g_object_set_data (G_OBJECT (widget), g_intern_static_string (gtk_selection_handler_key), lists); + g_object_set_data (G_OBJECT (widget), I_(gtk_selection_handler_key), lists); } /** @@ -2746,7 +2747,7 @@ gtk_selection_data_get_type (void) static GType our_type = 0; if (our_type == 0) - our_type = g_boxed_type_register_static (g_intern_static_string ("GtkSelectionData"), + our_type = g_boxed_type_register_static (I_("GtkSelectionData"), (GBoxedCopyFunc) gtk_selection_data_copy, (GBoxedFreeFunc) gtk_selection_data_free); |