[gnome-disk-utility/udisks2-port] Also show "Backing File" when selecting unallocated space
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Also show "Backing File" when selecting unallocated space
- Date: Wed, 7 Dec 2011 22:56:21 +0000 (UTC)
commit d823af051fabca247a9c01d2ae2cc04d54baf87b
Author: David Zeuthen <davidz redhat com>
Date: Wed Dec 7 17:55:47 2011 -0500
Also show "Backing File" when selecting unallocated space
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduwindow.c | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/palimpsest/gduwindow.c b/src/palimpsest/gduwindow.c
index 07cf8ad..f85ae11 100644
--- a/src/palimpsest/gduwindow.c
+++ b/src/palimpsest/gduwindow.c
@@ -2131,6 +2131,7 @@ update_device_page_for_free_space (GduWindow *window,
ShowFlags *show_flags)
{
gchar *s;
+ UDisksLoop *loop;
UDisksPartitionTable *table;
const gchar *table_type = NULL;
gboolean read_only;
@@ -2140,6 +2141,7 @@ update_device_page_for_free_space (GduWindow *window,
// object != NULL ? g_dbus_object_get_object_path (object) : "<nothing>");
read_only = udisks_block_get_read_only (block);
+ loop = udisks_object_peek_loop (window->current_object);
if (!read_only)
{
@@ -2147,6 +2149,17 @@ update_device_page_for_free_space (GduWindow *window,
*show_flags |= SHOW_FLAGS_POPUP_MENU_RESTORE_DISK_IMAGE;
}
+ if (loop != NULL)
+ {
+ gchar *s;
+ s = gdu_utils_unfuse_path (udisks_loop_get_backing_file (loop));
+ set_markup (window,
+ "devtab-backing-file-label",
+ "devtab-backing-file-value-label",
+ s, SET_MARKUP_FLAGS_NONE);
+ g_free (s);
+ }
+
table = udisks_object_peek_partition_table (object);
if (table != NULL)
table_type = udisks_partition_table_get_type_ (table);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]