]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / gtk+ / gtk+-2.6.4-1.osso7 / gtkhseparator.c.diff
1 --- gtk+-2.6.4/gtk/gtkhseparator.c      2004-08-09 19:59:52.000000000 +0300
2 +++ gtk+-2.6.4/gtk/gtkhseparator.c      2005-04-06 16:19:36.667963984 +0300
3 @@ -91,13 +91,29 @@
4  gtk_hseparator_expose (GtkWidget      *widget,
5                        GdkEventExpose *event)
6  {
7 -  if (GTK_WIDGET_DRAWABLE (widget))
8 -    gtk_paint_hline (widget->style, widget->window, GTK_WIDGET_STATE (widget),
9 -                    &event->area, widget, "hseparator",
10 -                    widget->allocation.x,
11 -                    widget->allocation.x + widget->allocation.width - 1,
12 -                    widget->allocation.y + (widget->allocation.height -
13 -                                            widget->style->ythickness) / 2);
14 +   gboolean hildonlike_drawing = FALSE;
15 +   gtk_widget_style_get ( widget, "hildonlike-drawing", &hildonlike_drawing, NULL );
16  
17 -  return FALSE;
18 +   if (GTK_WIDGET_DRAWABLE (widget))
19 +   {
20 +          if(hildonlike_drawing)
21 +                  gtk_paint_box   (widget->style, widget->window, GTK_STATE_NORMAL,
22 +                                  GTK_SHADOW_NONE, &event->area, widget, "hseparator",
23 +                                  widget->allocation.x,
24 +                                  widget->allocation.y + (widget->allocation.height -
25 +                                          widget->style->ythickness) / 2,
26 +                                  widget->allocation.width - 1,
27 +                                  widget->style->ythickness);
28 +          else
29 +                  gtk_paint_hline (widget->style, widget->window, GTK_STATE_NORMAL,
30 +                                  &event->area, widget, "hseparator",
31 +                                  widget->allocation.x,
32 +                                  widget->allocation.x + widget->allocation.width - 1,
33 +                                  widget->allocation.y + (widget->allocation.height -
34 +                                          widget->style->ythickness) / 2);
35 +   }
36 +
37 +
38 +
39 +   return FALSE;
40  }