changeset 14638:459dafda90af

[gaim-migrate @ 17384] GtkCellRendererExpander draws an expander in a renderer to avoid a large, needless margin. The approach is a bit hacky, but it's a good job. - RTL fix in GtkStatusBox - Drag-and-drop image into the global buddy icon selector to set a buddy icon committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Wed, 27 Sep 2006 17:28:44 +0000
parents c811cfc944d1
children 82647d74bd66
files libgaim/protocols/jabber/jabber.c libgaim/protocols/jabber/parser.c
diffstat 2 files changed, 9 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/jabber/jabber.c	Wed Sep 27 04:44:30 2006 +0000
+++ b/libgaim/protocols/jabber/jabber.c	Wed Sep 27 17:28:44 2006 +0000
@@ -407,6 +407,8 @@
 			if (olen>0) {
 				gaim_debug(GAIM_DEBUG_INFO, "jabber", "RecvSASL (%u): %s\n", olen, out);
 				jabber_parser_process(js,out,olen);
+				if(js->reinit)
+					jabber_stream_init(js);
 			}
 			return;
 		}
@@ -414,6 +416,8 @@
 		buf[len] = '\0';
 		gaim_debug(GAIM_DEBUG_INFO, "jabber", "Recv (%d): %s\n", len, buf);
 		jabber_parser_process(js, buf, len);
+		if(js->reinit)
+			jabber_stream_init(js);
 	} else if(errno == EAGAIN) {
 		return;
 	} else {
@@ -1022,12 +1026,10 @@
 		case JABBER_STREAM_REINITIALIZING:
 			gaim_connection_update_progress(js->gc, _("Re-initializing Stream"),
 					(js->gsc ? 7 : 4), JABBER_CONNECT_STEPS);
-			if (js->gsc) {
-				/* The stream will be reinitialized later, in jabber_recv_cb_ssl() */
-				js->reinit = TRUE;
-			} else {
-				jabber_stream_init(js);
-			}
+			
+			/* The stream will be reinitialized later, in jabber_recv_cb_ssl() */
+			js->reinit = TRUE;
+			
 			break;
 		case JABBER_STREAM_CONNECTED:
 			jabber_roster_request(js);
--- a/libgaim/protocols/jabber/parser.c	Wed Sep 27 04:44:30 2006 +0000
+++ b/libgaim/protocols/jabber/parser.c	Wed Sep 27 17:28:44 2006 +0000
@@ -174,7 +174,7 @@
 		/* libxml inconsistently starts parsing on creating the
 		 * parser, so do a ParseChunk right afterwards to force it. */
 		js->context = xmlCreatePushParserCtxt(&jabber_parser_libxml, js, buf, len, NULL);
-		xmlParseChunk(js->context, NULL, 0, 0);
+		xmlParseChunk(js->context, "", 0, 0);
 	} else if (xmlParseChunk(js->context, buf, len, 0) < 0) {
 		gaim_connection_error(js->gc, _("XML Parse error"));
 	}