Mercurial > pidgin.yaz
comparison src/protocols/toc/toc.c @ 4333:cc2f780c0505
[gaim-migrate @ 4597]
I needed to make gc->login_time set before do_proto_menu was called,
so I moved that line into account_online instead of
serv_finish_login. serv_finish_login is called directly after
account_online, and gc->login_time isn't used for anything anyway,
so it shouldn't matter.
I use gc->login_time to determine if a gc's protocol actions menu
is ready to be drawn or not (should not be draw for accounts that
are in the process of signing online).
I made the "Show Buddies Awaiting Authorization" thing show something
reasonable for when you aren't waiting for authorization from anyone.
I swapped the ok and cancel buttons for the search for buddy by
information and clear log file so they follow the HIG.
I gave the right side of the log viewer a shadowed border.
I Robot.
I applied a patch from Ryan McCabe that doesn't really do
anything for gaim (yet, anyway), but it allows clients
using libfaim to call cleansnacs cleanly, which stops a
potential build up of SNACs in memory when you don't send
an IM for a long period of time.
I applied another patch from Mr. McCabe that fixes a
potential crash in ssi.c when your buddy list is a few
lions short of a pride, if you know what I mean.
I re-prettified an authorization dialog or two. The
bold stuff and the non-bold stuff got backwardcised
somehow.
I added support for those messages from the ICQ server.
Like the one that tells you not to give your password to
anyone when you first signon.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 18 Jan 2003 01:58:00 +0000 |
parents | a789969fc198 |
children | 0c68d402f59f |
comparison
equal
deleted
inserted
replaced
4332:c8f374cadbd9 | 4333:cc2f780c0505 |
---|---|
1377 static GList *toc_away_states(struct gaim_connection *gc) | 1377 static GList *toc_away_states(struct gaim_connection *gc) |
1378 { | 1378 { |
1379 return g_list_append(NULL, GAIM_AWAY_CUSTOM); | 1379 return g_list_append(NULL, GAIM_AWAY_CUSTOM); |
1380 } | 1380 } |
1381 | 1381 |
1382 static void toc_do_action(struct gaim_connection *gc, char *act) | 1382 static GList *toc_actions(struct gaim_connection *gc) |
1383 { | |
1384 if (!strcmp(act, "Set User Info")) { | |
1385 show_set_info(gc); | |
1386 } else if (!strcmp(act, "Set Dir Info")) { | |
1387 show_set_dir(gc); | |
1388 } else if (!strcmp(act, "Change Password")) { | |
1389 show_change_passwd(gc); | |
1390 } | |
1391 } | |
1392 | |
1393 static GList *toc_actions() | |
1394 { | 1383 { |
1395 GList *m = NULL; | 1384 GList *m = NULL; |
1396 | 1385 struct proto_actions_menu *pam; |
1397 m = g_list_append(m, "Set User Info"); | 1386 |
1398 m = g_list_append(m, "Set Dir Info"); | 1387 pam = g_new0(struct proto_actions_menu, 1); |
1399 m = g_list_append(m, "Change Password"); | 1388 pam->label = _("Set User Info"); |
1389 pam->callback = show_set_info; | |
1390 pam->gc = gc; | |
1391 m = g_list_append(m, pam); | |
1392 | |
1393 pam = g_new0(struct proto_actions_menu, 1); | |
1394 pam->label = _("Set Dir Info"); | |
1395 pam->callback = show_set_dir; | |
1396 pam->gc = gc; | |
1397 m = g_list_append(m, pam); | |
1398 | |
1399 pam = g_new0(struct proto_actions_menu, 1); | |
1400 pam->label = _("Change Password"); | |
1401 pam->callback = show_change_passwd; | |
1402 pam->gc = gc; | |
1403 m = g_list_append(m, pam); | |
1400 | 1404 |
1401 return m; | 1405 return m; |
1402 } | 1406 } |
1403 | 1407 |
1404 G_MODULE_EXPORT void toc_init(struct prpl *ret) | 1408 G_MODULE_EXPORT void toc_init(struct prpl *ret) |
1408 ret->options = OPT_PROTO_CORRECT_TIME; | 1412 ret->options = OPT_PROTO_CORRECT_TIME; |
1409 ret->name = g_strdup("TOC"); | 1413 ret->name = g_strdup("TOC"); |
1410 ret->list_icon = toc_list_icon; | 1414 ret->list_icon = toc_list_icon; |
1411 ret->away_states = toc_away_states; | 1415 ret->away_states = toc_away_states; |
1412 ret->actions = toc_actions; | 1416 ret->actions = toc_actions; |
1413 ret->do_action = toc_do_action; | |
1414 ret->buddy_menu = toc_buddy_menu; | 1417 ret->buddy_menu = toc_buddy_menu; |
1415 ret->login = toc_login; | 1418 ret->login = toc_login; |
1416 ret->close = toc_close; | 1419 ret->close = toc_close; |
1417 ret->send_im = toc_send_im; | 1420 ret->send_im = toc_send_im; |
1418 ret->set_info = toc_set_info; | 1421 ret->set_info = toc_set_info; |