[baobab] Show the usage level bar only for volumes
- From: Stefano Facchini <sfacchini src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [baobab] Show the usage level bar only for volumes
- Date: Sat, 13 Oct 2012 15:07:09 +0000 (UTC)
commit 74860f74c9155128901b5041e4c7fc8a707bcddd
Author: Stefano Facchini <stefano facchini gmail com>
Date: Tue Oct 2 17:17:52 2012 +0200
Show the usage level bar only for volumes
https://bugzilla.gnome.org/show_bug.cgi?id=685050
src/baobab-location-widget.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/baobab-location-widget.vala b/src/baobab-location-widget.vala
index a79da47..b1d7021 100644
--- a/src/baobab-location-widget.vala
+++ b/src/baobab-location-widget.vala
@@ -70,7 +70,7 @@ namespace Baobab {
label.get_style_context ().add_class ("dim-label");
attach (label, 1, 1, 1, 1);
- if (location.used != null && location.size != null) {
+ if (location.is_volume && location.used != null && location.size != null) {
label = new Gtk.Label ("<small>%s / %s</small>".printf (format_size (location.used), format_size (location.size)));
usage_size_group.add_widget (label);
label.use_markup = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]