aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-preferences.c13
-rw-r--r--src/empathy-preferences.ui2
2 files changed, 14 insertions, 1 deletions
diff --git a/src/empathy-preferences.c b/src/empathy-preferences.c
index 121a090c4..0e90d00fd 100644
--- a/src/empathy-preferences.c
+++ b/src/empathy-preferences.c
@@ -75,6 +75,7 @@ struct _EmpathyPreferencesPriv {
GtkWidget *checkbutton_notifications_contact_signin;
GtkWidget *checkbutton_notifications_contact_signout;
+ GtkWidget *scale_call_volume;
GtkWidget *adj_call_volume;
GtkWidget *treeview_spell_checker;
@@ -1087,6 +1088,13 @@ preferences_themes_setup (EmpathyPreferences *preferences)
preferences);
}
+static gchar*
+preferences_call_format_volume_cb (GtkScale *scale,
+ gdouble value)
+{
+ return g_strdup_printf ("%g%%", value);
+}
+
static void
empathy_preferences_response (GtkDialog *widget,
gint response)
@@ -1176,6 +1184,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_scale", &priv->scale_call_volume,
"call_volume_adjustment", &priv->adj_call_volume,
NULL);
g_free (filename);
@@ -1201,6 +1210,10 @@ empathy_preferences_init (EmpathyPreferences *preferences)
preferences, 0);
preferences_preview_theme_changed_cb (priv->theme_manager, preferences);
+ g_signal_connect (priv->scale_call_volume, "format-value",
+ G_CALLBACK (preferences_call_format_volume_cb),
+ preferences);
+
preferences_themes_setup (preferences);
preferences_setup_widgets (preferences);
diff --git a/src/empathy-preferences.ui b/src/empathy-preferences.ui
index eeb05fb11..f8dc0a0d3 100644
--- a/src/empathy-preferences.ui
+++ b/src/empathy-preferences.ui
@@ -504,7 +504,7 @@
</packing>
</child>
<child>
- <object class="GtkScale" id="scale2">
+ <object class="GtkScale" id="call_volume_scale">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="adjustment">call_volume_adjustment</property>