diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:53:03 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2008-10-13 15:53:03 +0800 |
commit | 0e0658058e4f91befd2747d65e9d6dea492d57ce (patch) | |
tree | 881a83ef9c8b8da5097b5f98c9acfb84c2b46b6b | |
parent | e2908ad8676eea131c22e81780468d47f8fd6ad0 (diff) | |
download | gsoc2013-empathy-0e0658058e4f91befd2747d65e9d6dea492d57ce.tar gsoc2013-empathy-0e0658058e4f91befd2747d65e9d6dea492d57ce.tar.gz gsoc2013-empathy-0e0658058e4f91befd2747d65e9d6dea492d57ce.tar.bz2 gsoc2013-empathy-0e0658058e4f91befd2747d65e9d6dea492d57ce.tar.lz gsoc2013-empathy-0e0658058e4f91befd2747d65e9d6dea492d57ce.tar.xz gsoc2013-empathy-0e0658058e4f91befd2747d65e9d6dea492d57ce.tar.zst gsoc2013-empathy-0e0658058e4f91befd2747d65e9d6dea492d57ce.zip |
Save chatrooms to XML only if they are marked as favorite
svn path=/trunk/; revision=1534
-rw-r--r-- | libempathy/empathy-chatroom-manager.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libempathy/empathy-chatroom-manager.c b/libempathy/empathy-chatroom-manager.c index b9eef3c09..fb2571fcc 100644 --- a/libempathy/empathy-chatroom-manager.c +++ b/libempathy/empathy-chatroom-manager.c @@ -433,6 +433,7 @@ chatroom_manager_parse_chatroom (EmpathyChatroomManager *manager, } chatroom = empathy_chatroom_new_full (account, room, name, auto_connect); + g_object_set (chatroom, "favorite", TRUE, NULL); priv->chatrooms = g_list_prepend (priv->chatrooms, chatroom); g_signal_emit (manager, signals[CHATROOM_ADDED], 0, chatroom); @@ -470,8 +471,14 @@ chatroom_manager_file_save (EmpathyChatroomManager *manager) EmpathyChatroom *chatroom; xmlNodePtr node; const gchar *account_id; + gboolean favorite; chatroom = l->data; + + g_object_get (chatroom, "favorite", &favorite, NULL); + if (!favorite) + continue; + account_id = mc_account_get_unique_name (empathy_chatroom_get_account (chatroom)); node = xmlNewChild (root, NULL, "chatroom", NULL); |