diff options
author | Havoc Pennington <hp@pobox.com> | 2002-11-03 19:55:38 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-11-03 19:55:38 +0000 |
commit | ee84fbb81fba845a044269c95a1ac3de8c90ad86 (patch) | |
tree | 2b643ff60541d9a9f279604ed9a714d79d7f6b77 | |
parent | 6a1abc7482600a30cab239a1f7aa6b7b25bdcebd (diff) | |
download | metacity-ee84fbb81fba845a044269c95a1ac3de8c90ad86.tar.gz |
fix from Garrett LeSage for which button backgrounds we draw when
2002-11-03 Havoc Pennington <hp@pobox.com>
* src/theme.c (meta_frame_layout_calc_geometry): fix from Garrett
LeSage for which button backgrounds we draw when
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/theme.c | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -1,5 +1,10 @@ 2002-11-03 Havoc Pennington <hp@pobox.com> + * src/theme.c (meta_frame_layout_calc_geometry): fix from Garrett + LeSage for which button backgrounds we draw when + +2002-11-03 Havoc Pennington <hp@pobox.com> + * src/workspace.c (meta_workspace_get_name): new function, and remove workspace->name field, instead just get the name from prefs each time diff --git a/src/theme.c b/src/theme.c index 7edd181e..6f250904 100644 --- a/src/theme.c +++ b/src/theme.c @@ -576,9 +576,9 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, while (i < n_left) { if (i == 0) /* prefer left background if only one button */ - left_bg_rects[i] = &fgeom->left_right_background; - else if (i == (n_left - 1)) left_bg_rects[i] = &fgeom->left_left_background; + else if (i == (n_left - 1)) + left_bg_rects[i] = &fgeom->left_right_background; else left_bg_rects[i] = &fgeom->left_middle_backgrounds[i-1]; @@ -589,9 +589,9 @@ meta_frame_layout_calc_geometry (const MetaFrameLayout *layout, while (i < n_right) { if (i == (n_right - 1)) /* prefer right background if only one button */ - right_bg_rects[i] = &fgeom->right_left_background; - else if (i == 0) right_bg_rects[i] = &fgeom->right_right_background; + else if (i == 0) + right_bg_rects[i] = &fgeom->right_left_background; else right_bg_rects[i] = &fgeom->right_middle_backgrounds[i-1]; |