[gnome-panel] don't depend on dbus-glib because of few defines



commit 4e63e8f551896a41faf1b405aebfb464209d2125
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Fri Sep 25 23:00:19 2015 +0300

    don't depend on dbus-glib because of few defines
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622919

 gnome-panel/panel-session.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-session.c b/gnome-panel/panel-session.c
index 6422105..a79cccc 100644
--- a/gnome-panel/panel-session.c
+++ b/gnome-panel/panel-session.c
@@ -29,7 +29,6 @@
  */
 
 #include <config.h>
-#include <dbus/dbus-glib.h>
 #include <gtk/gtk.h>
 
 #include "panel-session.h"
@@ -42,6 +41,17 @@
 
 #define SESSION_MANAGER_CLIENT_PRIVATE_INTERFACE "org.gnome.SessionManager.ClientPrivate"
 
+#define DBUS_SERVICE_DBUS "org.freedesktop.DBus"
+#define DBUS_PATH_DBUS "/org/freedesktop/DBus"
+#define DBUS_INTERFACE_DBUS "org.freedesktop.DBus"
+
+#define DBUS_NAME_FLAG_ALLOW_REPLACEMENT 0x1
+#define DBUS_NAME_FLAG_REPLACE_EXISTING 0x2
+#define DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER 1
+#define DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER 4
+#define DBUS_REQUEST_NAME_REPLY_IN_QUEUE 2
+#define DBUS_REQUEST_NAME_REPLY_EXISTS 3
+
 struct _PanelSessionPrivate {
        GDBusConnection *connection;
        guint            name_lost_id;


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