[gtk+/client-side-windows: 123/284] Update gdk_window_set_type_hint and gdk_window_get_type_hint



commit 27a80094bcc8dd011896f09a0810c2a411c6a4b3
Author: Richard Hult <richard imendio com>
Date:   Mon Jan 5 19:37:47 2009 +0100

    Update gdk_window_set_type_hint and gdk_window_get_type_hint
---
 gdk/quartz/gdkwindow-quartz.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 9a12077..247df34 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2400,9 +2400,8 @@ gdk_window_set_type_hint (GdkWindow        *window,
 {
   GdkWindowImplQuartz *impl;
   
-  g_return_if_fail (GDK_IS_WINDOW (window));
-
-  if (GDK_WINDOW_DESTROYED (window))
+  if (GDK_WINDOW_DESTROYED (window) ||
+      !WINDOW_IS_TOPLEVEL (window))
     return;
 
   impl = GDK_WINDOW_IMPL_QUARTZ (((GdkWindowObject *) window)->impl);
@@ -2420,7 +2419,8 @@ gdk_window_set_type_hint (GdkWindow        *window,
 GdkWindowTypeHint
 gdk_window_get_type_hint (GdkWindow *window)
 {
-  if (GDK_WINDOW_DESTROYED (window))
+  if (GDK_WINDOW_DESTROYED (window) ||
+      !WINDOW_IS_TOPLEVEL (window))
     return GDK_WINDOW_TYPE_HINT_NORMAL;
   
   return GDK_WINDOW_IMPL_QUARTZ (((GdkWindowObject *) window)->impl)->type_hint;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]