[metacity/cowbell] rm old code
- From: Thomas James Alexander Thurman <tthurman src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [metacity/cowbell] rm old code
- Date: Fri, 23 Oct 2009 18:10:26 +0000 (UTC)
commit 458dc77f77025120054bc4ee49a69b95a7e0b468
Author: Thomas Thurman <tthurman gnome org>
Date: Fri Oct 23 14:02:53 2009 -0400
rm old code
src/ui/theme.c | 33 ++-------------------------------
1 files changed, 2 insertions(+), 31 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 8c27a91..e6c4f79 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -1089,37 +1089,8 @@ meta_theme_calc_geometry (MetaTheme *theme,
fill_button_rect (&(fgeom->unabove_rect), CC_UNABOVE, fgeom);
fill_button_rect (&(fgeom->unstick_rect), CC_UNSTICK, fgeom);
-#if 0
- /* see if we can write meta_theme_calc_geometry in terms of
- * meta_theme_get_frame_borders
- */
- meta_theme_get_frame_borders (theme, type, text_height, flags,
- &(fgeom->top_height),
- &(fgeom->bottom_height),
- &(fgeom->left_width),
- &(fgeom->right_width));
-
- fgeom->width = client_width+(fgeom->top_height)+(fgeom->bottom_height);
- fgeom->height = client_height+(fgeom->left_width)+(fgeom->right_width);
-
- clear_rect (&(fgeom->title_rect));
-
- fgeom->left_titlebar_edge=0;
- fgeom->right_titlebar_edge=0;
- fgeom->top_titlebar_edge=0;
- fgeom->bottom_titlebar_edge=0;
-
- clear_bs (&(fgeom->close_rect));
- clear_bs (&(fgeom->max_rect));
- clear_bs (&(fgeom->min_rect));
- clear_bs (&(fgeom->menu_rect));
- clear_bs (&(fgeom->shade_rect));
- clear_bs (&(fgeom->above_rect));
- clear_bs (&(fgeom->stick_rect));
- clear_bs (&(fgeom->unshade_rect));
- clear_bs (&(fgeom->unabove_rect));
- clear_bs (&(fgeom->unstick_rect));
-#endif
+ /****************************************************************/
+ /* Old code which needs replacing: */
/* Rounded corners; need to pick these up from the CSS. FIXME. */
fgeom->top_left_corner_rounded_radius = 5;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]