Commit 20396ac9 authored by Arnaud Ferraris's avatar Arnaud Ferraris Committed by Arnaud Ferraris
Browse files

application: initialize libcallaudio on startup

parent d304c9cb
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
#include <glib/gi18n.h> #include <glib/gi18n.h>
#include <handy.h> #include <handy.h>
#include <libcallaudio.h>
#include <libebook-contacts/libebook-contacts.h> #include <libebook-contacts/libebook-contacts.h>
/** /**
...@@ -301,11 +302,17 @@ static void ...@@ -301,11 +302,17 @@ static void
startup (GApplication *application) startup (GApplication *application)
{ {
GtkIconTheme *icon_theme; GtkIconTheme *icon_theme;
g_autoptr(GError) error = NULL;
G_APPLICATION_CLASS (calls_application_parent_class)->startup (application); G_APPLICATION_CLASS (calls_application_parent_class)->startup (application);
hdy_init (); hdy_init ();
if (!call_audio_init (&error))
{
g_warning ("Failed to init libcallaudio: %s", error->message);
}
g_set_prgname (APP_ID); g_set_prgname (APP_ID);
g_set_application_name (_("Calls")); g_set_application_name (_("Calls"));
......
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