diff src/protocols/qq/qq_proxy.c @ 13989:16102b9c5c4a

[gaim-migrate @ 16562] *Eliminated all Gtk-related code from the prpl. Notably, this included the group ("Qun") administrative dialog and a dialog for setting and viewing personal information. Code for the latter now uses the gaim UI, while the former is currently disabled. *Disabled a few non-functional/non-essential menu actions. These included: IP lookup, system logging, about dialog, and qq_buddy_menu. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Mon, 24 Jul 2006 13:39:12 +0000
parents 2be9dfa9569b
children ef8490f9e823
line wrap: on
line diff
--- a/src/protocols/qq/qq_proxy.c	Mon Jul 24 09:25:48 2006 +0000
+++ b/src/protocols/qq/qq_proxy.c	Mon Jul 24 13:39:12 2006 +0000
@@ -37,9 +37,8 @@
 #include "packet_parse.h"	// MAX_PACKET_SIZE
 #include "buddy_info.h"		// qq_info_query_free
 #include "buddy_opt.h"		// qq_add_buddy_request_free
-#include "group_admindlg.h"	// qq_qun_info_window_free
+#include "char_conv.h"		// qq_sending_im_msg_cb
 #include "group_free.h"		// qq_group_packets_free
-#include "infodlg.h"		// qq_contact_info_window_free
 #include "login_logout.h"	// qq_send_packet_login
 #include "qq_proxy.h"		//
 #include "recv_core.h"		// qq_pending, qq_b4_packets_free
@@ -126,6 +125,17 @@
 }				// _qq_fill_host
 
 /*****************************************************************************/
+// set up any finalizing start-up stuff
+static void _qq_start_services(GaimConnection *gc)
+{
+	/* start watching for IMs about to be sent */
+	/*
+	gaim_signal_connect(gaim_conversations_get_handle(),
+			"sending-im-msg", gc,
+			GAIM_CALLBACK(qq_sending_im_msg_cb), NULL);
+			*/
+}
+
 // the callback function after socket is built
 // we setup the qq protocol related configuration here
 static void _qq_got_login(gpointer data, gint source, GaimInputCondition cond)
@@ -171,6 +181,8 @@
 	gaim_connection_update_progress(gc, buf, 1, QQ_CONNECT_STEPS);
 	g_free(buf);
 
+	_qq_start_services(gc);
+
 //	qq_send_packet_login(gc);	// finally ready to fire
 	qq_send_packet_request_login_token(gc);
 }				// _qq_got_login
@@ -206,8 +218,6 @@
 	qq_group_free_all(qd);
 	qq_add_buddy_request_free(qd);
 	qq_info_query_free(qd);
-	qq_contact_info_window_free(qd);
-	qq_qun_info_window_free(qd);
 	qq_buddies_list_free(gc->account /* by gfhuang */, qd);
 
 }				// _qq_common_clean