From bc537a1bb4f138dd71cd7dc411c10485f2cf96fa Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Wed, 27 Jul 2011 12:20:54 +0100 Subject: Preferences: add a Calls tab It only contains the micro volume for now. --- src/empathy-preferences.c | 12 ++++ src/empathy-preferences.ui | 167 +++++++++++++++++++++++++++++++++++++++++++-- 2 files changed, 173 insertions(+), 6 deletions(-) (limited to 'src') 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); diff --git a/src/empathy-preferences.ui b/src/empathy-preferences.ui index 2549d51ad..eeb05fb11 100644 --- a/src/empathy-preferences.ui +++ b/src/empathy-preferences.ui @@ -1,6 +1,11 @@ + + 150 + 1 + 10 + True True @@ -456,6 +461,150 @@ False + + + True + False + 12 + vertical + 18 + + + True + False + 0 + none + + + True + False + 12 + + + True + False + vertical + 6 + + + True + False + 6 + + + True + False + 0 + Input volume + + + False + True + 0 + + + + + True + True + call_volume_adjustment + 0 + 0 + bottom + + + True + True + 1 + + + + + False + True + 0 + + + + + True + False + 6 + + + True + False + 0 + Input level + + + False + True + 0 + + + + + True + False + + + True + True + 1 + + + + + False + True + 1 + + + + + + + + + True + False + 0 + Audio + + + + + + + + False + True + 0 + + + + + + + + + + + 3 + + + + + True + False + Calls + + + 3 + False + + True @@ -667,7 +816,7 @@ - 3 + 4 @@ -677,7 +826,7 @@ Location - 3 + 4 False @@ -796,7 +945,7 @@ - 4 + 5 @@ -806,7 +955,7 @@ Spell Checking - 4 + 5 False @@ -946,7 +1095,7 @@ - 5 + 6 @@ -956,9 +1105,15 @@ Themes - 5 + 6 False + + + + + + -- cgit v1.2.3