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



Author: rhult
Date: Tue Oct 28 17:41:10 2008
New Revision: 14
URL: http://svn.gnome.org/viewvc/gtk-quartz-engine?rev=14&view=rev

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

	* src/quartz-style.c Small whitespace cleanup.


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 17:41:10 2008
@@ -282,8 +282,8 @@
 
 static void
 sanitize_size (GdkWindow *window,
-	       gint      *width,
-	       gint      *height)
+               gint      *width,
+               gint      *height)
 {
   if ((*width == -1) && (*height == -1))
     gdk_drawable_get_size (window, width, height);
@@ -321,14 +321,13 @@
   else if (is_combo_box_child (widget))
     return;
 
-  sanitize_size (window, &width, &height);
-
-  rect = CGRectMake (x, y, width, height);
-
   context = get_context (GDK_WINDOW_OBJECT (window)->impl, area);
   if (!context)
     return;
 
+  sanitize_size (window, &width, &height);
+  rect = CGRectMake (x, y, width, height);
+
   arrow_info.version = 0;
   arrow_info.state = kThemeStateActive;
 
@@ -1697,7 +1696,6 @@
     return;
 
   sanitize_size (window, &width, &height);
-
   rect = CGRectMake (x, y, width, height);
 
   HIThemeDrawFocusRect (&rect, TRUE, context, kHIThemeOrientationNormal);



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