comparison src/blist.c @ 10431:843ed1f2bf3f

[gaim-migrate @ 11683] Feature request #1022776, from Kristof Vansant: Clicking on IM in a chat channel, new tab should get focus And of course some minor code cleanup and reuse :-D committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Mon, 27 Dec 2004 07:21:45 +0000
parents f5508fbf6764
children 94fd0bf8c4b1
comparison
equal deleted inserted replaced
10430:f5508fbf6764 10431:843ed1f2bf3f
29 #include "privacy.h" 29 #include "privacy.h"
30 #include "prpl.h" 30 #include "prpl.h"
31 #include "server.h" 31 #include "server.h"
32 #include "signals.h" 32 #include "signals.h"
33 #include "util.h" 33 #include "util.h"
34 #include "value.h"
34 #include "xmlnode.h" 35 #include "xmlnode.h"
35 36
36 #define PATHSIZE 1024 37 #define PATHSIZE 1024
37 38
38 static GaimBlistUiOps *blist_ui_ops = NULL; 39 static GaimBlistUiOps *blist_ui_ops = NULL;
129 xmlnode *node, *child; 130 xmlnode *node, *child;
130 131
131 name = (const char *)key; 132 name = (const char *)key;
132 data = (const char *)value; 133 data = (const char *)value;
133 node = (xmlnode *)user_data; 134 node = (xmlnode *)user_data;
135
136 g_return_if_fail(data != NULL);
134 137
135 child = xmlnode_new_child(node, "component"); 138 child = xmlnode_new_child(node, "component");
136 xmlnode_set_attrib(child, "name", name); 139 xmlnode_set_attrib(child, "name", name);
137 xmlnode_insert_data(child, data, -1); 140 xmlnode_insert_data(child, data, -1);
138 } 141 }