]> spindle.queued.net Git - midori/commitdiff
Use "orientation" property of the toolbar instead of the function
authorChristian Dywan <christian@twotoasts.de>
Sat, 3 Oct 2009 21:59:32 +0000 (23:59 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sat, 3 Oct 2009 21:59:57 +0000 (23:59 +0200)
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

index 6ae27e1ce02bbda110c1e94892c530b8629c6451..1368017515125cb1a8eaa9199ae22adc27639b47 100644 (file)
@@ -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);