[gnome-disk-utility/udisks2-port] Hide "Create Disk Image" menu item if not a drive
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Hide "Create Disk Image" menu item if not a drive
- Date: Thu, 1 Dec 2011 18:02:55 +0000 (UTC)
commit fd956dde7d13dfbcef18dcb892b8ab0ceed974a4
Author: David Zeuthen <davidz redhat com>
Date: Thu Dec 1 13:02:43 2011 -0500
Hide "Create Disk Image" menu item if not a drive
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduwindow.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 30d53e3..bfb9e19 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -337,6 +337,7 @@ update_for_show_flags (GduWindow *window,
/* Hide Drive menu items unless it's actually a drive */
is_drive = (udisks_object_peek_drive (window->current_object) != NULL);
+ gtk_widget_set_visible (GTK_WIDGET (window->generic_menu_item_create_disk_image), is_drive);
gtk_widget_set_visible (GTK_WIDGET (window->generic_menu_item_view_smart), is_drive);
gtk_widget_set_visible (GTK_WIDGET (window->generic_menu_item_format_disk), is_drive);
gtk_widget_set_visible (GTK_WIDGET (window->generic_menu_item_drive_separator), is_drive);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]