[gtk+/client-side-windows: 75/284] Correct type checks on gdk_window_set_group entry.
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [gtk+/client-side-windows: 75/284] Correct type checks on gdk_window_set_group entry.
- Date: Thu, 2 Apr 2009 14:06:02 -0400 (EDT)
commit e63de13f4089908a9c2ddcbf996167d871566b46
Author: Alexander Larsson <alexl redhat com>
Date: Fri Dec 19 11:07:09 2008 +0100
Correct type checks on gdk_window_set_group entry.
---
gdk/x11/gdkwindow-x11.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 272b447..0500f07 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -4243,8 +4243,9 @@ gdk_window_set_group (GdkWindow *window,
{
GdkToplevelX11 *toplevel;
+ g_return_if_fail (GDK_IS_WINDOW (window));
g_return_if_fail (GDK_WINDOW_TYPE (window) != GDK_WINDOW_CHILD);
- g_return_if_fail (leader == NULL);
+ g_return_if_fail (leader == NULL || GDK_IS_WINDOW (leader));
if (GDK_WINDOW_DESTROYED (window) ||
(leader != NULL && GDK_WINDOW_DESTROYED (leader)) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]