summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-10-23 16:25:15 -0400
committerThomas Thurman <tthurman@gnome.org>2009-10-23 16:25:15 -0400
commit49f7dcf2a74f362f0a7cb6af9f5a1aa009675be8 (patch)
tree0da8c8b1b59855e0f11073ef90c9cceda3fb456d /src
parentc267125c2a20d577d4170a27cf66656857e70f0f (diff)
downloadmetacity-49f7dcf2a74f362f0a7cb6af9f5a1aa009675be8.tar.gz
split out button height calc (stub)
Diffstat (limited to 'src')
-rw-r--r--src/ui/theme.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 9a13a04d..1bacbcdc 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
*/