Commit e9588a57 authored by Cosimo Cecchi's avatar Cosimo Cecchi

toolbar: don't use deprecated gtk_menu_button_set_menu()

parent 395bc3b4
......@@ -5,7 +5,7 @@ dnl ===========================================================================
m4_define(glib_minver, 2.31.9)
m4_define(gnome_desktop_minver, 3.0.0)
m4_define(pango_minver, 1.28.3)
m4_define(gtk_minver, 3.5.5)
m4_define(gtk_minver, 3.5.12)
m4_define(xml_minver, 2.7.8)
m4_define(exif_minver, 0.6.20)
m4_define(exempi_minver, 2.1.0)
......
......@@ -211,7 +211,7 @@ nautilus_toolbar_constructed (GObject *obj)
tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "go-down-symbolic");
gtk_container_add (GTK_CONTAINER (box), GTK_WIDGET (tool_button));
menu = gtk_ui_manager_get_widget (self->priv->ui_manager, "/ViewMenu");
gtk_menu_button_set_menu (GTK_MENU_BUTTON (tool_button), menu);
gtk_menu_button_set_popup (GTK_MENU_BUTTON (tool_button), menu);
gtk_style_context_add_class (gtk_widget_get_style_context (box),
GTK_STYLE_CLASS_RAISED);
......@@ -228,7 +228,7 @@ nautilus_toolbar_constructed (GObject *obj)
tool_button = toolbar_create_toolbutton (self, TRUE, FALSE, "emblem-system-symbolic");
menu = gtk_ui_manager_get_widget (self->priv->ui_manager, "/ActionMenu");
gtk_widget_set_halign (menu, GTK_ALIGN_END);
gtk_menu_button_set_menu (GTK_MENU_BUTTON (tool_button), menu);
gtk_menu_button_set_popup (GTK_MENU_BUTTON (tool_button), menu);
gtk_actionable_set_action_name (GTK_ACTIONABLE (tool_button), "win.gear-menu");
gtk_container_add (GTK_CONTAINER (tool_item), tool_button);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment