Mercurial > pidgin.yaz
comparison src/protocols/oscar/oscar.c @ 7313:be7c1468c6a7
[gaim-migrate @ 7897]
I thought I commited some of this a while ago... oh well. None of it
is really important at all.
I uncommented the available message stuff, it might work for some
people (Sam), but doesn't work for me. I don't want to have to
comment this out again before 0.72... so someone get this working (Sam).
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 22 Oct 2003 03:32:21 +0000 |
parents | 0ed0ac132b1b |
children | 3bcd867c22f3 |
comparison
equal
deleted
inserted
replaced
7312:b8ce6e194cff | 7313:be7c1468c6a7 |
---|---|
3409 gaim_notify_emails(gc, emailinfo->nummsgs, FALSE, NULL, NULL, (const char **)&to, (const char **)&emailinfo->url, NULL, NULL); | 3409 gaim_notify_emails(gc, emailinfo->nummsgs, FALSE, NULL, NULL, (const char **)&to, (const char **)&emailinfo->url, NULL, NULL); |
3410 g_free(to); | 3410 g_free(to); |
3411 } | 3411 } |
3412 | 3412 |
3413 if (alertitle) | 3413 if (alertitle) |
3414 gaim_debug(GAIM_DEBUG_MISC, "oscar", "Got an alert '%s' %s\n", alertitle, alerturl); | 3414 gaim_debug(GAIM_DEBUG_MISC, "oscar", "Got an alert '%s' %s\n", alertitle, alerturl ? alerturl : ""); |
3415 | 3415 |
3416 return 1; | 3416 return 1; |
3417 } | 3417 } |
3418 | 3418 |
3419 static int gaim_icon_error(aim_session_t *sess, aim_frame_t *fr, ...) { | 3419 static int gaim_icon_error(aim_session_t *sess, aim_frame_t *fr, ...) { |
6337 NULL, FALSE, FALSE, | 6337 NULL, FALSE, FALSE, |
6338 _("Search"), G_CALLBACK(search_by_email_cb), | 6338 _("Search"), G_CALLBACK(search_by_email_cb), |
6339 _("Cancel"), NULL, gc); | 6339 _("Cancel"), NULL, gc); |
6340 } | 6340 } |
6341 | 6341 |
6342 #if 0 | |
6343 static void oscar_setavailmsg(GaimConnection *gc, char *text) { | 6342 static void oscar_setavailmsg(GaimConnection *gc, char *text) { |
6344 OscarData *od = (OscarData *)gc->proto_data; | 6343 OscarData *od = (OscarData *)gc->proto_data; |
6345 | 6344 |
6345 aim_locate_setprofile(od->sess, NULL, NULL, 0, NULL, "", 0, 0); | |
6346 aim_srv_setavailmsg(od->sess, text); | 6346 aim_srv_setavailmsg(od->sess, text); |
6347 } | 6347 } |
6348 | 6348 |
6349 static void oscar_show_setavailmsg(GaimConnection *gc) | 6349 static void oscar_show_setavailmsg(GaimConnection *gc) |
6350 { | 6350 { |
6351 gaim_request_input(gc, NULL, _("Available Message:"), | 6351 gaim_request_input(gc, NULL, _("Available Message:"), NULL, |
6352 NULL, "Please talk to me, I'm lonely! (and single)", TRUE, FALSE, | 6352 _("I'm doing work and hoping for a distraction--IM me!"), |
6353 TRUE, FALSE, | |
6353 _("OK"), G_CALLBACK(oscar_setavailmsg), | 6354 _("OK"), G_CALLBACK(oscar_setavailmsg), |
6354 _("Cancel"), NULL, | 6355 _("Cancel"), NULL, |
6355 gc); | 6356 gc); |
6356 } | 6357 } |
6357 #endif | |
6358 | 6358 |
6359 static void oscar_show_set_info(GaimConnection *gc) | 6359 static void oscar_show_set_info(GaimConnection *gc) |
6360 { | 6360 { |
6361 gaim_account_request_change_user_info(gaim_connection_get_account(gc)); | 6361 gaim_account_request_change_user_info(gaim_connection_get_account(gc)); |
6362 } | 6362 } |
6422 pam->label = _("Set User Info"); | 6422 pam->label = _("Set User Info"); |
6423 pam->callback = oscar_show_set_info; | 6423 pam->callback = oscar_show_set_info; |
6424 pam->gc = gc; | 6424 pam->gc = gc; |
6425 m = g_list_append(m, pam); | 6425 m = g_list_append(m, pam); |
6426 | 6426 |
6427 #if 0 | |
6428 pam = g_new0(struct proto_actions_menu, 1); | 6427 pam = g_new0(struct proto_actions_menu, 1); |
6429 pam->label = _("Set Available Message"); | 6428 pam->label = _("Set Available Message"); |
6430 pam->callback = oscar_show_setavailmsg; | 6429 pam->callback = oscar_show_setavailmsg; |
6431 pam->gc = gc; | 6430 pam->gc = gc; |
6432 m = g_list_append(m, pam); | 6431 m = g_list_append(m, pam); |
6433 #endif | |
6434 | 6432 |
6435 pam = g_new0(struct proto_actions_menu, 1); | 6433 pam = g_new0(struct proto_actions_menu, 1); |
6436 pam->label = _("Change Password"); | 6434 pam->label = _("Change Password"); |
6437 pam->callback = oscar_change_pass; | 6435 pam->callback = oscar_change_pass; |
6438 pam->gc = gc; | 6436 pam->gc = gc; |