gtk-quartz-engine r11 - in trunk: . src



Author: rhult
Date: Tue Oct 28 15:13:09 2008
New Revision: 11
URL: http://svn.gnome.org/viewvc/gtk-quartz-engine?rev=11&view=rev

Log:
2008-10-28  Richard Hult  <richard imendio com>

	* src/quartz-style.c (draw_handle): Implement drawing paned
	handles.


Modified:
   trunk/ChangeLog
   trunk/src/quartz-style.c

Modified: trunk/src/quartz-style.c
==============================================================================
--- trunk/src/quartz-style.c	(original)
+++ trunk/src/quartz-style.c	Tue Oct 28 15:13:09 2008
@@ -1673,6 +1673,34 @@
              GtkOrientation  orientation)
 {
   DEBUG_DRAW;
+
+  if (GTK_IS_PANED (widget) && IS_DETAIL (detail, "paned"))
+    {
+      HIThemeSplitterDrawInfo draw_info;
+      CGRect rect;
+      CGContextRef context;
+
+      draw_info.version = 0;
+      draw_info.state = kThemeStateActive;
+      draw_info.adornment = kHIThemeSplitterAdornmentNone;
+
+      rect = CGRectMake (x, y, width, height);
+
+      context = gdk_quartz_drawable_get_context (GDK_WINDOW_OBJECT (window)->impl, FALSE);
+      if (!context)
+        return;
+
+      HIThemeDrawPaneSplitter (&rect,
+                               &draw_info,
+                               context,
+                               GTK_IS_HPANED (widget) ?
+                               kHIThemeOrientationNormal :
+                               kHIThemeOrientationInverted);
+
+      gdk_quartz_drawable_release_context (GDK_WINDOW_OBJECT (window)->impl, context);
+
+      return;
+    }
 }
 
 static void



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