[evince/918-missing-application-id] shell: Set application-id
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/918-missing-application-id] shell: Set application-id
- Date: Fri, 22 Jun 2018 15:01:10 +0000 (UTC)
commit 8c1a60d28c66f7272f027555cea117dc9f701345
Author: Marek Kasik <mkasik redhat com>
Date: Fri Jun 22 17:00:20 2018 +0200
shell: Set application-id
Set "application-id" property for evince's GApplication
to "org.gnome.evince.Application".
An assertion warning is shown in shell if it is not set.
Closes: https://gitlab.gnome.org/GNOME/evince/issues/918
shell/ev-application.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/shell/ev-application.c b/shell/ev-application.c
index fcbcaa75..dc55ef76 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -65,6 +65,7 @@ struct _EvApplicationClass {
G_DEFINE_TYPE (EvApplication, ev_application, GTK_TYPE_APPLICATION)
#ifdef ENABLE_DBUS
+#define APPLICATION_DBUS_NAME "org.gnome.evince.Application"
#define APPLICATION_DBUS_OBJECT_PATH "/org/gnome/evince/Evince"
#define APPLICATION_DBUS_INTERFACE "org.gnome.evince.Application"
@@ -102,7 +103,7 @@ ev_application_new (void)
const GApplicationFlags flags = G_APPLICATION_NON_UNIQUE;
return g_object_new (EV_TYPE_APPLICATION,
- "application-id", NULL,
+ "application-id", APPLICATION_DBUS_NAME,
"flags", flags,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]