aboutsummaryrefslogtreecommitdiffstats
path: root/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff')
-rw-r--r--packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff40
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff b/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff
index e69de29bb2..814c6ae5c7 100644
--- a/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff
+++ b/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff
@@ -0,0 +1,40 @@
+--- gtk+-2.6.4/gtk/gtkhseparator.c 2004-08-09 19:59:52.000000000 +0300
++++ gtk+-2.6.4/gtk/gtkhseparator.c 2005-04-06 16:19:36.667963984 +0300
+@@ -91,13 +91,29 @@
+ gtk_hseparator_expose (GtkWidget *widget,
+ GdkEventExpose *event)
+ {
+- if (GTK_WIDGET_DRAWABLE (widget))
+- gtk_paint_hline (widget->style, widget->window, GTK_WIDGET_STATE (widget),
+- &event->area, widget, "hseparator",
+- widget->allocation.x,
+- widget->allocation.x + widget->allocation.width - 1,
+- widget->allocation.y + (widget->allocation.height -
+- widget->style->ythickness) / 2);
++ gboolean hildonlike_drawing = FALSE;
++ gtk_widget_style_get ( widget, "hildonlike-drawing", &hildonlike_drawing, NULL );
+
+- return FALSE;
++ if (GTK_WIDGET_DRAWABLE (widget))
++ {
++ if(hildonlike_drawing)
++ gtk_paint_box (widget->style, widget->window, GTK_STATE_NORMAL,
++ GTK_SHADOW_NONE, &event->area, widget, "hseparator",
++ widget->allocation.x,
++ widget->allocation.y + (widget->allocation.height -
++ widget->style->ythickness) / 2,
++ widget->allocation.width - 1,
++ widget->style->ythickness);
++ else
++ gtk_paint_hline (widget->style, widget->window, GTK_STATE_NORMAL,
++ &event->area, widget, "hseparator",
++ widget->allocation.x,
++ widget->allocation.x + widget->allocation.width - 1,
++ widget->allocation.y + (widget->allocation.height -
++ widget->style->ythickness) / 2);
++ }
++
++
++
++ return FALSE;
+ }