[metacity/cowbell] write meta_theme_calc_geometry in terms of meta_theme_get_frame_borders



commit 2e35d1be93b5e795383d95b104dfc2abb44a464a
Author: Thomas Thurman <tthurman gnome org>
Date:   Mon Oct 19 14:47:19 2009 -0400

    write meta_theme_calc_geometry in terms of meta_theme_get_frame_borders

 src/ui/theme.c |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 2e7323d..25442ce 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -721,18 +721,16 @@ meta_theme_calc_geometry (MetaTheme              *theme,
 {
   /* stub */
 
-  int i;
-
-  fgeom->top_height = 0;
-  fgeom->bottom_height = 0;
-  fgeom->left_width = 0;
-  fgeom->right_width = 0;
+  gint i;
 
-  cowbell_get_edge_sizes (theme, type, flags, CC_FRAME,
-                          &(fgeom->top_height),
-                          &(fgeom->bottom_height),
-                          &(fgeom->left_width),
-                          &(fgeom->right_width));
+  /* see if we can write meta_theme_calc_geometry in terms of
+   * meta_theme_get_frame_borders
+   */
+  meta_theme_get_frame_borders (theme, type, text_height, flags,
+                                &(fgeom->top_height),
+                                &(fgeom->bottom_height),
+                                &(fgeom->left_width),
+                                &(fgeom->right_width));
 
   fgeom->width = 40+client_width;
   fgeom->height = 40+client_height;



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