[calls] application: Initialize libcall-ui



commit bf72169f687f5184837d4ef9339e4b2c65c282b4
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Fri Oct 1 18:34:57 2021 +0200

    application: Initialize libcall-ui

 src/calls-application.c | 10 ++++++++++
 src/meson.build         |  1 +
 2 files changed, 11 insertions(+)
---
diff --git a/src/calls-application.c b/src/calls-application.c
index ce51dd8a..5d57c005 100644
--- a/src/calls-application.c
+++ b/src/calls-application.c
@@ -42,6 +42,7 @@
 #include "calls-log.h"
 #include "version.h"
 
+#include <call-ui.h>
 #include <glib/gi18n.h>
 #include <handy.h>
 #include <libcallaudio.h>
@@ -367,6 +368,7 @@ startup (GApplication *application)
     {
       g_warning ("Failed to init libcallaudio: %s", error->message);
     }
+  cui_init (TRUE);
 
   g_set_prgname (APP_ID);
   g_set_application_name (_("Calls"));
@@ -440,6 +442,13 @@ calls_application_command_line (GApplication            *application,
   return 0;
 }
 
+static void
+app_shutdown (GApplication *application)
+{
+  cui_uninit ();
+}
+
+
 static void
 notify_window_visible_cb (GtkWidget       *window,
                           GParamSpec      *pspec,
@@ -637,6 +646,7 @@ calls_application_class_init (CallsApplicationClass *klass)
   application_class->handle_local_options = calls_application_handle_local_options;
   application_class->startup = startup;
   application_class->command_line = calls_application_command_line;
+  application_class->shutdown = app_shutdown;
   application_class->activate = activate;
   application_class->open = app_open;
   application_class->dbus_register  = calls_application_dbus_register;
diff --git a/src/meson.build b/src/meson.build
index c6ae792f..66fa4e5b 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -39,6 +39,7 @@ calls_deps = [ dependency('gobject-2.0', version: '>= 2.58'),
                dependency('folks'),
                dependency('libcallaudio-0.1'),
                dependency('libsecret-1'),
+               libcall_ui_dep
              ]
 
 calls_vala_deps = [


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]