[gnome-control-center] power: hide "When power is critical" elements when there's no batteries
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] power: hide "When power is critical" elements when there's no batteries
- Date: Wed, 15 Feb 2012 16:14:01 +0000 (UTC)
commit 240faca3e0ad7c26b3bb5edb68e0dc55a2e6bd0d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Feb 14 18:05:34 2012 -0500
power: hide "When power is critical" elements when there's no batteries
As for the mockups
https://bugzilla.gnome.org/show_bug.cgi?id=670107
panels/power/cc-power-panel.c | 2 ++
panels/power/power.ui | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/panels/power/cc-power-panel.c b/panels/power/cc-power-panel.c
index 531604e..5d55d7d 100644
--- a/panels/power/cc-power-panel.c
+++ b/panels/power/cc-power-panel.c
@@ -962,6 +962,8 @@ out:
gtk_widget_set_visible (WID (priv->builder, "label_header_battery"), has_batteries);
gtk_widget_set_visible (WID (priv->builder, "label_header_ac"), has_batteries);
gtk_widget_set_visible (WID (priv->builder, "combobox_sleep_battery"), has_batteries);
+ gtk_widget_set_visible (WID (priv->builder, "label_critical"), has_batteries);
+ gtk_widget_set_visible (WID (priv->builder, "combobox_critical"), has_batteries);
}
static gboolean
diff --git a/panels/power/power.ui b/panels/power/power.ui
index f6542c2..6324c69 100644
--- a/panels/power/power.ui
+++ b/panels/power/power.ui
@@ -143,7 +143,7 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="label5">
+ <object class="GtkLabel" id="label_critical">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]