summaryrefslogtreecommitdiff
path: root/src/theme.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@pobox.com>2002-06-04 02:13:00 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-06-04 02:13:00 +0000
commit85815f8188ef0dacf3779b2b6c89e42ba484047f (patch)
tree4552ad9eb8c426b299fa2817e8914faf1f7b24ed /src/theme.h
parent22bbeb0ae08318780ece7744addfcc8e22ddf223 (diff)
downloadmetacity-85815f8188ef0dacf3779b2b6c89e42ba484047f.tar.gz
metacity-85815f8188ef0dacf3779b2b6c89e42ba484047f.tar.bz2
test button aspect ratio instead of hardcoded button size, James feel free
2002-06-03 Havoc Pennington <hp@pobox.com> * src/themes/Esco/metacity-theme-1.xml: test button aspect ratio instead of hardcoded button size, James feel free to revert if you don't like it this way. * src/theme-parser.c: parse the aspect_ratio element for button aspect ratios. * src/theme.h (struct _MetaFrameLayout): allow button sizes to be given as an aspect ratio derived from the titlebar height, instead of as a fixed size. * src/theme.c (meta_frame_layout_validate): validate new button sizing parameters * src/theme.c (meta_frame_layout_calc_geometry): use new button layout params
Diffstat (limited to 'src/theme.h')
-rw-r--r--src/theme.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/theme.h b/src/theme.h
index d758473..bcf8506 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -52,6 +52,12 @@ typedef enum
META_THEME_ERROR_FAILED
} MetaThemeError;
+typedef enum
+{
+ META_BUTTON_SIZING_ASPECT,
+ META_BUTTON_SIZING_FIXED,
+ META_BUTTON_SIZING_LAST
+} MetaButtonSizing;
/* Parameters used to calculate the geometry of the frame */
struct _MetaFrameLayout
@@ -74,6 +80,10 @@ struct _MetaFrameLayout
int left_titlebar_edge;
/* Size of buttons */
+ MetaButtonSizing button_sizing;
+
+ double button_aspect; /* height / width */
+
int button_width;
int button_height;