1
=== modified file 'gtk2-engines-murrine/src/murrine_draw.c'
2
--- gtk2-engines-murrine/src/murrine_draw.c 2010-03-29 16:46:10 +0000
3
+++ gtk2-engines-murrine/src/murrine_draw.c 2010-03-29 17:34:42 +0000
4
@@ -2315,6 +2315,23 @@ murrine_draw_radiobutton (cairo_t *cr,
5
inconsistent = (checkbox->shadow_type == GTK_SHADOW_ETCHED_IN);
6
draw_bullet |= inconsistent;
8
+ if (checkbox->in_menu)
12
+ dot = &colors->text[0];
14
+ murrine_set_color_rgba (cr, dot, trans);
16
+ cairo_translate (cr, x, y);
18
+ cairo_arc (cr, 7, 7, 2.5, 0, G_PI*2);
27
if (widget->state_type == GTK_STATE_INSENSITIVE)
28
@@ -2468,60 +2485,64 @@ murrine_draw_checkbox (cairo_t *cr,
30
cairo_translate (cr, x, y);
32
- if (widget->xthickness > 2 && widget->ythickness > 2)
34
- if (widget->reliefstyle > 1 && draw_bullet && widget->state_type != GTK_STATE_INSENSITIVE)
37
- murrine_shade (border, 0.9, &shadow);
39
- murrine_draw_shadow (cr, &shadow,
40
- 0.5, 0.5, width-1, height-1,
41
- roundness+1, widget->corners,
42
- widget->reliefstyle,
43
- mrn_gradient_new, 0.08);
45
- else if (widget->reliefstyle != 0)
46
- murrine_draw_inset (cr, &widget->parentbg, 0.5, 0.5, width-1, height-1, roundness+1, widget->corners);
51
- murrine_rounded_rectangle_closed (cr, 1.5, 1.5, width-3, height-3, roundness, widget->corners);
52
- cairo_clip_preserve (cr);
53
+ if (!checkbox->in_menu)
58
- murrine_draw_glaze (cr, bg,
59
- widget->glow_shade, highlight_shade_new, lightborder_shade_new,
60
- mrn_gradient_new, widget, 2, 2, width-4, height-4,
61
- roundness, widget->corners, TRUE);
65
- murrine_set_color_rgb (cr, bg);
71
- if (checkbox->in_menu || checkbox->in_cell)
73
- mrn_gradient_new.border_shades[0] = 1.0;
74
- mrn_gradient_new.border_shades[1] = 1.0;
76
- mrn_gradient_new.has_border_colors = FALSE;
78
- else if (!draw_bullet)
80
- mrn_gradient_new = murrine_get_inverted_border_shades (mrn_gradient_new);
81
- mrn_gradient_new.has_border_colors = FALSE;
84
- murrine_draw_border (cr, border,
85
- 1.5, 1.5, width-3, height-3,
86
- roundness, widget->corners,
87
- mrn_gradient_new, 1.0);
88
+ if (widget->xthickness > 2 && widget->ythickness > 2)
90
+ if (widget->reliefstyle > 1 && draw_bullet && widget->state_type != GTK_STATE_INSENSITIVE)
93
+ murrine_shade (border, 0.9, &shadow);
95
+ murrine_draw_shadow (cr, &shadow,
96
+ 0.5, 0.5, width-1, height-1,
97
+ roundness+1, widget->corners,
98
+ widget->reliefstyle,
99
+ mrn_gradient_new, 0.08);
101
+ else if (widget->reliefstyle != 0)
102
+ murrine_draw_inset (cr, &widget->parentbg, 0.5, 0.5, width-1, height-1, roundness+1, widget->corners);
107
+ murrine_rounded_rectangle_closed (cr, 1.5, 1.5, width-3, height-3, roundness, widget->corners);
108
+ cairo_clip_preserve (cr);
112
+ murrine_draw_glaze (cr, bg,
113
+ widget->glow_shade, highlight_shade_new, lightborder_shade_new,
114
+ mrn_gradient_new, widget, 2, 2, width-4, height-4,
115
+ roundness, widget->corners, TRUE);
119
+ murrine_set_color_rgb (cr, bg);
123
+ cairo_restore (cr);
125
+ if (checkbox->in_menu || checkbox->in_cell)
127
+ mrn_gradient_new.border_shades[0] = 1.0;
128
+ mrn_gradient_new.border_shades[1] = 1.0;
130
+ mrn_gradient_new.has_border_colors = FALSE;
132
+ else if (!draw_bullet)
134
+ mrn_gradient_new = murrine_get_inverted_border_shades (mrn_gradient_new);
135
+ mrn_gradient_new.has_border_colors = FALSE;
138
+ murrine_draw_border (cr, border,
139
+ 1.5, 1.5, width-3, height-3,
140
+ roundness, widget->corners,
141
+ mrn_gradient_new, 1.0);