aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-preferences.c
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-27 19:20:54 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-07-28 17:24:42 +0800
commitbc537a1bb4f138dd71cd7dc411c10485f2cf96fa (patch)
tree45973e6a58446458ea5cadbd293c7fb0ac4a7cb2 /src/empathy-preferences.c
parent6b6e6cad7fb240e7d61285c55f44224376c9cf63 (diff)
downloadgsoc2013-empathy-bc537a1bb4f138dd71cd7dc411c10485f2cf96fa.tar
gsoc2013-empathy-bc537a1bb4f138dd71cd7dc411c10485f2cf96fa.tar.gz
gsoc2013-empathy-bc537a1bb4f138dd71cd7dc411c10485f2cf96fa.tar.bz2
gsoc2013-empathy-bc537a1bb4f138dd71cd7dc411c10485f2cf96fa.tar.lz
gsoc2013-empathy-bc537a1bb4f138dd71cd7dc411c10485f2cf96fa.tar.xz
gsoc2013-empathy-bc537a1bb4f138dd71cd7dc411c10485f2cf96fa.tar.zst
gsoc2013-empathy-bc537a1bb4f138dd71cd7dc411c10485f2cf96fa.zip
Preferences: add a Calls tab
It only contains the micro volume for now.
Diffstat (limited to 'src/empathy-preferences.c')
-rw-r--r--src/empathy-preferences.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 9db4739d6..121a090c4 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -75,6 +75,8 @@ struct _EmpathyPreferencesPriv {
GtkWidget *checkbutton_notifications_contact_signin;
GtkWidget *checkbutton_notifications_contact_signout;
+ GtkWidget *adj_call_volume;
+
GtkWidget *treeview_spell_checker;
GtkWidget *checkbutton_location_publish;
@@ -93,6 +95,7 @@ struct _EmpathyPreferencesPriv {
GSettings *gsettings;
GSettings *gsettings_chat;
+ GSettings *gsettings_call;
GSettings *gsettings_loc;
GSettings *gsettings_notify;
GSettings *gsettings_sound;
@@ -259,6 +262,12 @@ preferences_setup_widgets (EmpathyPreferences *preferences)
"active",
G_SETTINGS_BIND_DEFAULT);
+ g_settings_bind (priv->gsettings_call,
+ EMPATHY_PREFS_CALL_SOUND_VOLUME,
+ priv->adj_call_volume,
+ "value",
+ G_SETTINGS_BIND_DEFAULT);
+
g_settings_bind (priv->gsettings,
EMPATHY_PREFS_AUTOCONNECT,
priv->checkbutton_autoconnect,
@@ -1094,6 +1103,7 @@ empathy_preferences_finalize (GObject *self)
g_object_unref (priv->gsettings);
g_object_unref (priv->gsettings_chat);
+ g_object_unref (priv->gsettings_call);
g_object_unref (priv->gsettings_loc);
g_object_unref (priv->gsettings_notify);
g_object_unref (priv->gsettings_sound);
@@ -1166,6 +1176,7 @@ empathy_preferences_init (EmpathyPreferences *preferences)
"checkbutton_location_resource_network", &priv->checkbutton_location_resource_network,
"checkbutton_location_resource_cell", &priv->checkbutton_location_resource_cell,
"checkbutton_location_resource_gps", &priv->checkbutton_location_resource_gps,
+ "call_volume_adjustment", &priv->adj_call_volume,
NULL);
g_free (filename);
@@ -1176,6 +1187,7 @@ empathy_preferences_init (EmpathyPreferences *preferences)
priv->gsettings = g_settings_new (EMPATHY_PREFS_SCHEMA);
priv->gsettings_chat = g_settings_new (EMPATHY_PREFS_CHAT_SCHEMA);
+ priv->gsettings_call = g_settings_new (EMPATHY_PREFS_CALL_SCHEMA);
priv->gsettings_loc = g_settings_new (EMPATHY_PREFS_LOCATION_SCHEMA);
priv->gsettings_notify = g_settings_new (EMPATHY_PREFS_NOTIFICATIONS_SCHEMA);
priv->gsettings_sound = g_settings_new (EMPATHY_PREFS_SOUNDS_SCHEMA);