[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Drop network-manager option from UI Can still be set through xfconf

noreply at xfce.org noreply at xfce.org
Tue Jun 10 19:02:23 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 23806f63f4f77efb0f8d0f7c6ae46d5a3883d67f
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Tue Jun 10 19:02:10 2014 +0200

    Drop network-manager option from UI
    Can still be set through xfconf
---
 data/interfaces/xfpm-settings.ui |   16 ----------------
 settings/xfpm-settings.c         |   16 ----------------
 2 files changed, 32 deletions(-)

diff --git a/data/interfaces/xfpm-settings.ui b/data/interfaces/xfpm-settings.ui
index d46b747..1d4e4e7 100644
--- a/data/interfaces/xfpm-settings.ui
+++ b/data/interfaces/xfpm-settings.ui
@@ -165,22 +165,6 @@
                                     <property name="position">1</property>
                                   </packing>
                                 </child>
-                                <child>
-                                  <object class="GtkCheckButton" id="network-manager-sleep">
-                                    <property name="label" translatable="yes">Notify Network Manager of suspend/hibernate</property>
-                                    <property name="visible">True</property>
-                                    <property name="can_focus">True</property>
-                                    <property name="receives_default">False</property>
-                                    <property name="tooltip_text" translatable="yes">When enabled this signals to network manager that the system is going to suspend/hibernate so it can power down the network interfaces, saving power.</property>
-                                    <property name="use_action_appearance">False</property>
-                                    <property name="draw_indicator">True</property>
-                                  </object>
-                                  <packing>
-                                    <property name="expand">False</property>
-                                    <property name="fill">True</property>
-                                    <property name="position">2</property>
-                                  </packing>
-                                </child>
                               </object>
                             </child>
                           </object>
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index f3e6622..22e4474 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -1478,22 +1478,6 @@ xfpm_settings_advanced (XfconfChannel *channel, gboolean system_laptop,
     
     val = xfconf_channel_get_bool (channel, PROPERTIES_PREFIX LOCK_SCREEN_ON_SLEEP, TRUE);
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(lock), val);
-
-    /*
-     * Network Manager Sleep for suspend/hibernate
-     */
-    network_manager_sleep = GTK_WIDGET (gtk_builder_get_object (xml, "network-manager-sleep"));
-
-#ifdef WITH_NETWORK_MANAGER
-    val = xfconf_channel_get_bool (channel, PROPERTIES_PREFIX NETWORK_MANAGER_SLEEP, TRUE);
-    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(network_manager_sleep), val);
-
-    xfconf_g_property_bind(channel, PROPERTIES_PREFIX NETWORK_MANAGER_SLEEP,
-                           G_TYPE_BOOLEAN, G_OBJECT(network_manager_sleep),
-                           "active");
-#else
-    gtk_widget_hide (network_manager_sleep);
-#endif
 }
 
 /* Call gtk_tree_iter_free when done with the tree iter */

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


More information about the Xfce4-commits mailing list