aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-preferences.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-13 15:45:28 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-15 19:45:47 +0800
commita27a6f8621c1f054c39e0ee1c0b8334434b10c97 (patch)
tree09a6c173ee50c315a7c8ff7fe50bdf6e14c465a8 /src/empathy-preferences.c
parent368556a6bd473f1faab34b44e6dba224f88361ac (diff)
downloadgsoc2013-empathy-a27a6f8621c1f054c39e0ee1c0b8334434b10c97.tar
gsoc2013-empathy-a27a6f8621c1f054c39e0ee1c0b8334434b10c97.tar.gz
gsoc2013-empathy-a27a6f8621c1f054c39e0ee1c0b8334434b10c97.tar.bz2
gsoc2013-empathy-a27a6f8621c1f054c39e0ee1c0b8334434b10c97.tar.lz
gsoc2013-empathy-a27a6f8621c1f054c39e0ee1c0b8334434b10c97.tar.xz
gsoc2013-empathy-a27a6f8621c1f054c39e0ee1c0b8334434b10c97.tar.zst
gsoc2013-empathy-a27a6f8621c1f054c39e0ee1c0b8334434b10c97.zip
remove deprecated gsettings keys
Those are not supported by the new roster UI and so can be removed. https://bugzilla.gnome.org/show_bug.cgi?id=677949
Diffstat (limited to 'src/empathy-preferences.c')
-rw-r--r--src/empathy-preferences.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index c72c6ae61..923bef0e9 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -86,7 +86,6 @@ struct _EmpathyPreferencesPriv {
GSettings *gsettings_sound;
GSettings *gsettings_ui;
GSettings *gsettings_logger;
- GSettings *gsettings_contacts;
};
static void preferences_setup_widgets (EmpathyPreferences *preferences,
@@ -152,36 +151,6 @@ static SoundEventEntry sound_entries [] = {
{ N_("Account disconnected"), EMPATHY_PREFS_SOUNDS_SERVICE_LOGOUT }
};
-static gboolean
-sort_criterium_get_mapping (GValue *value,
- GVariant *variant,
- gpointer user_data)
-{
- const char *s = g_variant_get_string (variant, NULL);
-
- if (!tp_strdiff (s, "state"))
- g_value_set_boolean (value, TRUE);
- else if (!tp_strdiff (s, "name"))
- g_value_set_boolean (value, FALSE);
- else
- return FALSE;
-
- return TRUE;
-}
-
-static GVariant *
-sort_criterium_set_mapping (const GValue *value,
- const GVariantType *expected_type,
- gpointer user_data)
-{
- gboolean b = g_value_get_boolean (value);
-
- if (b)
- return g_variant_new_string ("state");
- else
- return g_variant_new_string ("name");
-}
-
static void
preferences_setup_widgets (EmpathyPreferences *preferences,
GtkBuilder *gui)
@@ -210,8 +179,6 @@ preferences_setup_widgets (EmpathyPreferences *preferences,
BIND_ACTIVE (ui, UI_SHOW_OFFLINE,
"checkbutton_show_offline");
- BIND_ACTIVE (ui, UI_SHOW_PROTOCOLS,
- "checkbutton_show_protocols");
BIND_ACTIVE (ui, UI_SEPARATE_CHAT_WINDOWS,
"radiobutton_chats_new_windows");
BIND_ACTIVE (ui, UI_EVENTS_NOTIFY_AREA,
@@ -280,16 +247,6 @@ preferences_setup_widgets (EmpathyPreferences *preferences,
"checkbutton_autoconnect"),
"active",
G_SETTINGS_BIND_DEFAULT);
-
- g_settings_bind_with_mapping (priv->gsettings_contacts,
- EMPATHY_PREFS_CONTACTS_SORT_CRITERIUM,
- gtk_builder_get_object (gui,
- "radiobutton_sort_by_status"),
- "active",
- G_SETTINGS_BIND_DEFAULT,
- sort_criterium_get_mapping,
- sort_criterium_set_mapping,
- NULL, NULL);
}
static void
@@ -1075,7 +1032,6 @@ empathy_preferences_finalize (GObject *self)
g_object_unref (priv->gsettings_sound);
g_object_unref (priv->gsettings_ui);
g_object_unref (priv->gsettings_logger);
- g_object_unref (priv->gsettings_contacts);
G_OBJECT_CLASS (empathy_preferences_parent_class)->finalize (self);
}
@@ -1140,7 +1096,6 @@ empathy_preferences_init (EmpathyPreferences *preferences)
priv->gsettings_sound = g_settings_new (EMPATHY_PREFS_SOUNDS_SCHEMA);
priv->gsettings_ui = g_settings_new (EMPATHY_PREFS_UI_SCHEMA);
priv->gsettings_logger = g_settings_new (EMPATHY_PREFS_LOGGER_SCHEMA);
- priv->gsettings_contacts = g_settings_new (EMPATHY_PREFS_CONTACTS_SCHEMA);
/* Create chat theme preview, and track changes */
priv->theme_manager = empathy_theme_manager_dup_singleton ();