From 9cffa701489ed82f87aa37ba072b1faa12fbc8e6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 1 Aug 2005 17:02:49 +0000 Subject: [PATCH] Create the icon window with the correct dimensions. (#312256, Mike 2005-08-01 Matthias Clasen * gtk/gtkdnd.c (set_icon_stock_pixbuf): Create the icon window with the correct dimensions. (#312256, Mike Morrison) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkdnd.c | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3331161303..bd5d234f5b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-08-01 Matthias Clasen + * gtk/gtkdnd.c (set_icon_stock_pixbuf): Create the icon window + with the correct dimensions. (#312256, Mike Morrison) + * gtk/gtktextbuffer.h: * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED here as well. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3331161303..bd5d234f5b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-08-01 Matthias Clasen + * gtk/gtkdnd.c (set_icon_stock_pixbuf): Create the icon window + with the correct dimensions. (#312256, Mike Morrison) + * gtk/gtktextbuffer.h: * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED here as well. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3331161303..bd5d234f5b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2005-08-01 Matthias Clasen + * gtk/gtkdnd.c (set_icon_stock_pixbuf): Create the icon window + with the correct dimensions. (#312256, Mike Morrison) + * gtk/gtktextbuffer.h: * gtk/gtk.symbols: Remove G_GNUC_NULL_TERMINATED here as well. diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c index ee0b8095b6..beaa498929 100644 --- a/gtk/gtkdnd.c +++ b/gtk/gtkdnd.c @@ -2865,7 +2865,7 @@ set_icon_stock_pixbuf (GdkDragContext *context, display = gdk_drawable_get_display (context->source_window); width = gdk_pixbuf_get_width (pixbuf); - height = gdk_pixbuf_get_width (pixbuf); + height = gdk_pixbuf_get_height (pixbuf); if (!force_window && gtk_drag_can_use_rgba_cursor (display, width + 2, height + 2))