diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-11 05:48:27 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-09-11 05:48:27 +0000 |
commit | af89d145f72d824ee7ff757faca012550c50f349 (patch) | |
tree | 8285ee531e9f03d75f2ce735e9d5cd774bc6bb42 /gtk/gtkdnd.c | |
parent | d715dcaf409760e5c4d403380dac63e50358dab0 (diff) | |
download | gtk+-af89d145f72d824ee7ff757faca012550c50f349.tar.gz |
Use gdk_atom_intern_static_string() where appropriate.
* gtk/*.c: Use gdk_atom_intern_static_string() where
appropriate.
Diffstat (limited to 'gtk/gtkdnd.c')
-rw-r--r-- | gtk/gtkdnd.c | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index 1ab4bf7205..946d392b21 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -868,14 +868,13 @@ gtk_drag_finish (GdkDragContext *context, if (success && del) { - target = gdk_atom_intern ("DELETE", FALSE); + target = gdk_atom_intern_static_string ("DELETE"); } else if (context->protocol == GDK_DRAG_PROTO_MOTIF) { - target = gdk_atom_intern (success ? - "XmTRANSFER_SUCCESS" : - "XmTRANSFER_FAILURE", - FALSE); + target = gdk_atom_intern_static_string (success ? + "XmTRANSFER_SUCCESS" : + "XmTRANSFER_FAILURE"); } if (target != GDK_NONE) @@ -1455,12 +1454,12 @@ gtk_drag_selection_received (GtkWidget *widget, return; } - if (selection_data->target == gdk_atom_intern ("DELETE", FALSE)) + if (selection_data->target == gdk_atom_intern_static_string ("DELETE")) { gtk_drag_finish (context, TRUE, FALSE, time); } - else if ((selection_data->target == gdk_atom_intern ("XmTRANSFER_SUCCESS", FALSE)) || - (selection_data->target == gdk_atom_intern ("XmTRANSFER_FAILURE", FALSE))) + else if ((selection_data->target == gdk_atom_intern_static_string ("XmTRANSFER_SUCCESS")) || + (selection_data->target == gdk_atom_intern_static_string ("XmTRANSFER_FAILURE"))) { /* Do nothing */ } @@ -3256,17 +3255,17 @@ gtk_drag_source_check_selection (GtkDragSourceInfo *info, { gtk_selection_add_target (info->ipc_widget, selection, - gdk_atom_intern ("XmTRANSFER_SUCCESS", FALSE), + gdk_atom_intern_static_string ("XmTRANSFER_SUCCESS"), TARGET_MOTIF_SUCCESS); gtk_selection_add_target (info->ipc_widget, selection, - gdk_atom_intern ("XmTRANSFER_FAILURE", FALSE), + gdk_atom_intern_static_string ("XmTRANSFER_FAILURE"), TARGET_MOTIF_FAILURE); } gtk_selection_add_target (info->ipc_widget, selection, - gdk_atom_intern ("DELETE", FALSE), + gdk_atom_intern_static_string ("DELETE"), TARGET_DELETE); } @@ -3366,8 +3365,8 @@ gtk_drag_drop (GtkDragSourceInfo *info, /* GTK+ traditionally has used application/x-rootwin-drop, but the * XDND spec specifies x-rootwindow-drop. */ - GdkAtom target1 = gdk_atom_intern ("application/x-rootwindow-drop", FALSE); - GdkAtom target2 = gdk_atom_intern ("application/x-rootwin-drop", FALSE); + GdkAtom target1 = gdk_atom_intern_static_string ("application/x-rootwindow-drop"); + GdkAtom target2 = gdk_atom_intern_static_string ("application/x-rootwin-drop"); tmp_list = info->target_list->list; while (tmp_list) @@ -3495,7 +3494,7 @@ gtk_drag_selection_get (GtkWidget *widget, guint target_info; if (!null_atom) - null_atom = gdk_atom_intern ("NULL", FALSE); + null_atom = gdk_atom_intern_static_string ("NULL"); switch (sel_info) { |