mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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:
parent
7ab6652629
commit
42dc0241f3
@ -1,3 +1,11 @@
|
||||
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).
|
||||
|
||||
2005-08-14 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Store only one copy of the pixel data
|
||||
|
@ -1,3 +1,11 @@
|
||||
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).
|
||||
|
||||
2005-08-14 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Store only one copy of the pixel data
|
||||
|
@ -1,3 +1,11 @@
|
||||
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).
|
||||
|
||||
2005-08-14 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/updateiconcache.c: Store only one copy of the pixel data
|
||||
|
@ -1473,7 +1473,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;
|
||||
|
@ -1849,7 +1849,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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user