[gnome-control-center] network: Use g_settings_get_child to construct the proxy settings



commit 1f00e38838b5e9da5c7c50dd1e711e0c44e4f4dc
Author: Christian Persch <chpe gnome org>
Date:   Mon Mar 21 19:39:28 2011 +0100

    network: Use g_settings_get_child to construct the proxy settings
    
    Bug #645439.

 panels/network/cc-network-panel.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 34a95c3..4e9e035 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -2452,7 +2452,7 @@ cc_network_panel_init (CcNetworkPanel *panel)
                          G_SETTINGS_BIND_DEFAULT);
 
         /* bind the proxy values */
-        settings_tmp = g_settings_new ("org.gnome.system.proxy.http");
+        settings_tmp = g_settings_get_child (panel->priv->proxy_settings, "http");
         widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
                                                      "entry_proxy_http"));
         g_settings_bind (settings_tmp, "host",
@@ -2466,7 +2466,7 @@ cc_network_panel_init (CcNetworkPanel *panel)
         g_object_unref (settings_tmp);
 
         /* bind the proxy values */
-        settings_tmp = g_settings_new ("org.gnome.system.proxy.https");
+        settings_tmp = g_settings_get_child (panel->priv->proxy_settings, "https");
         widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
                                                      "entry_proxy_https"));
         g_settings_bind (settings_tmp, "host",
@@ -2480,7 +2480,7 @@ cc_network_panel_init (CcNetworkPanel *panel)
         g_object_unref (settings_tmp);
 
         /* bind the proxy values */
-        settings_tmp = g_settings_new ("org.gnome.system.proxy.ftp");
+        settings_tmp = g_settings_get_child (panel->priv->proxy_settings, "ftp");
         widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
                                                      "entry_proxy_ftp"));
         g_settings_bind (settings_tmp, "host",
@@ -2494,7 +2494,7 @@ cc_network_panel_init (CcNetworkPanel *panel)
         g_object_unref (settings_tmp);
 
         /* bind the proxy values */
-        settings_tmp = g_settings_new ("org.gnome.system.proxy.socks");
+        settings_tmp = g_settings_get_child (panel->priv->proxy_settings, "socks");
         widget = GTK_WIDGET (gtk_builder_get_object (panel->priv->builder,
                                                      "entry_proxy_socks"));
         g_settings_bind (settings_tmp, "host",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]