Handle pixmap == NULL when checking for a colormap. (Allin Cottrell).
2005-08-15 Owen Taylor <otaylor@redhat.com> * gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap): * gdk/win32/gdkwindow-win32.c (gdk_window_set_back_pixmap): * gdk/x11/gdkwindow-x11.c (gdk_window_set_back_pixmap): Handle pixmap == NULL when checking for a colormap. (Allin Cottrell).
This commit is contained in:
@ -2913,7 +2913,7 @@ gdk_window_set_back_pixmap (GdkWindow *window,
|
||||
g_return_if_fail (pixmap == NULL || !parent_relative);
|
||||
g_return_if_fail (pixmap == NULL || gdk_drawable_get_depth (window) == gdk_drawable_get_depth (pixmap));
|
||||
|
||||
if (!gdk_drawable_get_colormap (pixmap))
|
||||
if (pixmap && !gdk_drawable_get_colormap (pixmap))
|
||||
{
|
||||
g_warning ("gdk_window_set_back_pixmap(): pixmap must have a colormap");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user