[gnome-disk-utility/new-ui] Don't show any buttons if media is unavailable
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/new-ui] Don't show any buttons if media is unavailable
- Date: Tue, 27 Oct 2009 16:58:36 +0000 (UTC)
commit 62480d3a13848b86537128497ec227ddc5d30b9f
Author: David Zeuthen <davidz redhat com>
Date: Tue Oct 27 12:58:12 2009 -0400
Don't show any buttons if media is unavailable
src/palimpsest/gdu-section-volumes.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/palimpsest/gdu-section-volumes.c b/src/palimpsest/gdu-section-volumes.c
index 7131a38..dc3b642 100644
--- a/src/palimpsest/gdu-section-volumes.c
+++ b/src/palimpsest/gdu-section-volumes.c
@@ -1481,6 +1481,7 @@ gdu_section_volumes_update (GduSection *_section)
}
}
+ out:
gdu_button_element_set_visible (section->priv->fs_mount_button, show_fs_mount_button);
gdu_button_element_set_visible (section->priv->fs_unmount_button, show_fs_unmount_button);
gdu_button_element_set_visible (section->priv->fs_check_button, show_fs_check_button);
@@ -1493,8 +1494,6 @@ gdu_section_volumes_update (GduSection *_section)
gdu_button_element_set_visible (section->priv->luks_unlock_button, show_luks_unlock_button);
gdu_button_element_set_visible (section->priv->luks_forget_passphrase_button, show_luks_forget_passphrase_button);
gdu_button_element_set_visible (section->priv->luks_change_passphrase_button, show_luks_change_passphrase_button);
-
- out:
if (d != NULL)
g_object_unref (d);
if (v != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]