empathy r1534 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r1534 - trunk/libempathy
- Date: Mon, 13 Oct 2008 07:53:03 +0000 (UTC)
Author: xclaesse
Date: Mon Oct 13 07:53:03 2008
New Revision: 1534
URL: http://svn.gnome.org/viewvc/empathy?rev=1534&view=rev
Log:
Save chatrooms to XML only if they are marked as favorite
Modified:
trunk/libempathy/empathy-chatroom-manager.c
Modified: trunk/libempathy/empathy-chatroom-manager.c
==============================================================================
--- trunk/libempathy/empathy-chatroom-manager.c (original)
+++ trunk/libempathy/empathy-chatroom-manager.c Mon Oct 13 07:53:03 2008
@@ -433,6 +433,7 @@
}
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 @@
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]