Commit 3323c0a9 authored by Yanko Kaneti's avatar Yanko Kaneti

Play sounds using the default libcanberra-gtk3 context

https://bugzilla.gnome.org/show_bug.cgi?id=793485
parent e9d56e93
......@@ -437,10 +437,10 @@ play_sound (SoundID id)
path = g_build_filename (SOUND_DIRECTORY, filename, NULL);
g_free (filename);
ca_gtk_play_for_widget (drawarea,
0,
CA_PROP_MEDIA_NAME, name,
CA_PROP_MEDIA_FILENAME, path, NULL);
ca_context_play (ca_gtk_context_get(),
id,
CA_PROP_MEDIA_NAME, name,
CA_PROP_MEDIA_FILENAME, path, NULL);
g_free (path);
}
}
......
Markdown is supported
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