diff options
author | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-10-13 15:55:10 +0800 |
---|---|---|
committer | xclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4> | 2008-10-13 15:55:10 +0800 |
commit | f7ac2c9731a5a7d1f1ce6857ff10d2578cbd012e (patch) | |
tree | c3f88f209e441f7ec40d7685445699aa2236f1e4 /libempathy | |
parent | 35e00b61268483e56105367b20e452ab6455eef5 (diff) | |
download | gsoc2013-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.c | 17 |
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 |