comparison src/protocols/oscar/oscar.c @ 8576:ddbcef747dc7

[gaim-migrate @ 9325] Another patch from Ambrose C. Li: This is a very small patch. The only thing it does is to add a "Set User Info (URL)..." protocol action for ICQ that loads a static web page. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 04 Apr 2004 15:08:26 +0000
parents a3ea56f147c7
children 5af95c2b1179
comparison
equal deleted inserted replaced
8575:be805ad5f9c7 8576:ddbcef747dc7
6710 static void oscar_show_set_info(GaimConnection *gc) 6710 static void oscar_show_set_info(GaimConnection *gc)
6711 { 6711 {
6712 gaim_account_request_change_user_info(gaim_connection_get_account(gc)); 6712 gaim_account_request_change_user_info(gaim_connection_get_account(gc));
6713 } 6713 }
6714 6714
6715 static void oscar_show_set_info_icqurl(GaimConnection *gc)
6716 {
6717 gaim_notify_uri(gc, "http://web.icq.com/whitepages/login/1,,,00.html");
6718 }
6719
6715 static void oscar_change_pass(GaimConnection *gc) 6720 static void oscar_change_pass(GaimConnection *gc)
6716 { 6721 {
6717 gaim_account_request_change_password(gaim_connection_get_account(gc)); 6722 gaim_account_request_change_password(gaim_connection_get_account(gc));
6718 } 6723 }
6719 6724
6772 pam = g_new0(struct proto_actions_menu, 1); 6777 pam = g_new0(struct proto_actions_menu, 1);
6773 pam->label = _("Set User Info..."); 6778 pam->label = _("Set User Info...");
6774 pam->callback = oscar_show_set_info; 6779 pam->callback = oscar_show_set_info;
6775 pam->gc = gc; 6780 pam->gc = gc;
6776 m = g_list_append(m, pam); 6781 m = g_list_append(m, pam);
6782
6783 if (od->icq) {
6784 pam = g_new0(struct proto_actions_menu, 1);
6785 pam->label = _("Set User Info (URL)...");
6786 pam->callback = oscar_show_set_info_icqurl;
6787 pam->gc = gc;
6788 m = g_list_append(m, pam);
6789 }
6777 6790
6778 #if 0 6791 #if 0
6779 pam = g_new0(struct proto_actions_menu, 1); 6792 pam = g_new0(struct proto_actions_menu, 1);
6780 pam->label = _("Set Available Message..."); 6793 pam->label = _("Set Available Message...");
6781 pam->callback = oscar_show_setavailmsg; 6794 pam->callback = oscar_show_setavailmsg;