aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-10-13 15:55:10 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-10-13 15:55:10 +0800
commit69210acf76dceea939ce6844bab411e0c8e63343 (patch)
treec3f88f209e441f7ec40d7685445699aa2236f1e4 /libempathy
parent91ecb23e1dbfdff66bf480d856f0f6b918ca0dbb (diff)
downloadgsoc2013-empathy-69210acf76dceea939ce6844bab411e0c8e63343.tar
gsoc2013-empathy-69210acf76dceea939ce6844bab411e0c8e63343.tar.gz
gsoc2013-empathy-69210acf76dceea939ce6844bab411e0c8e63343.tar.bz2
gsoc2013-empathy-69210acf76dceea939ce6844bab411e0c8e63343.tar.lz
gsoc2013-empathy-69210acf76dceea939ce6844bab411e0c8e63343.tar.xz
gsoc2013-empathy-69210acf76dceea939ce6844bab411e0c8e63343.tar.zst
gsoc2013-empathy-69210acf76dceea939ce6844bab411e0c8e63343.zip
automatically save the chatroom mgr XML file when one chatroom is modified
svn path=/trunk/; revision=1568
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-chatroom-manager.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c
index fa12cd277..373ac8c29 100644
--- a/libempathy/empathy-chatroom-manager.c
+++ b/libempathy/empathy-chatroom-manager.c
@@ -270,9 +270,9 @@ reset_save_timeout (EmpathyChatroomManager *self)
}
static void
-chatroom_favorite_changed_cb (EmpathyChatroom *chatroom,
- GParamSpec *spec,
- EmpathyChatroomManager *self)
+chatroom_changed_cb (EmpathyChatroom *chatroom,
+ GParamSpec *spec,
+ EmpathyChatroomManager *self)
{
reset_save_timeout (self);
}
@@ -285,8 +285,17 @@ add_chatroom (EmpathyChatroomManager *self,
priv->chatrooms = g_list_prepend (priv->chatrooms, g_object_ref (chatroom));
+ /* FIXME: disconnect when removed */
g_signal_connect (chatroom, "notify::favorite",
- G_CALLBACK (chatroom_favorite_changed_cb), self);
+ G_CALLBACK (chatroom_changed_cb), self);
+ g_signal_connect (chatroom, "notify::name",
+ G_CALLBACK (chatroom_changed_cb), self);
+ g_signal_connect (chatroom, "notify::auto-connect",
+ 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);
}
gboolean