[Xfce4-commits] [xfce/xfce4-power-manager] 02/03: Hide controls for critical power when there is no battery

noreply at xfce.org noreply at xfce.org
Tue Jul 15 00:39:35 CEST 2014

This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 3e08e8e9d789be68d684a718288e14ab49e22a3f
Author: Harald Judt <h.judt at gmx.at>
Date:   Mon Jul 14 20:02:16 2014 +0200

    Hide controls for critical power when there is no battery
 data/interfaces/xfpm-settings.ui |    2 +-
 settings/xfpm-settings.c         |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/data/interfaces/xfpm-settings.ui b/data/interfaces/xfpm-settings.ui
index d7dcbee..32b471a 100644
--- a/data/interfaces/xfpm-settings.ui
+++ b/data/interfaces/xfpm-settings.ui
@@ -614,7 +614,7 @@
-                      <object class="GtkFrame" id="frame3">
+                      <object class="GtkFrame" id="frame-critical-power">
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="label_xalign">0</property>
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index b68bde7..5ff353f 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -2029,6 +2029,7 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
+	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"frame-critical-power")));
 	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"display_onbattery")));
 	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"display_pluggedin")));
 	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"sleep-dpms-on-battery")));

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Xfce4-commits mailing list