[murrine] Arrowstyle = 2 for fat arrowstyle = 1's style
- From: Andrea Cimitan <acimitan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [murrine] Arrowstyle = 2 for fat arrowstyle = 1's style
- Date: Fri, 23 Jul 2010 09:56:48 +0000 (UTC)
commit 0cc6bc4c35aa9f2024fe610cdd8057dcd8103196
Author: Andrea Cimitan <andrea cimitan gmail com>
Date: Fri Jul 23 11:53:36 2010 +0200
Arrowstyle = 2 for fat arrowstyle = 1's style
src/murrine_draw.c | 11 +++++++----
src/murrine_style.c | 22 +++++++++++++++++-----
2 files changed, 24 insertions(+), 9 deletions(-)
---
diff --git a/src/murrine_draw.c b/src/murrine_draw.c
index 465a21a..dec4633 100644
--- a/src/murrine_draw.c
+++ b/src/murrine_draw.c
@@ -2198,7 +2198,7 @@ murrine_draw_handle (cairo_t *cr,
cairo_stroke (cr);
bar_y += bar_spacing;
- }
+ }
break;
}
case 1:
@@ -2216,9 +2216,9 @@ murrine_draw_handle (cairo_t *cr,
cairo_stroke (cr);
bar_y += bar_spacing;
- }
+ }
break;
- }
+ }
}
}
@@ -2258,7 +2258,7 @@ murrine_draw_normal_arrow_new (cairo_t *cr,
const MurrineRGB *color,
double x, double y, double width, double height)
{
- int arrow_width = width;
+ int arrow_width = width+2;
int arrow_height = height;
cairo_pattern_t *pat;
@@ -2355,6 +2355,8 @@ _murrine_draw_arrow (cairo_t *cr,
case 0:
murrine_draw_normal_arrow (cr, color, 0, 0, width, height);
break;
+ case 2:
+ cairo_translate (cr, 0, 1.0);
case 1:
murrine_draw_normal_arrow_new (cr, color, 0, 0, width, height);
break;
@@ -2370,6 +2372,7 @@ _murrine_draw_arrow (cairo_t *cr,
murrine_draw_combo_arrow (cr, color, 0, 0, width, height);
break;
case 1:
+ case 2:
murrine_draw_combo_arrow_new (cr, color, 0, 0, width, height);
break;
}
diff --git a/src/murrine_style.c b/src/murrine_style.c
index b1c55c7..9060856 100644
--- a/src/murrine_style.c
+++ b/src/murrine_style.c
@@ -1891,7 +1891,7 @@ murrine_style_draw_arrow (GtkStyle *style,
murrine_set_widget_parameters (widget, style, state_type, ¶ms);
- if (arrow.style == 1)
+ if (arrow.style == 1 || arrow.style == 2)
{
if (DETAIL ("menuitem"))
{
@@ -1935,10 +1935,22 @@ murrine_style_draw_arrow (GtkStyle *style,
y = y + height / 2 - 1;
height = 4; width = 5;
- if (arrow.direction == MRN_DIRECTION_UP)
- y--;
- if (arrow.direction == MRN_DIRECTION_DOWN)
- y++;
+ if (arrow.style == 2)
+ {
+ width -= 2;
+ x++;
+ if (arrow.direction == MRN_DIRECTION_UP)
+ y++;
+ if (arrow.direction == MRN_DIRECTION_DOWN)
+ y--;
+ }
+ else
+ {
+ if (arrow.direction == MRN_DIRECTION_UP)
+ y--;
+ if (arrow.direction == MRN_DIRECTION_DOWN)
+ y++;
+ }
}
else if (arrow.direction == MRN_DIRECTION_UP || arrow.direction == MRN_DIRECTION_DOWN)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]