gdk_drawable_get_screen() used for mask, which is a pixmap, not a window

The function gtk_drag_set_icon_pixmap() triggered failing assertions. This was because it called the function gdk_window_get_screen(mask), where "mask" is a pixmap, but not a window.

https://bugzilla.gnome.org/show_bug.cgi?id=735005
This commit is contained in:
Sebastian Gerhardt
2014-08-18 18:40:48 +02:00
committed by Matthias Clasen
parent ab3e3b1834
commit d9164e9c60

View File

@@ -3272,7 +3272,7 @@ gtk_drag_set_icon_pixmap (GdkDragContext *context,
screen = gdk_colormap_get_screen (colormap);
g_return_if_fail (gdk_drawable_get_screen (pixmap) == screen);
g_return_if_fail (!mask || gdk_window_get_screen (mask) == screen);
g_return_if_fail (!mask || gdk_drawable_get_screen (mask) == screen);
gdk_drawable_get_size (pixmap, &width, &height);