diff options
author | Richard Purdie <richard@openedhand.com> | 2005-09-02 11:50:01 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2005-09-02 11:50:01 +0000 |
commit | 95efeafc86f47592b37c44f2f7314324cc04250d (patch) | |
tree | e60fe38e88d8e6cf42cf1311c5ada752b79a59c7 /openembedded/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff | |
parent | 7755d9d194b42ea859096f805f2e22ae5b6e6281 (diff) | |
download | poky-95efeafc86f47592b37c44f2f7314324cc04250d.tar.gz |
Add gtk+, avahi, dbus-0.34 (.36 coming soon) and dependencies. Fix x11-common breakage.
git-svn-id: https://svn.o-hand.com/repos/poky@13 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff')
-rw-r--r-- | openembedded/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/openembedded/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff b/openembedded/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff new file mode 100644 index 0000000000..814c6ae5c7 --- /dev/null +++ b/openembedded/packages/gtk+/gtk+-2.6.4-1.osso7/gtkhseparator.c.diff | |||
@@ -0,0 +1,40 @@ | |||
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 | } | ||