diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2006-01-04 04:05:20 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2006-01-04 04:05:20 +0800 |
commit | b6829af16259dfed8ee4ab24df75c507d319ce0c (patch) | |
tree | f722c8b9c8508ce1c48e9e40aad282bd46c04943 /src/ephy-dbus.c | |
parent | bc5a4679c51ed57ef663d94eb473fdc6f10c2ebb (diff) | |
download | gsoc2013-epiphany-b6829af16259dfed8ee4ab24df75c507d319ce0c.tar gsoc2013-epiphany-b6829af16259dfed8ee4ab24df75c507d319ce0c.tar.gz gsoc2013-epiphany-b6829af16259dfed8ee4ab24df75c507d319ce0c.tar.bz2 gsoc2013-epiphany-b6829af16259dfed8ee4ab24df75c507d319ce0c.tar.lz gsoc2013-epiphany-b6829af16259dfed8ee4ab24df75c507d319ce0c.tar.xz gsoc2013-epiphany-b6829af16259dfed8ee4ab24df75c507d319ce0c.tar.zst gsoc2013-epiphany-b6829af16259dfed8ee4ab24df75c507d319ce0c.zip |
Tell dbus not to exit the application if the bus disconnects.
2006-01-03 Crispin Flowerday <gnome@flowerday.cx>
* src/ephy-dbus.c (ephy_dbus_connect_to_session_bus):
Tell dbus not to exit the application if the bus disconnects.
Diffstat (limited to 'src/ephy-dbus.c')
-rw-r--r-- | src/ephy-dbus.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); |