Commit 8c0a2279 authored by David Henningsson's avatar David Henningsson Committed by Bastien Nocera
Browse files

sound: Update the sound theme for speaker testing
parent f5fca215
......@@ -435,6 +435,24 @@ update_channel_map (GvcSpeakerTest *speaker_test)
static void
gvc_speaker_test_set_theme (ca_context *ca)
GtkSettings *settings;
char *theme_name;
settings = gtk_settings_get_for_screen (gdk_screen_get_default ());
g_object_get (G_OBJECT (settings),
"gtk-sound-theme-name", &theme_name,
if (theme_name)
ca_context_change_props (ca, CA_PROP_CANBERRA_XDG_THEME_NAME, theme_name, NULL);
g_free (theme_name);
static void
gvc_speaker_test_init (GvcSpeakerTest *speaker_test)
......@@ -447,6 +465,7 @@ gvc_speaker_test_init (GvcSpeakerTest *speaker_test)
ca_context_change_props (speaker_test->priv->canberra,
CA_PROP_APPLICATION_ID, "org.gnome.VolumeControl",
gvc_speaker_test_set_theme (speaker_test->priv->canberra);
gtk_widget_set_direction (GTK_WIDGET (speaker_test), GTK_TEXT_DIR_LTR);
gtk_table_resize (GTK_TABLE (speaker_test), 3, 5);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment