diff options
author | Thomas Thurman <tthurman@gnome.org> | 2009-10-23 14:07:57 -0400 |
---|---|---|
committer | Thomas Thurman <tthurman@gnome.org> | 2009-10-23 14:07:57 -0400 |
commit | 4a05f0e009b28770a8ecdd3a164d6229c1cae7c8 (patch) | |
tree | ee0845eed0db09e17b993ff391c42fad5a6f20f5 /src | |
parent | 458dc77f77025120054bc4ee49a69b95a7e0b468 (diff) | |
download | metacity-4a05f0e009b28770a8ecdd3a164d6229c1cae7c8.tar.gz |
dump settings; fix button search to stop at sentinel
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/theme.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index e6c4f79c..fb6e320c 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -817,7 +817,7 @@ copper_class_for_button (int button) return CC_UNSTICK; default: /* there is no way we should ever get here */ - meta_bug ("Unknown button type."); + meta_bug ("Unknown button type. %d", button); return CC_MENU; } } @@ -996,7 +996,7 @@ meta_theme_calc_geometry (MetaTheme *theme, int button = button_layout->left_buttons[i]; if (button == META_BUTTON_FUNCTION_LAST) - continue; + break; /* so allocate it */ fgeom->areas[copper_class_for_button(button)].x = x; @@ -1015,7 +1015,7 @@ meta_theme_calc_geometry (MetaTheme *theme, int button = button_layout->right_buttons[i]; if (button == META_BUTTON_FUNCTION_LAST) - continue; + break; /* so allocate it */ x -= fgeom->areas[copper_class_for_button(button)].width; @@ -1089,6 +1089,16 @@ meta_theme_calc_geometry (MetaTheme *theme, fill_button_rect (&(fgeom->unabove_rect), CC_UNABOVE, fgeom); fill_button_rect (&(fgeom->unstick_rect), CC_UNSTICK, fgeom); + for (i=0; i<CC_LAST; i++) + { + g_warning("%20s %8d %8d %8d %8d", + cowbell_human_names[i], + fgeom->areas[i].x, + fgeom->areas[i].y, + fgeom->areas[i].width, + fgeom->areas[i].height); + } + /****************************************************************/ /* Old code which needs replacing: */ |