mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 13:30:19 +00:00
Add a sanity g_return_if_fail() check for the depths for the window and
Tue May 14 15:40:49 2002 Owen Taylor <otaylor@redhat.com> * gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap): Add a sanity g_return_if_fail() check for the depths for the window and pixmap. (#79191, Shivaram Upadhyayula)
This commit is contained in:
parent
44859f939c
commit
1dd8a1453f
@ -1,3 +1,9 @@
|
|||||||
|
Tue May 14 15:40:49 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
|
||||||
|
Add a sanity g_return_if_fail() check for the depths
|
||||||
|
for the window and pixmap. (#79191, Shivaram Upadhyayula)
|
||||||
|
|
||||||
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue May 14 15:40:49 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
|
||||||
|
Add a sanity g_return_if_fail() check for the depths
|
||||||
|
for the window and pixmap. (#79191, Shivaram Upadhyayula)
|
||||||
|
|
||||||
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue May 14 15:40:49 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
|
||||||
|
Add a sanity g_return_if_fail() check for the depths
|
||||||
|
for the window and pixmap. (#79191, Shivaram Upadhyayula)
|
||||||
|
|
||||||
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue May 14 15:40:49 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
|
||||||
|
Add a sanity g_return_if_fail() check for the depths
|
||||||
|
for the window and pixmap. (#79191, Shivaram Upadhyayula)
|
||||||
|
|
||||||
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue May 14 15:40:49 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
|
||||||
|
Add a sanity g_return_if_fail() check for the depths
|
||||||
|
for the window and pixmap. (#79191, Shivaram Upadhyayula)
|
||||||
|
|
||||||
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
Tue May 14 15:40:49 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gdk/x11/gdkwindow-{linux-fb,win32,x11.c} (gdk_window_set_back_pixmap):
|
||||||
|
Add a sanity g_return_if_fail() check for the depths
|
||||||
|
for the window and pixmap. (#79191, Shivaram Upadhyayula)
|
||||||
|
|
||||||
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
Tue May 14 15:09:33 2002 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
* gdk/x11/gdkkeys-x11.c: Try adding a #ifndef/#define
|
||||||
|
@ -1469,6 +1469,7 @@ gdk_window_set_back_pixmap (GdkWindow *window,
|
|||||||
g_return_if_fail (window != NULL);
|
g_return_if_fail (window != NULL);
|
||||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||||
g_return_if_fail (pixmap == NULL || !parent_relative);
|
g_return_if_fail (pixmap == NULL || !parent_relative);
|
||||||
|
g_return_if_fail (pixmap == NULL || gdk_drawable_get_depth (window) == gdk_drawable_get_depth (pixmap));
|
||||||
|
|
||||||
old_pixmap = private->bg_pixmap;
|
old_pixmap = private->bg_pixmap;
|
||||||
|
|
||||||
|
@ -1563,6 +1563,7 @@ gdk_window_set_back_pixmap (GdkWindow *window,
|
|||||||
g_return_if_fail (window != NULL);
|
g_return_if_fail (window != NULL);
|
||||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||||
g_return_if_fail (pixmap == NULL || !parent_relative);
|
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 (private->bg_pixmap &&
|
if (private->bg_pixmap &&
|
||||||
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
|
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
|
||||||
|
@ -2129,6 +2129,7 @@ gdk_window_set_back_pixmap (GdkWindow *window,
|
|||||||
g_return_if_fail (window != NULL);
|
g_return_if_fail (window != NULL);
|
||||||
g_return_if_fail (GDK_IS_WINDOW (window));
|
g_return_if_fail (GDK_IS_WINDOW (window));
|
||||||
g_return_if_fail (pixmap == NULL || !parent_relative);
|
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 (private->bg_pixmap &&
|
if (private->bg_pixmap &&
|
||||||
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
|
private->bg_pixmap != GDK_PARENT_RELATIVE_BG &&
|
||||||
|
Loading…
Reference in New Issue
Block a user