GNOME Bugzilla – Bug 631332
gdk_pixmap_create_from_data();
Last modified: 2010-10-05 00:58:02 UTC
The first argument GdkDrawable must be different NULL. But in the documentation it can be possible to pass NULL. In the case Gtk+ write an error in the console : Gdk-CRITICAL **: _gdk_drawable_get_source_drawable: assertion `GDK_IS_DRAWABLE (drawable)' failed (Excuse me for my english, i'm french...)
The bug has been introduced in 2.18. The function should test "drawable" like that: if (drawable) source_drawable = _gdk_drawable_get_source_drawable (drawable); else source_drawable = NULL; instead of doing just: source_drawable = _gdk_drawable_get_source_drawable (drawable);
Committed to gtk-2-22 branch: commit 856bb36d887d1b4ba7056a777c6ef58ab422acfd Author: Luis Menina <liberforce@freeside.fr> Date: Tue Oct 5 02:50:00 2010 +0200 gdk: Allow drawable == NULL in gdk_pixmap_create_from_data() again client-side windows introduced a function that assumed a non-NULL drawable. This call needs to be special-cased to restore functionality from before. master doesn't have this API anymore, so no need to fix it there.