[gnome-disk-utility/udisks2-port] Make Create/Restore Disk Image options available for non-partitionable devices
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Make Create/Restore Disk Image options available for non-partitionable devices
- Date: Thu, 15 Dec 2011 20:27:32 +0000 (UTC)
commit 6e5f987c996af0dbfa690226d5a59c793e5515d1
Author: David Zeuthen <davidz redhat com>
Date: Thu Dec 15 15:27:05 2011 -0500
Make Create/Restore Disk Image options available for non-partitionable devices
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduwindow.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 7710dc4..9be141d 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -1867,12 +1867,9 @@ update_device_page_for_block (GduWindow *window,
if (udisks_block_get_size (block) > 0)
{
*show_flags |= SHOW_FLAGS_POPUP_MENU_CREATE_VOLUME_IMAGE;
- if (udisks_block_get_hint_partitionable (block))
- {
- *show_flags |= SHOW_FLAGS_DISK_POPUP_MENU_CREATE_DISK_IMAGE;
- if (!read_only)
- *show_flags |= SHOW_FLAGS_DISK_POPUP_MENU_RESTORE_DISK_IMAGE;
- }
+ *show_flags |= SHOW_FLAGS_DISK_POPUP_MENU_CREATE_DISK_IMAGE;
+ if (!read_only)
+ *show_flags |= SHOW_FLAGS_DISK_POPUP_MENU_RESTORE_DISK_IMAGE;
if (!read_only)
{
*show_flags |= SHOW_FLAGS_POPUP_MENU_RESTORE_VOLUME_IMAGE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]