GtkWidget *checkbutton_notifications_contact_signin;
GtkWidget *checkbutton_notifications_contact_signout;
+ GtkWidget *scale_call_volume;
GtkWidget *adj_call_volume;
GtkWidget *treeview_spell_checker;
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)
"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);
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);
</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>