summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-10-29 22:43:54 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-11-18 17:52:03 -0500
commit9035178a9af9a9011b4a60365aa19be646eaa9f2 (patch)
tree14abeaec03abb9b5082ca370f8f2e3e862aa1eaa
parent6f17b14b4a4089b9e18a061c3326b3d8ea75f2dd (diff)
downloadnautilus-9035178a9af9a9011b4a60365aa19be646eaa9f2.tar.gz
Format item for volumes disappeared
Trying to reproduce some problem with the Format... menuitem on usb sticks in the sidebar, I found that the menuitem is gone in 3.10 - it turns out GtkPlacesSidebar gives both a selected_item and a selected_volume in some cases, therefore the conditions need to be checked in two independent ifs instead of the current if ... else if ... https://bugzilla.gnome.org/show_bug.cgi?id=711115
-rw-r--r--src/nautilus-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 90313609e..8e24f4fc3 100644
--- a/src/nautilus-window.c
+++ b/src/nautilus-window.c
@@ -823,7 +823,8 @@ places_sidebar_populate_popup_cb (GtkPlacesSidebar *sidebar,
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
gtk_widget_show (item);
}
- } else if (selected_volume) {
+ }
+ if (selected_volume) {
if (should_show_format_command (selected_volume)) {
item = gtk_menu_item_new_with_mnemonic (_("_Format…"));
g_object_set_data_full (G_OBJECT (item), "nautilus-volume",