Mercurial > pidgin
diff src/protocols/silc/chat.c @ 9038:095731b5e4f6
[gaim-migrate @ 9814]
Hmm. there's still a compile warning, but at least it compiles now.
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sun, 23 May 2004 19:40:55 +0000 |
parents | 7ab20f829190 |
children | 1a446f2a1822 |
line wrap: on
line diff
--- a/src/protocols/silc/chat.c Sun May 23 19:39:38 2004 +0000 +++ b/src/protocols/silc/chat.c Sun May 23 19:40:55 2004 +0000 @@ -43,7 +43,7 @@ } static void -silcgaim_chat_getinfo(GaimBlistNode *node, gpointer data); +silcgaim_chat_getinfo(GaimConnection *gc, GHashTable *components); static void silcgaim_chat_getinfo_res(SilcClient client, @@ -72,13 +72,11 @@ silcgaim_chat_getinfo(gc, components); } + static void -silcgaim_chat_getinfo(GaimBlistNode *node, gpointer data) +silcgaim_chat_getinfo(GaimConnection *gc, GHashTable *components) { - GaimChat *chat; - GaimConnection *gc; - SilcGaim sg; - + SilcGaim sg = gc->proto_data; const char *chname; char *buf, tmp[256]; GString *s; @@ -86,13 +84,10 @@ SilcHashTableList htl; SilcChannelUser chu; - g_return_if_fail(GAIM_BLIST_NODE_IS_CHAT(node)); + if (!components) + return; - chat = (GaimChat *) node; - gc = gaim_account_get_connection(chat->account); - sg = gc->proto_data; - - chname = g_hash_table_lookup(chat->components, "channel"); + chname = g_hash_table_lookup(components, "channel"); if (!chname) return; channel = silc_client_get_channel(sg->client, sg->conn, @@ -101,7 +96,7 @@ silc_client_get_channel_resolve(sg->client, sg->conn, (char *)chname, silcgaim_chat_getinfo_res, - chat->components); + components); return; } @@ -163,6 +158,13 @@ } +static void +silcgaim_chat_getinfo_menu(GaimBlistNode *node, gpointer data) +{ + +} + + #if 0 /* XXX For now these are not implemented. We need better listview dialog from Gaim for these. */ /************************** Channel Invite List ******************************/ @@ -818,7 +820,7 @@ GList *silcgaim_chat_menu(GaimChat *chat) { - GHashTable components = chat->components; + GHashTable *components = chat->components; GaimConnection *gc = gaim_account_get_connection(chat->account); SilcGaim sg = gc->proto_data; SilcClientConnection conn = sg->conn; @@ -827,7 +829,7 @@ SilcChannelUser chu = NULL; SilcUInt32 mode = 0; - GList *m; + GList *m = NULL; GaimBlistNodeAction *act; if (components) @@ -845,7 +847,7 @@ return NULL; act = gaim_blist_node_action_new(_("Get Info"), - silcgaim_chat_getinfo, NULL); + silcgaim_chat_getinfo_menu, NULL); m = g_list_append(m, act); #if 0 /* XXX For now these are not implemented. We need better