From eff92cb1d68af7e97a838cadeedaf35db98cea51 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 11 Aug 2010 02:30:29 +0200 Subject: dnd: Remove default_icon_pixmap variable and friends The functions to set them were gone already, this is just cleanup --- gtk/gtkdnd.c | 42 +++++------------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) (limited to 'gtk/gtkdnd.c') diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index dc9a938309..78f63c10c0 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -183,14 +183,6 @@ enum { TARGET_DELETE }; -/* Drag icons */ - -static GdkPixmap *default_icon_pixmap = NULL; -static GdkPixmap *default_icon_mask = NULL; -static GdkColormap *default_icon_colormap = NULL; -static gint default_icon_hot_x; -static gint default_icon_hot_y; - /* Forward declarations */ static void gtk_drag_get_event_actions (GdkEvent *event, gint button, @@ -3012,16 +3004,8 @@ gtk_drag_get_icon (GtkDragSourceInfo *info, save_destroy_icon = info->destroy_icon; info->icon_window = NULL; - if (!default_icon_pixmap) - set_icon_stock_pixbuf (info->context, - GTK_STOCK_DND, NULL, -2, -2, TRUE); - else - gtk_drag_set_icon_pixmap (info->context, - default_icon_colormap, - default_icon_pixmap, - default_icon_mask, - default_icon_hot_x, - default_icon_hot_y); + set_icon_stock_pixbuf (info->context, + GTK_STOCK_DND, NULL, -2, -2, TRUE); info->fallback_icon = info->icon_window; info->icon_window = save_icon_window; @@ -3035,16 +3019,8 @@ gtk_drag_get_icon (GtkDragSourceInfo *info, *icon_window = info->fallback_icon; gtk_window_set_screen (GTK_WINDOW (*icon_window), info->cur_screen); - if (!default_icon_pixmap) - { - *hot_x = -2; - *hot_y = -2; - } - else - { - *hot_x = default_icon_hot_x; - *hot_y = default_icon_hot_y; - } + *hot_x = -2; + *hot_y = -2; } else { @@ -3416,15 +3392,7 @@ gtk_drag_set_icon_default (GdkDragContext *context) g_return_if_fail (GDK_IS_DRAG_CONTEXT (context)); g_return_if_fail (context->is_source); - if (!default_icon_pixmap) - gtk_drag_set_icon_stock (context, GTK_STOCK_DND, -2, -2); - else - gtk_drag_set_icon_pixmap (context, - default_icon_colormap, - default_icon_pixmap, - default_icon_mask, - default_icon_hot_x, - default_icon_hot_y); + gtk_drag_set_icon_stock (context, GTK_STOCK_DND, -2, -2); } /************************************************************* -- cgit v1.2.1