aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-10-13 15:55:10 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-10-13 15:55:10 +0800
commitf7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e (patch)
treec3f88f209e441f7ec40d7685445699aa2236f1e4 /libempathy
parent35e00b61268483e56105367b20e452ab6455eef5 (diff)
downloadgsoc2013-empathy-f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e.tar
gsoc2013-empathy-f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e.tar.gz
gsoc2013-empathy-f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e.tar.bz2
gsoc2013-empathy-f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e.tar.lz
gsoc2013-empathy-f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e.tar.xz
gsoc2013-empathy-f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e.tar.zst
gsoc2013-empathy-f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e.zip
automatically save the chatroom mgr XML file when one chatroom is modified
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@1568 4ee84921-47dd-4033-b63a-18d7a039a3e4
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