[gtk+/client-side-windows: 127/284] Update gdk_window_get_deskrelative_origin, gdk_window_get_root_origin, gdk_window_get_frame_extents



commit 068b6f88e098c95b13aed44c8cdfe0c79fe14d84
Author: Richard Hult <richard imendio com>
Date:   Mon Jan 5 21:10:00 2009 +0100

    Update gdk_window_get_deskrelative_origin, gdk_window_get_root_origin, gdk_window_get_frame_extents
---
 gdk/quartz/gdkwindow-quartz.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 8a5578b..f5960fd 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -1786,8 +1786,6 @@ gdk_window_get_deskrelative_origin (GdkWindow *window,
 				    gint      *x,
 				    gint      *y)
 {
-  g_return_val_if_fail (GDK_IS_WINDOW (window), FALSE);
-
   return gdk_window_get_origin (window, x, y);
 }
 
@@ -1798,8 +1796,6 @@ gdk_window_get_root_origin (GdkWindow *window,
 {
   GdkRectangle rect;
 
-  g_return_if_fail (GDK_IS_WINDOW (window));
-
   rect.x = 0;
   rect.y = 0;
   
@@ -2507,7 +2503,6 @@ gdk_window_get_frame_extents (GdkWindow    *window,
   GdkWindowImplQuartz *impl;
   NSRect ns_rect;
 
-  g_return_if_fail (GDK_IS_WINDOW (window));
   g_return_if_fail (rect != NULL);
 
   private = GDK_WINDOW_OBJECT (window);
@@ -2517,9 +2512,6 @@ gdk_window_get_frame_extents (GdkWindow    *window,
   rect->width = 1;
   rect->height = 1;
   
-  if (GDK_WINDOW_DESTROYED (window))
-    return;
-
   toplevel = gdk_window_get_toplevel (window);
   impl = GDK_WINDOW_IMPL_QUARTZ (GDK_WINDOW_OBJECT (toplevel)->impl);
 



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