[evince/wip/gpoo/fix-dbus-and-flatpak: 2/4] Revert "shell: Make app D-Bus name match application name"



commit f32a352aafa361c0170e1bf9c40867c0787cdf7c
Author: Germán Poo-Caamaño <gpoo gnome org>
Date:   Sat Oct 6 23:56:02 2018 -0300

    Revert "shell: Make app D-Bus name match application name"
    
    This reverts commit 98370393d264c79e99ac2810a95f5825ef8d6398.

 shell/Makefile.am      | 2 +-
 shell/ev-application.c | 2 +-
 shell/ev-daemon.c      | 2 +-
 shell/ev-gdbus.xml     | 4 ++--
 shell/ev-window.c      | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/shell/Makefile.am b/shell/Makefile.am
index a3302fc5..92c52584 100644
--- a/shell/Makefile.am
+++ b/shell/Makefile.am
@@ -191,7 +191,7 @@ ev-resources.c: $(GRESOURCE_XML_FILE) Makefile $(shell $(GLIB_COMPILE_RESOURCES)
 
 ev-gdbus-generated.c ev-gdbus-generated.h: ev-gdbus.xml Makefile
        $(AM_V_GEN) $(GDBUS_CODEGEN) \
-                       --interface-prefix=org.gnome.Evince \
+                       --interface-prefix=org.gnome.evince \
                        --c-namespace=Ev \
                        --c-generate-object-manager \
                        --generate-c-code ev-gdbus-generated \
diff --git a/shell/ev-application.c b/shell/ev-application.c
index f58b349b..9baa8db9 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -67,7 +67,7 @@ G_DEFINE_TYPE (EvApplication, ev_application, GTK_TYPE_APPLICATION)
 #ifdef ENABLE_DBUS
 #define APPLICATION_NAME             "org.gnome.Evince"
 #define APPLICATION_DBUS_OBJECT_PATH "/org/gnome/evince/Evince"
-#define APPLICATION_DBUS_INTERFACE   "org.gnome.Evince.Application"
+#define APPLICATION_DBUS_INTERFACE   "org.gnome.evince.Application"
 
 #define EVINCE_DAEMON_SERVICE        "org.gnome.Evince.Daemon"
 #define EVINCE_DAEMON_OBJECT_PATH    "/org/gnome/evince/Daemon"
diff --git a/shell/ev-daemon.c b/shell/ev-daemon.c
index a8e584fe..145b5813 100644
--- a/shell/ev-daemon.c
+++ b/shell/ev-daemon.c
@@ -37,7 +37,7 @@
 #define EV_DBUS_DAEMON_INTERFACE_NAME   "org.gnome.Evince.Daemon"
 #define EV_DBUS_DAEMON_OBJECT_PATH      "/org/gnome/evince/Daemon"
 
-#define EV_DBUS_WINDOW_INTERFACE_NAME   "org.gnome.Evince.Window"
+#define EV_DBUS_WINDOW_INTERFACE_NAME   "org.gnome.evince.Window"
 
 #define DAEMON_TIMEOUT (30) /* seconds */
 
diff --git a/shell/ev-gdbus.xml b/shell/ev-gdbus.xml
index dcded61c..b6b50d12 100644
--- a/shell/ev-gdbus.xml
+++ b/shell/ev-gdbus.xml
@@ -2,7 +2,7 @@
 <!DOCTYPE node PUBLIC "-//freedesktop//DTD D-BUS Introspection 0.1//EN"
                       "http://www.freedesktop.org/software/dbus/introspection.dtd";>
 <node>
-  <interface name='org.gnome.Evince.Application'>
+  <interface name='org.gnome.evince.Application'>
     <annotation name="org.gtk.GDBus.C.Name" value="EvinceApplication" />
     <method name='Reload'>
       <arg type='a{sv}' name='args' direction='in'/>
@@ -12,7 +12,7 @@
       <arg type='ao' name='window_list' direction='out'/>
     </method>
   </interface>
-  <interface name='org.gnome.Evince.Window'>
+  <interface name='org.gnome.evince.Window'>
     <annotation name="org.gtk.GDBus.C.Name" value="EvinceWindow" />
     <method name='SyncView'>
       <arg type='s' name='source_file' direction='in'/>
diff --git a/shell/ev-window.c b/shell/ev-window.c
index 1e29a6ce..8faa4ed3 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -256,7 +256,7 @@ struct _EvWindowPrivate {
 
 #ifdef ENABLE_DBUS
 #define EV_WINDOW_DBUS_OBJECT_PATH "/org/gnome/evince/Window/%d"
-#define EV_WINDOW_DBUS_INTERFACE   "org.gnome.Evince.Window"
+#define EV_WINDOW_DBUS_INTERFACE   "org.gnome.evince.Window"
 #endif
 
 #define GS_SCHEMA_NAME           "org.gnome.Evince"


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