[gtk+/client-side-windows: 155/284] Remove unused function _gdk_quartz_window_scroll



commit 2ea8ea2f0d559af500616f7461f4c3b2d6bc4745
Author: Richard Hult <richard imendio com>
Date:   Wed Jan 21 18:41:56 2009 +0100

    Remove unused function _gdk_quartz_window_scroll
---
 gdk/quartz/gdkgeometry-quartz.c |   67 ---------------------------------------
 gdk/quartz/gdkprivate-quartz.h  |    4 --
 2 files changed, 0 insertions(+), 71 deletions(-)

diff --git a/gdk/quartz/gdkgeometry-quartz.c b/gdk/quartz/gdkgeometry-quartz.c
index 47558e7..eceb071 100644
--- a/gdk/quartz/gdkgeometry-quartz.c
+++ b/gdk/quartz/gdkgeometry-quartz.c
@@ -23,73 +23,6 @@
 #include "gdkprivate-quartz.h"
 
 void
-_gdk_quartz_window_scroll (GdkWindow *window,
-                           gint       dx,
-                           gint       dy)
-{
-  NSRect visible_nsrect;
-  GdkRectangle visible_rect, scrolled_rect;
-  GdkRegion *visible_region, *scrolled_region;
-  GdkRectangle *rects;
-  gint n_rects, i;
-  GdkWindowObject *private = GDK_WINDOW_OBJECT (window);
-  GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (private->impl);
-  GList *list;
-
-  /* Move the current invalid region */
-  if (private->update_area)
-    gdk_region_offset (private->update_area, dx, dy);
-
-  visible_nsrect = [impl->view visibleRect];
-
-  visible_rect.x = visible_nsrect.origin.x;
-  visible_rect.y = visible_nsrect.origin.y;
-  visible_rect.width = visible_nsrect.size.width;
-  visible_rect.height = visible_nsrect.size.height;
-  
-  scrolled_rect = visible_rect;
-  scrolled_rect.x += dx;
-  scrolled_rect.y += dy;
-  
-  gdk_rectangle_intersect (&visible_rect, &scrolled_rect, &scrolled_rect);
-  
-  visible_region = gdk_region_rectangle (&visible_rect);
-  scrolled_region = gdk_region_rectangle (&scrolled_rect);
-
-  gdk_region_subtract (visible_region, scrolled_region);
-
-  [impl->view scrollRect:[impl->view bounds] by:NSMakeSize(dx, dy)];
-
-  gdk_region_get_rectangles (visible_region, &rects, &n_rects);
-  for (i = 0; i < n_rects; i++)
-    [impl->view setNeedsDisplayInRect:NSMakeRect (rects[i].x, rects[i].y, rects[i].width, rects[i].height)];
-  
-  g_free (rects);
-
-  gdk_region_destroy (visible_region);
-  gdk_region_destroy (scrolled_region);
-
-  /* Move child windows */
-  for (list = private->children; list; list = list->next)
-    {
-      GdkWindowObject *child = GDK_WINDOW_OBJECT (list->data);
-
-      gdk_window_move (list->data,
-		       child->x + dx,
-		       child->y + dy);
-    }
-}
-
-void
-_gdk_quartz_window_move_region (GdkWindow       *window,
-                                const GdkRegion *region,
-                                gint             dx,
-                                gint             dy)
-{
-  /* FIXME: Implement */
-}
-
-void
 _gdk_quartz_window_queue_translation (GdkWindow *window,
                                       GdkRegion *area,
                                       gint       dx,
diff --git a/gdk/quartz/gdkprivate-quartz.h b/gdk/quartz/gdkprivate-quartz.h
index f5424af..0b6faa0 100644
--- a/gdk/quartz/gdkprivate-quartz.h
+++ b/gdk/quartz/gdkprivate-quartz.h
@@ -193,10 +193,6 @@ void        _gdk_quartz_drawable_finish (GdkDrawable *drawable);
 void        _gdk_quartz_window_scroll      (GdkWindow       *window,
                                             gint             dx,
                                             gint             dy);
-void        _gdk_quartz_window_move_region (GdkWindow       *window,
-                                            const GdkRegion *region,
-                                            gint             dx,
-                                            gint             dy);
 void        _gdk_quartz_window_queue_translation (GdkWindow *window,
                                                   GdkRegion *area,
                                                   gint       dx,



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