From 1df4c1cb2333e352044f00e18f27bb83a8e1f67a Mon Sep 17 00:00:00 2001 From: Jean-François Rameau Date: Thu, 3 Feb 2005 23:15:32 +0000 Subject: We don't want Epiphany to exit when DBUS restarts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2005-02-04 Jean-François Rameau * lib/ephy-dbus.c: (ephy_dbus_connect_to_system_bus, ephy_dbus_connect_to_session_bus): We don't want Epiphany to exit when DBUS restarts. * lib/ephy-dbus.c: (ephy_dbus_connect_to_system_bus_cb): Bug: bad test. --- lib/ephy-dbus.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/ephy-dbus.c') diff --git a/lib/ephy-dbus.c b/lib/ephy-dbus.c index 835bf1e36..349202ea8 100644 --- a/lib/ephy-dbus.c +++ b/lib/ephy-dbus.c @@ -102,7 +102,7 @@ ephy_dbus_connect_to_system_bus_cb (gpointer user_data) ephy_dbus_connect_to_system_bus (dbus); - return dbus->priv->system_bus != NULL; + return dbus->priv->system_bus == NULL; } static DBusHandlerResult @@ -177,6 +177,7 @@ ephy_dbus_connect_to_system_bus (EphyDbus *dbus) dbus_error_free (&error); return; } + dbus_connection_set_exit_on_disconnect (bus, FALSE); dbus_connection_setup_with_g_main (bus, NULL); dbus_connection_add_filter (bus, system_filter_func, dbus, NULL); @@ -226,6 +227,7 @@ ephy_dbus_connect_to_session_bus (EphyDbus *dbus) dbus_bus_acquire_service (bus, epiphany_dbus_service, 0, NULL); + dbus_connection_set_exit_on_disconnect (bus, FALSE); dbus_connection_setup_with_g_main (bus, NULL); dbus->priv->session_bus = bus; -- cgit