[metacity/cowbell] calc borders, text height is broken



commit c15151f73193dddb8887f406cced061e9e2f18b5
Author: Thomas Thurman <tthurman gnome org>
Date:   Mon Oct 19 14:57:21 2009 -0400

    calc borders, text height is broken

 src/ui/theme.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index aae98ff..f9f01e7 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -689,6 +689,21 @@ meta_theme_get_frame_borders (MetaTheme         *theme,
                           bottom_height,
                           left_width,
                           right_width);
+
+  cowbell_get_edge_sizes (theme, type, flags, CC_CONTENT,
+                          top_height,
+                          bottom_height,
+                          left_width,
+                          right_width);
+
+  cowbell_get_edge_sizes (theme, type, flags, CC_TITLEBAR,
+                          top_height, top_height, NULL, NULL);
+
+  if (top_height)
+    {
+      *top_height += text_height;
+      g_warning ("At end: %d pixels (text height is %d)\n", *top_height, text_height);
+    }
 }
 
 #define MAX_MIDDLE_BACKGROUNDS (MAX_BUTTONS_PER_CORNER - 2)



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