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.
This commit is contained in:
parent
53b3c6aee3
commit
136f5d981f
1 changed files with 1 additions and 2 deletions
|
@ -356,8 +356,7 @@ midori_panel_init (MidoriPanel* panel)
|
||||||
gtk_toolbar_set_style (GTK_TOOLBAR (panel->toolbar), GTK_TOOLBAR_BOTH);
|
gtk_toolbar_set_style (GTK_TOOLBAR (panel->toolbar), GTK_TOOLBAR_BOTH);
|
||||||
gtk_toolbar_set_icon_size (GTK_TOOLBAR (panel->toolbar),
|
gtk_toolbar_set_icon_size (GTK_TOOLBAR (panel->toolbar),
|
||||||
GTK_ICON_SIZE_BUTTON);
|
GTK_ICON_SIZE_BUTTON);
|
||||||
gtk_toolbar_set_orientation (GTK_TOOLBAR (panel->toolbar),
|
g_object_set (panel->toolbar, "orientation", GTK_ORIENTATION_VERTICAL, NULL);
|
||||||
GTK_ORIENTATION_VERTICAL);
|
|
||||||
gtk_box_pack_start (GTK_BOX (panel), panel->toolbar, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (panel), panel->toolbar, FALSE, FALSE, 0);
|
||||||
gtk_widget_show_all (panel->toolbar);
|
gtk_widget_show_all (panel->toolbar);
|
||||||
vbox = gtk_vbox_new (FALSE, 0);
|
vbox = gtk_vbox_new (FALSE, 0);
|
||||||
|
|
Loading…
Reference in a new issue