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/gtkdnd.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/gtkdnd.c')
-rw-r--r-- | gtk/gtkdnd.c | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index c4611f496e..1ab4bf7205 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -42,6 +42,7 @@ #include "gtkplug.h" #include "gtkstock.h" #include "gtkwindow.h" +#include "gtkintl.h" #include "gtkalias.h" static GSList *source_widgets = NULL; @@ -316,7 +317,7 @@ set_can_change_screen (GtkWidget *widget, { can_change_screen = can_change_screen != FALSE; - g_object_set_data (G_OBJECT (widget), g_intern_static_string ("gtk-dnd-can-change-screen"), + g_object_set_data (G_OBJECT (widget), I_("gtk-dnd-can-change-screen"), GUINT_TO_POINTER (can_change_screen)); } @@ -349,7 +350,7 @@ gtk_drag_get_ipc_widget (GdkScreen *screen) result = drag_widgets->data; drag_widgets = drag_widgets->next; g_object_set_data (G_OBJECT (screen), - g_intern_static_string ("gtk-dnd-ipc-widgets"), + I_("gtk-dnd-ipc-widgets"), drag_widgets); g_slist_free_1 (tmp); } @@ -378,7 +379,7 @@ gtk_drag_release_ipc_widget (GtkWidget *widget) "gtk-dnd-ipc-widgets"); drag_widgets = g_slist_prepend (drag_widgets, widget); g_object_set_data (G_OBJECT (screen), - g_intern_static_string ("gtk-dnd-ipc-widgets"), + I_("gtk-dnd-ipc-widgets"), drag_widgets); } @@ -796,7 +797,7 @@ gtk_drag_get_data (GtkWidget *widget, g_signal_connect (selection_widget, "selection_received", G_CALLBACK (gtk_drag_selection_received), widget); - g_object_set_data (G_OBJECT (selection_widget), g_intern_static_string ("drag-context"), context); + g_object_set_data (G_OBJECT (selection_widget), I_("drag-context"), context); gtk_selection_convert (selection_widget, gdk_drag_get_selection (context), @@ -883,7 +884,7 @@ gtk_drag_finish (GdkDragContext *context, g_object_ref (context); - g_object_set_data (G_OBJECT (selection_widget), g_intern_static_string ("drag-context"), context); + g_object_set_data (G_OBJECT (selection_widget), I_("drag-context"), context); g_signal_connect (selection_widget, "selection_received", G_CALLBACK (gtk_drag_selection_received), NULL); @@ -1019,7 +1020,7 @@ gtk_drag_dest_set_internal (GtkWidget *widget, g_signal_connect (widget, "hierarchy_changed", G_CALLBACK (gtk_drag_dest_hierarchy_changed), site); - g_object_set_data_full (G_OBJECT (widget), g_intern_static_string ("gtk-drag-dest"), + g_object_set_data_full (G_OBJECT (widget), I_("gtk-drag-dest"), site, gtk_drag_dest_site_destroy); } @@ -1115,7 +1116,7 @@ gtk_drag_dest_unset (GtkWidget *widget) { g_return_if_fail (GTK_IS_WIDGET (widget)); - g_object_set_data (G_OBJECT (widget), g_intern_static_string ("gtk-drag-dest"), NULL); + g_object_set_data (G_OBJECT (widget), I_("gtk-drag-dest"), NULL); } /** @@ -1511,7 +1512,7 @@ gtk_drag_selection_received (GtkWidget *widget, gtk_drag_selection_received, data); - g_object_set_data (G_OBJECT (widget), g_intern_static_string ("drag-context"), NULL); + g_object_set_data (G_OBJECT (widget), I_("drag-context"), NULL); g_object_unref (context); gtk_drag_release_ipc_widget (widget); @@ -2124,7 +2125,7 @@ gtk_drag_begin_internal (GtkWidget *widget, info = gtk_drag_get_source_info (context, TRUE); info->ipc_widget = ipc_widget; - g_object_set_data (G_OBJECT (info->ipc_widget), g_intern_static_string ("gtk-info"), info); + g_object_set_data (G_OBJECT (info->ipc_widget), I_("gtk-info"), info); info->widget = gtk_widget_ref (widget); @@ -2324,7 +2325,7 @@ gtk_drag_source_set (GtkWidget *widget, site); g_object_set_data_full (G_OBJECT (widget), - g_intern_static_string ("gtk-site-data"), + I_("gtk-site-data"), site, gtk_drag_source_site_destroy); } @@ -2357,7 +2358,7 @@ gtk_drag_source_unset (GtkWidget *widget) g_signal_handlers_disconnect_by_func (widget, gtk_drag_source_event_cb, site); - g_object_set_data (G_OBJECT (widget), g_intern_static_string ("gtk-site-data"), NULL); + g_object_set_data (G_OBJECT (widget), I_("gtk-site-data"), NULL); } } @@ -3647,7 +3648,7 @@ gtk_drag_source_info_destroy (GtkDragSourceInfo *info) info); gtk_selection_remove_all (info->ipc_widget); - g_object_set_data (G_OBJECT (info->ipc_widget), g_intern_static_string ("gtk-info"), NULL); + g_object_set_data (G_OBJECT (info->ipc_widget), I_("gtk-info"), NULL); source_widgets = g_slist_remove (source_widgets, info->ipc_widget); gtk_drag_release_ipc_widget (info->ipc_widget); |