[Xfce4-commits] [xfce/xfce4-power-manager] 01/03: Hide battery column in DPMS settings if battery is unavailable
noreply at xfce.org
noreply at xfce.org
Sat Aug 2 21:12:29 CEST 2014
This is an automated email from the git hooks/post-receive script.
hjudt pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit e0cc6828d7a41d095d624f42f8c8207d7b97ad1f
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Aug 2 20:48:28 2014 +0200
Hide battery column in DPMS settings if battery is unavailable
---
data/interfaces/xfpm-settings.ui | 2 +-
settings/xfpm-settings.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/data/interfaces/xfpm-settings.ui b/data/interfaces/xfpm-settings.ui
index 72836cc..430b560 100644
--- a/data/interfaces/xfpm-settings.ui
+++ b/data/interfaces/xfpm-settings.ui
@@ -1103,7 +1103,7 @@
<property name="can_focus">False</property>
<property name="spacing">6</property>
<child>
- <object class="GtkVBox" id="vbox16">
+ <object class="GtkVBox" id="display-blank-on-battery-vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index 6a43b16..b08f39f 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -2083,6 +2083,8 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"critical-power-frame")));
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"dpms-on-battery-header")));
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"dpms-plugged-in-header")));
+ gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"display-blank-on-battery")));
+ gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"display-blank-on-battery-vbox")));
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"dpms-sleep-on-battery")));
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"dpms-off-on-battery")));
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"brightness-on-battery-header")));
@@ -2095,7 +2097,6 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"lid-on-battery-header")));
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"lid-on-battery-combo")));
gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"lid-plugged-in-header")));
- gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"display-blank-on-battery")));
}
xfpm_settings_general (channel, auth_suspend, auth_hibernate, can_suspend, can_hibernate, can_shutdown,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list