diff options
author | Havoc Pennington <hp@redhat.com> | 2002-08-04 20:02:45 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-08-04 20:02:45 +0000 |
commit | 583596178ff110e80bfd41a7ed1c2fb5a062ad9f (patch) | |
tree | cfb2b2f7ced68fbd07f99ae174db57b7f420e46f /src/theme-viewer.c | |
parent | ae148bc89f71b796f078a08228f095800c787e9f (diff) | |
download | mutter-583596178ff110e80bfd41a7ed1c2fb5a062ad9f.tar.gz |
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-viewer.c')
-rw-r--r-- | src/theme-viewer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/theme-viewer.c b/src/theme-viewer.c index 5687a00cd..1f7cc0f1e 100644 --- a/src/theme-viewer.c +++ b/src/theme-viewer.c @@ -744,6 +744,8 @@ run_theme_benchmark (int client_width, g_object_unref (G_OBJECT (layout)); g_object_unref (G_OBJECT (pixmap)); gtk_widget_destroy (widget); + +#undef ITERATIONS } typedef struct |