]> git.0d.be Git - empathy.git/commitdiff
Merge remote-tracking branch 'glassrose/save-chatrooms.xml-only-when-needed'
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 May 2011 14:21:38 +0000 (16:21 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 May 2011 14:21:38 +0000 (16:21 +0200)
libempathy/empathy-chatroom-manager.c

index 9ad75ee03269b1e07ca3494f658aad193c8fd92d..7872bbb194fc42975468ceb7296115b5ac602876 100644 (file)
@@ -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);
 }