[metacity/cowbell] split out button height calc (stub)



commit 49f7dcf2a74f362f0a7cb6af9f5a1aa009675be8
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Oct 23 16:25:15 2009 -0400

    split out button height calc (stub)

 src/ui/theme.c |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 9a13a04..1bacbcd 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -632,6 +632,17 @@ fill_button_rect (MetaButtonSpace *button,
   button->clickable.height = button->visible.height;
 }
 
+static int
+cowbell_get_button_width (MetaTheme              *theme,
+                          MetaFrameType           type,
+                          MetaFrameFlags          flags,
+                          CopperClasses           button,
+                          int                     button_height)
+{
+  /* stub */
+  return button_height;
+}
+
 void
 meta_theme_calc_geometry (MetaTheme              *theme,
                           MetaFrameType           type,
@@ -756,7 +767,9 @@ meta_theme_calc_geometry (MetaTheme              *theme,
       /* FIXME!! This needs to be worked out from the
        * aspect ratio, BUT for now we are assuming
        * all buttons are square. */
-      fgeom->areas[i].width = button_height;
+      fgeom->areas[i].width = cowbell_get_button_width (theme, type, flags,
+                                                        i,
+                                                        button_height);
       fgeom->areas[i].x = -1; /* dummy value, to check
                                * for when we haven't allocated it
                                */



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