[gnome-disk-utility] Update partition type when formatting volumes and creating partitions
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Update partition type when formatting volumes and creating partitions
- Date: Tue, 6 Nov 2012 17:16:37 +0000 (UTC)
commit c839b1f04ef1ebb9f56c1c4759ceceec501e9275
Author: David Zeuthen <zeuthen gmail com>
Date: Tue Nov 6 12:15:24 2012 -0500
Update partition type when formatting volumes and creating partitions
This was requested here
https://bugzilla.gnome.org/show_bug.cgi?id=685871
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gducreatepartitiondialog.c | 2 ++
src/disks/gduformatvolumedialog.c | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gducreatepartitiondialog.c b/src/disks/gducreatepartitiondialog.c
index b6089b0..32bce6d 100644
--- a/src/disks/gducreatepartitiondialog.c
+++ b/src/disks/gducreatepartitiondialog.c
@@ -272,6 +272,8 @@ create_partition_cb (GObject *source_object,
if (erase != NULL)
g_variant_builder_add (&options_builder, "{sv}", "erase", g_variant_new_string (erase));
+ g_variant_builder_add (&options_builder, "{sv}", "update-partition-type", g_variant_new_boolean (TRUE));
+
udisks_block_call_format (partition_block,
fstype,
g_variant_builder_end (&options_builder),
diff --git a/src/disks/gduformatvolumedialog.c b/src/disks/gduformatvolumedialog.c
index 2a4f0bd..b089179 100644
--- a/src/disks/gduformatvolumedialog.c
+++ b/src/disks/gduformatvolumedialog.c
@@ -183,6 +183,8 @@ gdu_format_volume_dialog_show (GduWindow *window,
if (erase_type != NULL)
g_variant_builder_add (&options_builder, "{sv}", "erase", g_variant_new_string (erase_type));
+ g_variant_builder_add (&options_builder, "{sv}", "update-partition-type", g_variant_new_boolean (TRUE));
+
udisks_block_call_format (data->block,
fstype,
g_variant_builder_end (&options_builder),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]