summaryrefslogtreecommitdiff
path: root/capplets/network
diff options
context:
space:
mode:
authorrezso <[email protected]>2015-01-30 19:23:48 +0100
committerStefano Karapetsas <[email protected]>2015-03-19 09:41:23 +0100
commitb530bdbeb4db16ff29427d1e41d2a11ded9d6854 (patch)
tree915936c4227354965e799e139070e226bf63b1d0 /capplets/network
parent9331cd6c6f16ba0a2aedbbfaa58b7b7bcb7302aa (diff)
downloadmate-control-center-b530bdbeb4db16ff29427d1e41d2a11ded9d6854.tar.bz2
mate-control-center-b530bdbeb4db16ff29427d1e41d2a11ded9d6854.tar.xz
use enum from gsettings-desktop-schema
Diffstat (limited to 'capplets/network')
-rw-r--r--capplets/network/mate-network-properties.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/capplets/network/mate-network-properties.c b/capplets/network/mate-network-properties.c
index 32cd6e7c..b64f5439 100644
--- a/capplets/network/mate-network-properties.c
+++ b/capplets/network/mate-network-properties.c
@@ -41,14 +41,14 @@
*/
/*
- * FIXME use enum from gsettings-desktop-schema
+ * use enum from gsettings-desktop-schema
* http://git.gnome.org/browse/gsettings-desktop-schemas/tree/headers/gdesktop-enums.h#n26
*/
-enum ProxyMode
+enum GDesktopProxyMode
{
- PROXYMODE_NONE,
- PROXYMODE_MANUAL,
- PROXYMODE_AUTO
+ G_DESKTOP_PROXY_MODE_NONE,
+ G_DESKTOP_PROXY_MODE_MANUAL,
+ G_DESKTOP_PROXY_MODE_AUTO
};
enum {
@@ -319,16 +319,16 @@ proxy_mode_gsettings_changed (GSettings *settings,
{
int mode;
mode = g_settings_get_enum (settings, PROXY_MODE_KEY);
- if (mode == PROXYMODE_NONE)
+ if (mode == G_DESKTOP_PROXY_MODE_NONE)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object(builder, "none_radiobutton")), TRUE);
- else if (mode == PROXYMODE_AUTO)
+ else if (mode == G_DESKTOP_PROXY_MODE_AUTO)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object(builder, "auto_radiobutton")), TRUE);
- else if (mode == PROXYMODE_MANUAL)
+ else if (mode == G_DESKTOP_PROXY_MODE_MANUAL)
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (gtk_builder_get_object(builder, "manual_radiobutton")), TRUE);
gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "manual_box"),
- mode == PROXYMODE_MANUAL);
+ mode == G_DESKTOP_PROXY_MODE_MANUAL);
gtk_widget_set_sensitive (_gtk_builder_get_widget (builder, "auto_box"),
- mode == PROXYMODE_AUTO);
+ mode == G_DESKTOP_PROXY_MODE_AUTO);
}
static void