[metacity/cowbell] rm debug print



commit a4bcd5b41d7ef4743431ce48ce15b081d982f595
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Oct 23 14:10:15 2009 -0400

    rm debug print

 src/ui/theme.c |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index fb6e320..6cd3626 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -733,8 +733,6 @@ cowbell_get_edge_sizes (MetaTheme *theme,
         }
     }
 
-  g_warning ("Results are: T=%f B=%f L=%f R=%f\n", results[0], results[1], results[2], results[3]);
-
   if (top) *top += (int) results[0];
   if (bottom) *bottom += (int) results[1];
   if (left) *left += (int) results[2];
@@ -1022,6 +1020,19 @@ meta_theme_calc_geometry (MetaTheme              *theme,
       fgeom->areas[copper_class_for_button(button)].x = x;
     }
 
+  /* Now find the ones we didn't use, and zero them out */
+  for (i=CC_BUTTON_FIRST; i<=CC_BUTTON_LAST; i++)
+    {
+      if (fgeom->areas[i].x==-1)
+        {
+          fgeom->areas[i].x =
+            fgeom->areas[i].y =
+            fgeom->areas[i].width =
+            fgeom->areas[i].height =
+            0;
+        }
+    }
+
   /* We are not yet doing CC_FILLER. */
   fgeom->areas[CC_FILLER].x =
     fgeom->areas[CC_FILLER].y =



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