[gnome-disk-utility] Ensure we display "No Media" instead of "Block device is empty" for drives
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Ensure we display "No Media" instead of "Block device is empty" for drives
- Date: Sat, 6 Oct 2012 19:57:32 +0000 (UTC)
commit 619d663d1a69b6ce25d6a093fa4cad3838edbd8b
Author: David Zeuthen <zeuthen gmail com>
Date: Sat Oct 6 15:56:50 2012 -0400
Ensure we display "No Media" instead of "Block device is empty" for drives
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gduwindow.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index f02b69f..5f79af3 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -2418,9 +2418,6 @@ update_device_page_for_drive (GduWindow *window,
const gchar *serial;
GList *jobs;
- gdu_volume_grid_set_no_media_string (GDU_VOLUME_GRID (window->volume_grid),
- _("No Media"));
-
//g_debug ("In update_device_page_for_drive() - selected=%s",
// object != NULL ? g_dbus_object_get_object_path (object) : "<nothing>");
@@ -2433,6 +2430,9 @@ update_device_page_for_drive (GduWindow *window,
if (block != NULL)
update_drive_part_for_block (window, block, show_flags);
+ gdu_volume_grid_set_no_media_string (GDU_VOLUME_GRID (window->volume_grid),
+ _("No Media"));
+
ata = udisks_object_peek_drive_ata (object);
info = udisks_client_get_object_info (window->client, object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]