summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Thurman <tthurman@gnome.org>2009-10-23 15:51:14 -0400
committerThomas Thurman <tthurman@gnome.org>2009-10-23 15:51:14 -0400
commitee65cec6f31a9d1399ad2e699acf31d2aa7f4dff (patch)
treeba1337495560dabdb3f74df9baf23a4363bdc5a5
parentbcfd946063058b57e4effda74f2dd85e635c3e33 (diff)
downloadmetacity-ee65cec6f31a9d1399ad2e699acf31d2aa7f4dff.tar.gz
comments and a prototype
-rw-r--r--src/ui/theme.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c
index ae49d3ac..9dcb791d 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -144,6 +144,15 @@ static void cowbell_style_title_text (ccss_stylesheet_t *stylesheet,
PangoLayout *layout,
cairo_t *cr);
+static void cowbell_get_edge_sizes (MetaTheme *theme,
+ MetaFrameType type,
+ MetaFrameFlags flags,
+ CopperClasses style_id,
+ int *top,
+ int *bottom,
+ int *left,
+ int *right);
+
/****************************************************************/
static char const*
@@ -385,6 +394,10 @@ reduce_by_padding_borders_and_margins (ccss_stylesheet_t *stylesheet,
ccss_style_destroy (style);
}
+/*
+ * FIXME: This is only called in one place;
+ * shd possibly be inlined
+ */
static gint
draw_rectangle (ccss_stylesheet_t *stylesheet,
cairo_t *cr,
@@ -461,6 +474,7 @@ draw_rectangle (ccss_stylesheet_t *stylesheet,
ccss_cairo_style_draw_rectangle (style, cr, x, y, w, h);
+ /* FIXME do this in the caller */
if (style_id==CC_TITLE)
{
/* may be worth moving this inline? */
@@ -470,6 +484,7 @@ draw_rectangle (ccss_stylesheet_t *stylesheet,
reduce_by_padding_borders_and_margins (stylesheet, CC_TITLE,
&x, &y, &w, &h,
TRUE, FALSE);
+
cairo_translate (cr, x, y);
pango_cairo_show_layout (cr, layout);