@@ -984,6 +984,9 @@ create_toolbar (PlumaFileBrowserWidget * obj,
984984
985985 /* Previous directory menu tool item */
986986 obj -> priv -> location_previous_menu = gtk_menu_new ();
987+
988+ gtk_menu_set_reserve_toggle_size (GTK_MENU (obj -> priv -> location_previous_menu ), FALSE);
989+
987990 gtk_widget_show (obj -> priv -> location_previous_menu );
988991
989992 widget = GTK_WIDGET (gtk_menu_tool_button_new (gtk_image_new_from_icon_name ("go-previous" ,
@@ -1007,6 +1010,9 @@ create_toolbar (PlumaFileBrowserWidget * obj,
10071010
10081011 /* Next directory menu tool item */
10091012 obj -> priv -> location_next_menu = gtk_menu_new ();
1013+
1014+ gtk_menu_set_reserve_toggle_size (GTK_MENU (obj -> priv -> location_next_menu ), FALSE);
1015+
10101016 gtk_widget_show (obj -> priv -> location_next_menu );
10111017
10121018 widget = GTK_WIDGET (gtk_menu_tool_button_new (gtk_image_new_from_icon_name ("go-next" ,
@@ -1532,7 +1538,6 @@ create_goto_menu_item (PlumaFileBrowserWidget * obj, GList * item,
15321538 GdkPixbuf * icon )
15331539{
15341540 GtkWidget * result ;
1535- GtkWidget * image ;
15361541 gchar * unescape ;
15371542 GdkPixbuf * pixbuf = NULL ;
15381543 Location * loc ;
@@ -1547,14 +1552,8 @@ create_goto_menu_item (PlumaFileBrowserWidget * obj, GList * item,
15471552 }
15481553
15491554 if (pixbuf ) {
1550- image = gtk_image_new_from_pixbuf (pixbuf );
1555+ result = pluma_image_menu_item_new_from_pixbuf (pixbuf , unescape );
15511556 g_object_unref (pixbuf );
1552-
1553- gtk_widget_show (image );
1554-
1555- result = gtk_image_menu_item_new_with_label (unescape );
1556- gtk_image_menu_item_set_image (GTK_IMAGE_MENU_ITEM (result ),
1557- image );
15581557 } else {
15591558 result = gtk_menu_item_new_with_label (unescape );
15601559 }
0 commit comments