summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-10-23 15:59:33 -0400
committerThomas Thurman <tthurman@gnome.org>2009-10-23 15:59:33 -0400
commite4576149b1f114d12146a5438d8c8922b10addcb (patch)
tree9fc8c8fed7616373b8d6ad71faf75109537a4352
parent619d9aea808b835c5a6660517f13259ab67e6c8d (diff)
downloadmetacity-e4576149b1f114d12146a5438d8c8922b10addcb.tar.gz
remove old width calc from draw_rectangle
-rw-r--r--src/ui/theme.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index d751fdd6..78a7cf80 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -334,21 +334,19 @@ get_number_from_style (ccss_style_t *style,
* FIXME: This is only called in one place;
* shd possibly be inlined
*/
-static gint
+static void
draw_rectangle (ccss_stylesheet_t *stylesheet,
cairo_t *cr,
CopperClasses style_id,
int x, int y, int w, int h,
gboolean honour_margins,
- gboolean from_the_right,
PangoLayout *layout)
{
ccss_style_t *style = ccss_stylesheet_query (stylesheet,
(ccss_node_t*) &cowbell_nodes[style_id]);
- int full_width;
int horizontal_margin = 0;
- if (!style) return 0;
+ if (!style) return;
if (honour_margins)
{
@@ -403,16 +401,9 @@ draw_rectangle (ccss_stylesheet_t *stylesheet,
}
}
- full_width = w+ horizontal_margin;
-
- if (from_the_right)
- x -= full_width;
-
ccss_cairo_style_draw_rectangle (style, cr, x, y, w, h);
ccss_style_destroy (style);
-
- return full_width;
}
static void
@@ -514,7 +505,6 @@ meta_theme_draw_frame_with_style (MetaTheme *theme,
fgeom.areas[i].width,
fgeom.areas[i].height,
i != CC_FRAME /* honour_margins */,
- FALSE, /* from_the_right: this is going away */
title_layout);
}