summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@redhat.com>2009-04-22 17:45:35 +0200
committerTomas Bzatek <tbzatek@redhat.com>2009-04-27 15:06:36 +0200
commita94e16504ba76796caed8ea74448a534fa900a9e (patch)
tree9893d938b574f2c55e347de5d8822ca18e2b67f6 /src
parent6391173f0a75bb644498a1b437d6e7d00c786030 (diff)
downloadgnome-disk-utility-a94e16504ba76796caed8ea74448a534fa900a9e.tar.gz
gnome-disk-utility-a94e16504ba76796caed8ea74448a534fa900a9e.tar.xz
gnome-disk-utility-a94e16504ba76796caed8ea74448a534fa900a9e.zip
spawn palimpsest according to real presentable type
Diffstat (limited to 'src')
-rw-r--r--src/gdu-format-tool/format-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gdu-format-tool/format-window.c b/src/gdu-format-tool/format-window.c
index fd469bc..b853a28 100644
--- a/src/gdu-format-tool/format-window.c
+++ b/src/gdu-format-tool/format-window.c
@@ -251,7 +251,7 @@ spawn_palimpsest (FormatDialogPrivate *priv)
device = gdu_presentable_get_device (priv->presentable);
if (device) {
- argv[1] = g_strdup_printf ("--show-drive=%s", gdu_device_get_device_file (device));
+ argv[1] = g_strdup_printf ("--%s=%s", GDU_IS_DRIVE (priv->presentable) ? "show-drive" : "show-volume", gdu_device_get_device_file (device));
g_object_unref (device);
}