[Xfce4-commits] [xfce/xfce4-power-manager] 02/03: Hide system sleep mode battery stuff when battery unavailable

noreply at xfce.org noreply at xfce.org
Sat Aug 2 21:12:30 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 e5a433fb16766770c0f4160f7af0ed62c615f7e4
Author: Harald Judt <h.judt at gmx.at>
Date:   Sat Aug 2 21:00:13 2014 +0200

    Hide system sleep mode battery stuff when battery unavailable
---
 data/interfaces/xfpm-settings.ui |    2 ++
 settings/xfpm-settings.c         |    1 +
 2 files changed, 3 insertions(+)

diff --git a/data/interfaces/xfpm-settings.ui b/data/interfaces/xfpm-settings.ui
index 430b560..74246f6 100644
--- a/data/interfaces/xfpm-settings.ui
+++ b/data/interfaces/xfpm-settings.ui
@@ -351,6 +351,8 @@
                                   <packing>
                                     <property name="top_attach">1</property>
                                     <property name="bottom_attach">2</property>
+                                    <property name="x_options">GTK_FILL</property>
+                                    <property name="y_options">GTK_FILL</property>
                                   </packing>
                                 </child>
                                 <child>
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index b08f39f..79406ad 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -2093,6 +2093,7 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
 	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"brightness-inactivity-on-battery")));
 	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"system-sleep-on-battery-header")));
 	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"system-sleep-plugged-in-header")));
+	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"system-sleep-mode-on-battery")));
 	gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (xml ,"system-sleep-inactivity-on-battery")));
 	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")));

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


More information about the Xfce4-commits mailing list