mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-07 04:15:32 +00:00
application: Initialize libcall-ui
This commit is contained in:
parent
8cb2c09f7b
commit
bf72169f68
2 changed files with 11 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue