[metacity/cowbell] rm parts of geom which don't appear in cowbell



commit 27920efcf0d07d5225261bc104b7cd9642153ec1
Author: Thomas Thurman <tthurman gnome org>
Date:   Fri Oct 23 01:00:40 2009 -0400

    rm parts of geom which don't appear in cowbell

 src/ui/theme.c |   12 ------------
 src/ui/theme.h |    2 ++
 2 files changed, 2 insertions(+), 12 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 0b8780f..4e0adc3 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -750,8 +750,6 @@ meta_theme_calc_geometry (MetaTheme              *theme,
 {
   /* stub */
 
-  gint i;
-
   /* see if we can write meta_theme_calc_geometry in terms of
    * meta_theme_get_frame_borders
    */
@@ -781,16 +779,6 @@ meta_theme_calc_geometry (MetaTheme              *theme,
   clear_bs (&(fgeom->unshade_rect));
   clear_bs (&(fgeom->unabove_rect));
   clear_bs (&(fgeom->unstick_rect));
-
-  /* Pieces.  Are these really necessary? */
-  clear_rect (&(fgeom->left_left_background));
-  for (i=0; i<MAX_MIDDLE_BACKGROUNDS; i++)
-    clear_rect (&(fgeom->left_middle_backgrounds[i]));
-  clear_rect (&(fgeom->left_right_background));
-  clear_rect (&(fgeom->right_left_background));
-  for (i=0; i<MAX_MIDDLE_BACKGROUNDS; i++)
-    clear_rect (&(fgeom->right_middle_backgrounds[i]));
-  clear_rect (&(fgeom->right_right_background));
   
   /* Rounded corners; need to pick these up from the CSS.  FIXME. */
   fgeom->top_left_corner_rounded_radius = 5;
diff --git a/src/ui/theme.h b/src/ui/theme.h
index ee46b6f..5f88830 100644
--- a/src/ui/theme.h
+++ b/src/ui/theme.h
@@ -117,6 +117,7 @@ typedef struct
   MetaButtonSpace unabove_rect;
   MetaButtonSpace unstick_rect;
 
+#if 0
 #define MAX_MIDDLE_BACKGROUNDS (MAX_BUTTONS_PER_CORNER - 2)
   GdkRectangle left_left_background;
   GdkRectangle left_middle_backgrounds[MAX_MIDDLE_BACKGROUNDS];
@@ -125,6 +126,7 @@ typedef struct
   GdkRectangle right_middle_backgrounds[MAX_MIDDLE_BACKGROUNDS];
   GdkRectangle right_right_background;
   /* End of button rects (if changed adjust memset hack) */
+#endif
   
   /* Round corners */
   guint top_left_corner_rounded_radius;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]