[gnome-disk-utility] lvm2: Use device_file_presentation in dialog
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] lvm2: Use device_file_presentation in dialog
- Date: Tue, 23 Feb 2010 16:53:15 +0000 (UTC)
commit 9e3d9384d8edc10278f4397a058721d566b11042
Author: David Zeuthen <davidz redhat com>
Date: Tue Feb 23 11:39:35 2010 -0500
lvm2: Use device_file_presentation in dialog
It's nicer to show e.g. /dev/mapper/mpathap1 than /dev/dm-10.
Signed-off-by: David Zeuthen <davidz redhat com>
src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c b/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c
index e2833c7..8778e72 100644
--- a/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c
+++ b/src/gdu-gtk/gdu-edit-linux-lvm2-dialog.c
@@ -899,6 +899,7 @@ update_details (GduEditLinuxLvm2Dialog *dialog)
GduLinuxLvm2VolumeGroup *vg;
GduDevice *pv;
GduDevice *slave_drive_device;
+ const gchar *pv_device_file;
gchar *s;
gchar *s2;
GIcon *icon;
@@ -959,8 +960,10 @@ update_details (GduEditLinuxLvm2Dialog *dialog)
g_object_unref (icon);
}
- gdu_details_element_set_text (dialog->priv->pv_device_element,
- gdu_device_get_device_file (pv));
+ pv_device_file = gdu_device_get_device_file_presentation (pv);
+ if (pv_device_file == NULL || strlen (pv_device_file) == 0)
+ pv_device_file = gdu_device_get_device_file (pv);
+ gdu_details_element_set_text (dialog->priv->pv_device_element, pv_device_file);
out:
gdu_button_element_set_visible (dialog->priv->pv_new_button, show_pv_new_button);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]