aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-09 22:21:38 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-09 22:21:38 +0800
commitab93e6903be924419add3dc703bf5da9bfca63b3 (patch)
treeff96a11b3a255ce94b1a7a3845e093bece022ad9 /libempathy
parent0b5aebd734f0a4759d2c8c5438830c372638fb70 (diff)
parent72785d7ab576618ccc2847b8d51d1f4c9ff19241 (diff)
downloadgsoc2013-empathy-ab93e6903be924419add3dc703bf5da9bfca63b3.tar
gsoc2013-empathy-ab93e6903be924419add3dc703bf5da9bfca63b3.tar.gz
gsoc2013-empathy-ab93e6903be924419add3dc703bf5da9bfca63b3.tar.bz2
gsoc2013-empathy-ab93e6903be924419add3dc703bf5da9bfca63b3.tar.lz
gsoc2013-empathy-ab93e6903be924419add3dc703bf5da9bfca63b3.tar.xz
gsoc2013-empathy-ab93e6903be924419add3dc703bf5da9bfca63b3.tar.zst
gsoc2013-empathy-ab93e6903be924419add3dc703bf5da9bfca63b3.zip
Merge remote-tracking branch 'glassrose/save-chatrooms.xml-only-when-needed'
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-chatroom-manager.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index 9ad75ee03..7872bbb19 100644
--- a/libempathy/empathy-chatroom-manager.c
+++ b/libempathy/empathy-chatroom-manager.c
@@ -192,7 +192,16 @@ add_chatroom (EmpathyChatroomManager *self,
priv->chatrooms = g_list_prepend (priv->chatrooms, g_object_ref (chatroom));
- g_signal_connect (chatroom, "notify",
+ /* Watch only those properties which are exported in the save file */
+ g_signal_connect (chatroom, "notify::name",
+ G_CALLBACK (chatroom_changed_cb), self);
+ g_signal_connect (chatroom, "notify::room",
+ G_CALLBACK (chatroom_changed_cb), self);
+ g_signal_connect (chatroom, "notify::account",
+ G_CALLBACK (chatroom_changed_cb), self);
+ g_signal_connect (chatroom, "notify::auto-connect",
+ G_CALLBACK (chatroom_changed_cb), self);
+ g_signal_connect (chatroom, "notify::always_urgent",
G_CALLBACK (chatroom_changed_cb), self);
}