summaryrefslogtreecommitdiff
path: root/src/theme.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-08-04 20:02:45 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-08-04 20:02:45 +0000
commit583596178ff110e80bfd41a7ed1c2fb5a062ad9f (patch)
treecfb2b2f7ced68fbd07f99ae174db57b7f420e46f /src/theme.h
parentae148bc89f71b796f078a08228f095800c787e9f (diff)
downloadmetacity-583596178ff110e80bfd41a7ed1c2fb5a062ad9f.tar.gz
metacity-583596178ff110e80bfd41a7ed1c2fb5a062ad9f.tar.bz2
use MetaMenuIconType not button type for the size of the menu ops array
2002-08-04 Havoc Pennington <hp@redhat.com> * src/theme.c (free_menu_ops): use MetaMenuIconType not button type for the size of the menu ops array (meta_theme_define_int_constant): return TRUE on success (how the heck did this ever work?) (meta_theme_define_float_constant): return TRUE on success (meta_frame_style_validate): allow the "positional" buttons to be omitted for now. * src/testgradient.c (render_multi): don't define N_COLORS twice * src/theme-viewer.c (run_theme_benchmark): don't define ITERATIONS twice * src/theme.c (button_rect): handle new button types (meta_button_type_to_string): update (meta_button_type_from_string): update * src/theme.h (enum): add button types for the 6 possible button positions. No way to reposition buttons still but this will allow themes to go ahead and support doing so.
Diffstat (limited to 'src/theme.h')
-rw-r--r--src/theme.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/theme.h b/src/theme.h
index df946af..2e4151e 100644
--- a/src/theme.h
+++ b/src/theme.h
@@ -396,6 +396,13 @@ typedef enum
typedef enum
{
+ /* Ordered so that background is drawn first */
+ META_BUTTON_TYPE_LEFT_LEFT_BACKGROUND,
+ META_BUTTON_TYPE_LEFT_MIDDLE_BACKGROUND,
+ META_BUTTON_TYPE_LEFT_RIGHT_BACKGROUND,
+ META_BUTTON_TYPE_RIGHT_LEFT_BACKGROUND,
+ META_BUTTON_TYPE_RIGHT_MIDDLE_BACKGROUND,
+ META_BUTTON_TYPE_RIGHT_RIGHT_BACKGROUND,
META_BUTTON_TYPE_CLOSE,
META_BUTTON_TYPE_MAXIMIZE,
META_BUTTON_TYPE_MINIMIZE,