From b6829af16259dfed8ee4ab24df75c507d319ce0c Mon Sep 17 00:00:00 2001 From: Crispin Flowerday Date: Tue, 3 Jan 2006 20:05:20 +0000 Subject: Tell dbus not to exit the application if the bus disconnects. 2006-01-03 Crispin Flowerday * src/ephy-dbus.c (ephy_dbus_connect_to_session_bus): Tell dbus not to exit the application if the bus disconnects. --- ChangeLog | 6 ++++++ src/ephy-dbus.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 84ad8a253..f795328c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-01-03 Crispin Flowerday + + * src/ephy-dbus.c (ephy_dbus_connect_to_session_bus): + + Tell dbus not to exit the application if the bus disconnects. + 2006-01-03 Christian Persch * src/Makefile.am: diff --git a/src/ephy-dbus.c b/src/ephy-dbus.c index 1cbed58da..8f7106383 100644 --- a/src/ephy-dbus.c +++ b/src/ephy-dbus.c @@ -173,6 +173,10 @@ ephy_dbus_connect_to_system_bus (EphyDbus *ephy_dbus) return; } + dbus_connection_set_exit_on_disconnect + (dbus_g_connection_get_connection (ephy_dbus->priv->system_bus), + FALSE); + dbus_connection_add_filter (dbus_g_connection_get_connection (ephy_dbus->priv->system_bus), system_filter_func, ephy_dbus, NULL); @@ -218,6 +222,10 @@ ephy_dbus_connect_to_session_bus (EphyDbus *ephy_dbus) return; } + dbus_connection_set_exit_on_disconnect + (dbus_g_connection_get_connection (ephy_dbus->priv->system_bus), + FALSE); + dbus_connection_add_filter (dbus_g_connection_get_connection (ephy_dbus->priv->session_bus), session_filter_func, ephy_dbus, NULL); -- cgit v1.2.3