# HG changeset patch # User Richard Laager # Date 1177348751 0 # Node ID 6b4e778ee4b415ecff4b451319a966f63d9a107c # Parent a45cb71d54db2a69bc4c5229597e91a9b1daac27 Death to // comments. diff -r a45cb71d54db -r 6b4e778ee4b4 libpurple/nat-pmp.c --- a/libpurple/nat-pmp.c Mon Apr 23 17:10:08 2007 +0000 +++ b/libpurple/nat-pmp.c Mon Apr 23 17:19:11 2007 +0000 @@ -64,7 +64,7 @@ typedef struct { uint8_t version; - uint8_t opcode; // 128 + n + uint8_t opcode; /* 128 + n */ uint16_t resultcode; uint32_t epoch; uint32_t address; @@ -417,7 +417,7 @@ bzero(&req, sizeof(PurplePmpMapRequest)); req.version = 0; req.opcode = ((type == PURPLE_PMP_TYPE_UDP) ? PMP_MAP_OPCODE_UDP : PMP_MAP_OPCODE_TCP); - req.privateport = htons(privateport); // What a difference byte ordering makes...d'oh! + req.privateport = htons(privateport); /* What a difference byte ordering makes...d'oh! */ req.publicport = htons(publicport); req.lifetime = htonl(lifetime); diff -r a45cb71d54db -r 6b4e778ee4b4 libpurple/protocols/msn/nexus.c --- a/libpurple/protocols/msn/nexus.c Mon Apr 23 17:10:08 2007 +0000 +++ b/libpurple/protocols/msn/nexus.c Mon Apr 23 17:19:11 2007 +0000 @@ -159,7 +159,7 @@ g_return_if_fail(session != NULL); if (nexus->input_handler == 0) - //TODO: Use purple_ssl_input_add()? + /* TODO: Use purple_ssl_input_add()? */ nexus->input_handler = purple_input_add(nexus->gsc->fd, PURPLE_INPUT_READ, nexus_login_written_cb, nexus); @@ -402,7 +402,7 @@ char *base, *c; if (nexus->input_handler == 0) - //TODO: Use purple_ssl_input_add()? + /* TODO: Use purple_ssl_input_add()? */ nexus->input_handler = purple_input_add(nexus->gsc->fd, PURPLE_INPUT_READ, nexus_connect_written_cb, nexus); diff -r a45cb71d54db -r 6b4e778ee4b4 libpurple/protocols/qq/qq.c --- a/libpurple/protocols/qq/qq.c Mon Apr 23 17:10:08 2007 +0000 +++ b/libpurple/protocols/qq/qq.c Mon Apr 23 17:19:11 2007 +0000 @@ -399,7 +399,6 @@ gc_and_uid *g; PurpleBuddy *buddy; PurpleConnection *gc; -// const gchar *who = param_who; gfhuang const gchar *who; g_return_if_fail(PURPLE_BLIST_NODE_IS_BUDDY(node)); @@ -503,7 +502,8 @@ } */ -/* TODO: re-enable this +#if 0 +/* TODO: re-enable this */ static void _qq_menu_send_file(PurpleBlistNode * node, gpointer ignored) { PurpleBuddy *buddy; @@ -513,13 +513,13 @@ g_return_if_fail (PURPLE_BLIST_NODE_IS_BUDDY (node)); buddy = (PurpleBuddy *) node; q_bud = (qq_buddy *) buddy->proto_data; -// if (is_online (q_bud->status)) { +/* if (is_online (q_bud->status)) { */ gc = purple_account_get_connection (buddy->account); g_return_if_fail (gc != NULL && gc->proto_data != NULL); qq_send_file(gc, buddy->name, NULL); -// } +/* } */ } -*/ +#endif /* protocol related menus */ static GList *_qq_actions(PurplePlugin *plugin, gpointer context) @@ -575,23 +575,21 @@ return _qq_chat_menu(node); m = NULL; + +/* TODO : not working, temp commented out by gfhuang */ +#if 0 + + act = purple_menu_action_new(_("Block this buddy"), PURPLE_CALLBACK(_qq_menu_block_buddy), NULL, NULL); /* add NULL by gfhuang */ + m = g_list_append(m, act); +/* if (q_bud && is_online(q_bud->status)) { */ + act = purple_menu_action_new(_("Send File"), PURPLE_CALLBACK(_qq_menu_send_file), NULL, NULL); /* add NULL by gfhuang */ + m = g_list_append(m, act); +/* } */ +#endif + return m; } -/* TODO : not working, temp commented out by gfhuang - - act = purple_menu_action_new(_("Block this buddy"), PURPLE_CALLBACK(_qq_menu_block_buddy), NULL, NULL); //add NULL by gfhuang - m = g_list_append(m, act); -// if (q_bud && is_online(q_bud->status)) { - act = purple_menu_action_new(_("Send File"), PURPLE_CALLBACK(_qq_menu_send_file), NULL, NULL); //add NULL by gfhuang - m = g_list_append(m, act); -// } -*/ -/* - return m; -} -*/ - static void _qq_keep_alive(PurpleConnection *gc) { diff -r a45cb71d54db -r 6b4e778ee4b4 libpurple/protocols/qq/send_file.c --- a/libpurple/protocols/qq/send_file.c Mon Apr 23 17:10:08 2007 +0000 +++ b/libpurple/protocols/qq/send_file.c Mon Apr 23 17:19:11 2007 +0000 @@ -362,7 +362,7 @@ if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0) return 0; intrface = ifc.ifc_len / sizeof(struct ifreq); for (i = 0; i < intrface; i++) { - //buf[intrface].ifr_name + /* buf[intrface].ifr_name */ if (ioctl(fd, SIOCGIFADDR, (char *) &buf[i]) >= 0) { ret = (((struct sockaddr_in *)(&buf[i].ifr_addr))->sin_addr).s_addr; diff -r a45cb71d54db -r 6b4e778ee4b4 libpurple/win32/giowin32.c --- a/libpurple/win32/giowin32.c Mon Apr 23 17:10:08 2007 +0000 +++ b/libpurple/win32/giowin32.c Mon Apr 23 17:19:11 2007 +0000 @@ -32,7 +32,7 @@ /* Define this to get (very) verbose logging of all channels */ /* #define G_IO_WIN32_DEBUG */ -//#include "config.h" +/* #include "config.h" */ #include diff -r a45cb71d54db -r 6b4e778ee4b4 pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Mon Apr 23 17:10:08 2007 +0000 +++ b/pidgin/gtkstatusbox.c Mon Apr 23 17:19:11 2007 +0000 @@ -1273,8 +1273,10 @@ if (event->button != 1) return FALSE; gtk_combo_box_popup(GTK_COMBO_BOX(box)); - // Disabled until button_released_cb works - // gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(box->toggle_button), TRUE); + /* Disabled until button_released_cb works */ +#if 0 + gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(box->toggle_button), TRUE); +#endif return TRUE; } #endif