diff options
Diffstat (limited to 'meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkvseparator.c.diff')
-rw-r--r-- | meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkvseparator.c.diff | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkvseparator.c.diff b/meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkvseparator.c.diff new file mode 100644 index 0000000000..f4b1c00900 --- /dev/null +++ b/meta/packages/gtk+/gtk+-2.6.4-1.osso7/gtkvseparator.c.diff | |||
@@ -0,0 +1,45 @@ | |||
1 | --- gtk+-2.6.4/gtk/gtkvseparator.c 2004-08-09 19:59:53.000000000 +0300 | ||
2 | +++ gtk+-2.6.4/gtk/gtkvseparator.c 2005-04-06 16:19:38.356707256 +0300 | ||
3 | @@ -91,13 +91,34 @@ | ||
4 | gtk_vseparator_expose (GtkWidget *widget, | ||
5 | GdkEventExpose *event) | ||
6 | { | ||
7 | - if (GTK_WIDGET_DRAWABLE (widget)) | ||
8 | - gtk_paint_vline (widget->style, widget->window, GTK_WIDGET_STATE (widget), | ||
9 | - &event->area, widget, "vseparator", | ||
10 | - widget->allocation.y, | ||
11 | - widget->allocation.y + widget->allocation.height - 1, | ||
12 | - widget->allocation.x + (widget->allocation.width - | ||
13 | - widget->style->xthickness) / 2); | ||
14 | + gboolean hildonlike_drawing = FALSE; | ||
15 | |||
16 | - return FALSE; | ||
17 | + | ||
18 | + gtk_widget_style_get ( widget, "hildonlike-drawing", &hildonlike_drawing, NULL ); | ||
19 | + | ||
20 | + if (GTK_WIDGET_DRAWABLE (widget)) | ||
21 | + { | ||
22 | + if(hildonlike_drawing) | ||
23 | + gtk_paint_box (widget->style, widget->window, GTK_STATE_NORMAL, | ||
24 | + GTK_SHADOW_NONE, &event->area, widget, "vseparator", | ||
25 | + widget->allocation.x + (widget->allocation.width - | ||
26 | + widget->style->xthickness) / 2, | ||
27 | + widget->allocation.y, | ||
28 | + | ||
29 | + widget->style->xthickness, | ||
30 | + widget->allocation.height - 1); | ||
31 | + else | ||
32 | + gtk_paint_vline (widget->style, widget->window, GTK_STATE_NORMAL, | ||
33 | + &event->area, widget, "vseparator", | ||
34 | + widget->allocation.y, | ||
35 | + widget->allocation.y + widget->allocation.height - 1, | ||
36 | + widget->allocation.x + (widget->allocation.width - | ||
37 | + widget->style->xthickness) / 2); | ||
38 | + } | ||
39 | + | ||
40 | + | ||
41 | + | ||
42 | + | ||
43 | + | ||
44 | + return FALSE; | ||
45 | } | ||