comparison src/oscar.c @ 1333:b332d8f46b84

[gaim-migrate @ 1343] oo, a fun new register button. oh yeah, and the buddy list stuff got moved back from toc.c to buddy.c. isn't that nice. now you can remove toc.c and rvous.c, comment out one line in prpl.c, and get rid of toc altogether. but you won't do that. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 20 Dec 2000 13:24:48 +0000
parents 7f7e3bfb1af7
children 776bb4c6c0b8
comparison
equal deleted inserted replaced
1332:bec4de31b3ad 1333:b332d8f46b84
2237 default: 2237 default:
2238 break; 2238 break;
2239 } 2239 }
2240 } 2240 }
2241 2241
2242 static void oscar_draw_new_user(GtkWidget *box)
2243 {
2244 GtkWidget *label;
2245
2246 label = gtk_label_new(_("Unfortunately, currently Oscar only allows new user registration by "
2247 "going to http://aim.aol.com/aimnew/Aim/register.adp?promo=106723&pageset=Aim&client=no"
2248 ". Clicking the Register button will open the URL for you."));
2249 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE);
2250 gtk_box_pack_start(GTK_BOX(box), label, FALSE, FALSE, 5);
2251 gtk_widget_show(label);
2252 }
2253
2254 static void oscar_do_new_user()
2255 {
2256 open_url(NULL, "http://aim.aol.com/aimnew/Aim/register.adp?promo=106723&pageset=Aim&client=no");
2257 }
2258
2242 void oscar_init(struct prpl *ret) { 2259 void oscar_init(struct prpl *ret) {
2243 ret->protocol = PROTO_OSCAR; 2260 ret->protocol = PROTO_OSCAR;
2244 ret->name = oscar_name; 2261 ret->name = oscar_name;
2245 ret->list_icon = oscar_list_icon; 2262 ret->list_icon = oscar_list_icon;
2246 ret->action_menu = oscar_action_menu; 2263 ret->action_menu = oscar_action_menu;
2247 ret->user_opts = oscar_user_opts; 2264 ret->user_opts = oscar_user_opts;
2265 ret->draw_new_user = oscar_draw_new_user;
2266 ret->do_new_user = oscar_do_new_user;
2248 ret->login = oscar_login; 2267 ret->login = oscar_login;
2249 ret->close = oscar_close; 2268 ret->close = oscar_close;
2250 ret->send_im = oscar_send_im; 2269 ret->send_im = oscar_send_im;
2251 ret->set_info = oscar_set_info; 2270 ret->set_info = oscar_set_info;
2252 ret->get_info = oscar_get_info; 2271 ret->get_info = oscar_get_info;