Mercurial > pidgin
comparison libpurple/blist.c @ 18106:40d51793f2d7
propagate from branch 'im.pidgin.pidgin.2.1.0' (head d8c7c08339ae468cb4298f6850eb7d3b760ad7b5)
to branch 'im.pidgin.pidgin' (head 7f1ffdbda951c2effec7bfbfa8148e9ce98e7669)
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Fri, 15 Jun 2007 19:34:24 +0000 |
parents | 9fafe265567f 4ca97b26a8fb |
children | 97b735ca9d7a 59aec2d6ec43 |
comparison
equal
deleted
inserted
replaced
17938:9564b55f3c18 | 18106:40d51793f2d7 |
---|---|
302 static xmlnode * | 302 static xmlnode * |
303 blist_to_xmlnode() | 303 blist_to_xmlnode() |
304 { | 304 { |
305 xmlnode *node, *child, *grandchild; | 305 xmlnode *node, *child, *grandchild; |
306 PurpleBlistNode *gnode; | 306 PurpleBlistNode *gnode; |
307 GList *cur; | 307 const GList *cur; |
308 | 308 |
309 node = xmlnode_new("purple"); | 309 node = xmlnode_new("purple"); |
310 xmlnode_set_attrib(node, "version", "1.0"); | 310 xmlnode_set_attrib(node, "version", "1.0"); |
311 | 311 |
312 /* Write groups */ | 312 /* Write groups */ |
363 | 363 |
364 void | 364 void |
365 purple_blist_schedule_save() | 365 purple_blist_schedule_save() |
366 { | 366 { |
367 if (save_timer == 0) | 367 if (save_timer == 0) |
368 save_timer = purple_timeout_add(5000, save_cb, NULL); | 368 save_timer = purple_timeout_add_seconds(5, save_cb, NULL); |
369 } | 369 } |
370 | 370 |
371 | 371 |
372 /********************************************************************* | 372 /********************************************************************* |
373 * Reading from disk * | 373 * Reading from disk * |
1893 | 1893 |
1894 void purple_blist_remove_group(PurpleGroup *group) | 1894 void purple_blist_remove_group(PurpleGroup *group) |
1895 { | 1895 { |
1896 PurpleBlistUiOps *ops = purple_blist_get_ui_ops(); | 1896 PurpleBlistUiOps *ops = purple_blist_get_ui_ops(); |
1897 PurpleBlistNode *node; | 1897 PurpleBlistNode *node; |
1898 GList *l; | 1898 const GList *l; |
1899 | 1899 |
1900 g_return_if_fail(group != NULL); | 1900 g_return_if_fail(group != NULL); |
1901 | 1901 |
1902 node = (PurpleBlistNode *)group; | 1902 node = (PurpleBlistNode *)group; |
1903 | 1903 |
2498 g_return_val_if_fail(node != NULL, 0); | 2498 g_return_val_if_fail(node != NULL, 0); |
2499 | 2499 |
2500 return node->flags; | 2500 return node->flags; |
2501 } | 2501 } |
2502 | 2502 |
2503 PurpleBlistNodeType | |
2504 purple_blist_node_get_type(PurpleBlistNode *node) | |
2505 { | |
2506 g_return_val_if_fail(node != NULL, PURPLE_BLIST_OTHER_NODE); | |
2507 return node->type; | |
2508 } | |
2509 | |
2503 void | 2510 void |
2504 purple_blist_node_set_bool(PurpleBlistNode* node, const char *key, gboolean data) | 2511 purple_blist_node_set_bool(PurpleBlistNode* node, const char *key, gboolean data) |
2505 { | 2512 { |
2506 PurpleValue *value; | 2513 PurpleValue *value; |
2507 | 2514 |