summaryrefslogtreecommitdiff
path: root/src/search-channel.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-15 19:31:42 +0100
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-04-20 12:28:03 +0100
commit30eafcc8eed22bf3913b642de9e31c4844b939e0 (patch)
tree143d97e4a6b69b2950c202de21069f7b8876472c /src/search-channel.c
parenta19b8f0f19c12f8f3d7cd9dac4daf25d620049bf (diff)
downloadtelepathy-gabble-30eafcc8eed22bf3913b642de9e31c4844b939e0.tar.gz
Rename to WockyStanza, WockyNode and related changes
Diffstat (limited to 'src/search-channel.c')
-rw-r--r--src/search-channel.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/search-channel.c b/src/search-channel.c
index 75ea5ad0d..b202e3f60 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -427,8 +427,8 @@ query_reply_cb (GabbleConnection *conn,
LmMessageNode *query_node;
GError *err = NULL;
- query_node = lm_message_node_get_child_with_namespace (reply_msg->node,
- "query", NS_SEARCH);
+ query_node = lm_message_node_get_child_with_namespace (
+ wocky_stanza_get_top_node (reply_msg), "query", NS_SEARCH);
if (lm_message_get_sub_type (reply_msg) == LM_MESSAGE_SUB_TYPE_ERROR)
{
@@ -467,7 +467,8 @@ request_search_fields (GabbleSearchChannel *chan)
msg = lm_message_new_with_sub_type (chan->priv->server, LM_MESSAGE_TYPE_IQ,
LM_MESSAGE_SUB_TYPE_GET);
- lm_node = lm_message_node_add_child (msg->node, "query", NULL);
+ lm_node = lm_message_node_add_child (
+ wocky_stanza_get_top_node (msg), "query", NULL);
lm_message_node_set_attribute (lm_node, "xmlns", NS_SEARCH);
if (! _gabble_connection_send_with_reply (chan->base.conn, msg,
@@ -862,8 +863,8 @@ search_reply_cb (GabbleConnection *conn,
return LM_HANDLER_RESULT_REMOVE_MESSAGE;
}
- query_node = lm_message_node_get_child_with_namespace (reply_msg->node,
- "query", NS_SEARCH);
+ query_node = lm_message_node_get_child_with_namespace (
+ wocky_stanza_get_top_node (reply_msg), "query", NS_SEARCH);
if (lm_message_get_sub_type (reply_msg) == LM_MESSAGE_SUB_TYPE_ERROR)
{
@@ -1048,7 +1049,8 @@ do_search (GabbleSearchChannel *chan,
msg = lm_message_new_with_sub_type (chan->priv->server, LM_MESSAGE_TYPE_IQ,
LM_MESSAGE_SUB_TYPE_SET);
- query = lm_message_node_add_child (msg->node, "query", NULL);
+ query = lm_message_node_add_child (
+ wocky_stanza_get_top_node (msg), "query", NULL);
lm_message_node_set_attribute (query, "xmlns", NS_SEARCH);
if (chan->priv->xforms)