forked from AuroraMiddleware/gtk
gdk/linux-fb/gdkwindow-fb.c (gdk_window_set_back_pixmap)
2005-08-12 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): Warn if gdk_drawable_get_colormap (pixmap) is NULL and return.
This commit is contained in:
parent
2e680b56f5
commit
c24e5e2890
@ -1,3 +1,10 @@
|
||||
2005-08-12 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): Warn if
|
||||
gdk_drawable_get_colormap (pixmap) is NULL and return.
|
||||
|
||||
2005-08-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version to 2.8.0
|
||||
|
@ -1,3 +1,10 @@
|
||||
2005-08-12 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): Warn if
|
||||
gdk_drawable_get_colormap (pixmap) is NULL and return.
|
||||
|
||||
2005-08-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version to 2.8.0
|
||||
|
@ -1,3 +1,10 @@
|
||||
2005-08-12 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): Warn if
|
||||
gdk_drawable_get_colormap (pixmap) is NULL and return.
|
||||
|
||||
2005-08-12 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* configure.in: Bump version to 2.8.0
|
||||
|
@ -1473,6 +1473,12 @@ 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))
|
||||
{
|
||||
g_warning ("gdk_window_set_back_pixmap(): pixmap must have a colormap");
|
||||
return;
|
||||
}
|
||||
|
||||
old_pixmap = private->bg_pixmap;
|
||||
|
||||
if (parent_relative)
|
||||
|
@ -1849,6 +1849,12 @@ 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))
|
||||
{
|
||||
g_warning ("gdk_window_set_back_pixmap(): pixmap must have a colormap");
|
||||
return;
|
||||
}
|
||||
|
||||
if (private->bg_pixmap &&
|
||||
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
|
||||
private->bg_pixmap != GDK_NO_BG)
|
||||
|
@ -2913,6 +2913,12 @@ 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))
|
||||
{
|
||||
g_warning ("gdk_window_set_back_pixmap(): pixmap must have a colormap");
|
||||
return;
|
||||
}
|
||||
|
||||
if (private->bg_pixmap &&
|
||||
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
|
||||
private->bg_pixmap != GDK_NO_BG)
|
||||
|
Loading…
Reference in New Issue
Block a user