aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-05-28 21:46:28 +0800
committerChristian Persch <chpe@src.gnome.org>2005-05-28 21:46:28 +0800
commita29f71709ee09ddce6da8ddd80c45b5311dd38b2 (patch)
tree5e137d0c03db4e92744f6f171b3f0f7261f47336 /lib
parent72e83ac58129afa3706116830711d2a072f030c9 (diff)
downloadgsoc2013-epiphany-a29f71709ee09ddce6da8ddd80c45b5311dd38b2.tar.gz
gsoc2013-epiphany-a29f71709ee09ddce6da8ddd80c45b5311dd38b2.tar.zst
gsoc2013-epiphany-a29f71709ee09ddce6da8ddd80c45b5311dd38b2.zip
Check for new DBUS API.
2005-05-28 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Check for new DBUS API. * lib/ephy-dbus.c: (session_filter_func), (system_filter_func), (ephy_dbus_connect_to_system_bus), (ephy_dbus_connect_to_session_bus): Adapt to new DBUS API. Patch by Thom May, fixes bug #301153.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-dbus.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/ephy-dbus.c b/lib/ephy-dbus.c
index 349202ea8..b1f15a7ec 100644
--- a/lib/ephy-dbus.c
+++ b/lib/ephy-dbus.c
@@ -113,7 +113,11 @@ session_filter_func (DBusConnection *connection,
EphyDbus *dbus = EPHY_DBUS (user_data);
if (dbus_message_is_signal (message,
+#ifdef HAVE_NEW_DBUS
+ DBUS_INTERFACE_LOCAL,
+#else
DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL,
+#endif
"Disconnected"))
{
LOG ("EphyDbus disconnected from session bus");
@@ -143,7 +147,11 @@ system_filter_func (DBusConnection *connection,
LOG ("EphyDbus filtering message from system bus");
if (dbus_message_is_signal (message,
+#ifdef HAVE_NEW_DBUS
+ DBUS_INTERFACE_LOCAL,
+#else
DBUS_INTERFACE_ORG_FREEDESKTOP_LOCAL,
+#endif
"Disconnected"))
{
LOG ("EphyDbus disconnected from system bus");
@@ -180,7 +188,12 @@ ephy_dbus_connect_to_system_bus (EphyDbus *dbus)
dbus_connection_set_exit_on_disconnect (bus, FALSE);
dbus_connection_setup_with_g_main (bus, NULL);
+#ifdef HAVE_NEW_DBUS
+ dbus_bus_request_name (bus, epiphany_dbus_service, 0, &error);
+#else
dbus_connection_add_filter (bus, system_filter_func, dbus, NULL);
+#endif
+
dbus_bus_add_match (bus,
"type='signal',interface='org.freedesktop.NetworkManager'",
&error);
@@ -214,7 +227,12 @@ ephy_dbus_connect_to_session_bus (EphyDbus *dbus)
dbus_connection_add_filter (bus, session_filter_func, dbus, NULL);
+#ifdef HAVE_NEW_DBUS
+ dbus_bus_request_name (bus, epiphany_dbus_service, 0, NULL);
+#else
dbus_bus_acquire_service (bus, epiphany_dbus_service, 0, &error);
+#endif
+
if (dbus_error_is_set (&error)) {
g_warning ("EphyDbus failed to acquire epiphany service");
dbus_error_free (&error);
* Add manu-gothic, an old german blackletter handwriting (suetterlin) font.Martin Wilke2006-06-295-0/+55 * - Update to 2.7Michael Johnson2006-06-202-4/+4 * - Update PORTVERSION to correct 0.38.1Aaron Dalton2006-06-191-2/+2 * Use the correct mtree when you change the prefix, for example:Jeremy Messenger2006-06-122-0/+12 * Update MASTER_SITESMartin Wilke2006-06-081-1/+2 * Remove MAN3PREFIX and assign over to perl.Erwin Lansing2006-06-061-2/+1 * Remove expired leaf ports:Vasil Dimov2006-06-057-1301/+0 * Correct it, don't use USE_X_PREFIX that cause the circle dependency loop.Jeremy Messenger2006-06-011-1/+1 * - Add header in these *-reference ports.Jeremy Messenger2006-06-012-5/+11 * Add BUILD_DEPENDS to make pinityhat happy.Xin LI2006-05-311-0/+3 * Update to 0.7.0 (the version goes backward since the old versionXin LI2006-05-294-26/+40 * devel/pkgconfig -> devel/pkg-configJeremy Messenger2006-05-281-1/+1 * Replace mastersite diedAndrey A. Chernov2006-05-212-5/+5 * Chase DISTFILES and make fetchable again.Thierry Thomas2006-05-212-6/+6 * - Update to 2.6Michael Johnson2006-05-192-4/+4 * - Add pkg-descrMichael Johnson2006-05-181-0/+3 * portlint:Jeremy Messenger2006-05-161-4/+4 * Don't run fc-cache, we're using the fonts of the X server and the nativeAlexander Leidinger2006-05-136-36/+12 * Remove USE_REINPLACE from categories starting with XEdwin Groothuis2006-05-135-5/+0 * Move the fontconfig programming reference to the fontconfig-reference port.Jean-Yves Lefort2006-05-124-277/+162 * - Remove CVS tags and blank lines from distinfo file in unmaintained portsSergey Matveychuk2006-05-081-1/+0 * Mark as deprecated (+expiry), it is not needed.Alexander Leidinger2006-05-021-0/+3 * - Make sure that /usr/X11R6/lib/X11/fonts is only listed once in fonts.conf.Jean-Yves Lefort2006-05-021-4/+5 * - convert to use bsd.linux-rpm.mk (get rid of include of linux-gtk/Makefile) [1]Alexander Leidinger2006-05-0217-124/+1324 * - update to 1.19Yen-Ming Lee2006-04-282-5/+5 * Assume maintainership from ports@.Jimmy Olgeni2006-04-201-1/+1 * - Update to 2.5Michael Johnson2006-04-17