[gnome-disk-utility] Use new udisks 2.1.1 API (if available) to show better partition descriptions
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Use new udisks 2.1.1 API (if available) to show better partition descriptions
- Date: Tue, 21 May 2013 16:36:23 +0000 (UTC)
commit cab45295b03c75c8ccc07ec8f8620b4ac52654d7
Author: David Zeuthen <zeuthen gmail com>
Date: Tue May 21 09:35:09 2013 -0700
Use new udisks 2.1.1 API (if available) to show better partition descriptions
See
http://cgit.freedesktop.org/udisks/commit/?id=68e0d368fb5d3088c5e7d7513607d24dbcb50e02
for why this is useful.
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gdupartitiondialog.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gdupartitiondialog.c b/src/disks/gdupartitiondialog.c
index 16326fe..39ca2b3 100644
--- a/src/disks/gdupartitiondialog.c
+++ b/src/disks/gdupartitiondialog.c
@@ -202,9 +202,16 @@ edit_partition_populate (EditPartitionData *data)
cur_table_subtype = info->table_subtype;
}
+#if UDISKS_CHECK_VERSION(2, 1, 1)
+ type_for_display = udisks_client_get_partition_type_and_subtype_for_display (client,
+
data->partition_table_type,
+ info->table_subtype,
+ info->type);
+#else
type_for_display = udisks_client_get_partition_type_for_display (client,
data->partition_table_type,
info->type);
+#endif
escaped_type_for_display = g_markup_escape_text (type_for_display, -1);
s = g_strdup_printf ("%s <span size=\"small\">(%s)</span>",
escaped_type_for_display,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]