[nautilus] Format item for volumes disappeared
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Format item for volumes disappeared
- Date: Mon, 18 Nov 2013 22:53:18 +0000 (UTC)
commit 9035178a9af9a9011b4a60365aa19be646eaa9f2
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Oct 29 22:43:54 2013 -0400
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
src/nautilus-window.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-window.c b/src/nautilus-window.c
index 9031360..8e24f4f 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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]