[calls/wip/switch-to-libcalls-ui: 5/5] application: Initialize libcall-ui
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls/wip/switch-to-libcalls-ui: 5/5] application: Initialize libcall-ui
- Date: Sat, 14 Aug 2021 19:29:11 +0000 (UTC)
commit 648dac5041cb7b5a18e4c191dc0b920265c02159
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date: Wed Jul 7 17:01:41 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 54ad8617..61f0c6fa 100644
--- a/src/calls-application.c
+++ b/src/calls-application.c
@@ -42,6 +42,7 @@
#include "calls-application.h"
#include "version.h"
+#include <call-ui.h>
#include <glib/gi18n.h>
#include <handy.h>
#include <libcallaudio.h>
@@ -385,6 +386,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"));
@@ -416,6 +418,13 @@ startup (GApplication *application)
}
+static void
+app_shutdown (GApplication *application)
+{
+ cui_uninit ();
+}
+
+
static void
notify_window_visible_cb (GtkWidget *window,
GParamSpec *pspec,
@@ -625,6 +634,7 @@ calls_application_class_init (CallsApplicationClass *klass)
application_class->handle_local_options = handle_local_options;
application_class->startup = startup;
+ 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 14adde62..d8acf50d 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -38,6 +38,7 @@ calls_deps = [ dependency('gobject-2.0', version: '>= 2.58'),
dependency('libebook-contacts-1.2'),
dependency('folks'),
dependency('libcallaudio-0.1'),
+ libcall_ui_dep
]
calls_vala_deps = [
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]