[Xfce4-commits] <midori:master> Use "orientation" property of the toolbar instead of the function
Christian Dywan
noreply at xfce.org
Sun Oct 4 00:10:03 CEST 2009
Updating branch refs/heads/master
to 136f5d981f5eee654d77c4007b47c5becb1a366f (commit)
from 53b3c6aee3a8ebc902c8eb04e3c6826554595940 (commit)
commit 136f5d981f5eee654d77c4007b47c5becb1a366f
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Oct 3 23:59:32 2009 +0200
Use "orientation" property of the toolbar instead of the function
The function is superseded with the introduction of the orientable
interface in new GTK+ releases, but the property is the same.
midori/midori-panel.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/midori/midori-panel.c b/midori/midori-panel.c
index 6ae27e1..1368017 100644
--- a/midori/midori-panel.c
+++ b/midori/midori-panel.c
@@ -356,8 +356,7 @@ midori_panel_init (MidoriPanel* panel)
gtk_toolbar_set_style (GTK_TOOLBAR (panel->toolbar), GTK_TOOLBAR_BOTH);
gtk_toolbar_set_icon_size (GTK_TOOLBAR (panel->toolbar),
GTK_ICON_SIZE_BUTTON);
- gtk_toolbar_set_orientation (GTK_TOOLBAR (panel->toolbar),
- GTK_ORIENTATION_VERTICAL);
+ g_object_set (panel->toolbar, "orientation", GTK_ORIENTATION_VERTICAL, NULL);
gtk_box_pack_start (GTK_BOX (panel), panel->toolbar, FALSE, FALSE, 0);
gtk_widget_show_all (panel->toolbar);
vbox = gtk_vbox_new (FALSE, 0);
More information about the Xfce4-commits
mailing list