Mercurial > pidgin.yaz
comparison src/dialogs.c @ 7118:bf630f7dfdcd
[gaim-migrate @ 7685]
Here's a commit that I think will make faceprint happy. GaimWindow ->
GaimConvWindow, GaimIm -> GaimConvIm, GaimChat -> GaimConvChat,
GaimBlistChat -> GaimChat, and updated the API functions as well. Plugin
authors are going to hunt me down and murder me. I can feel it..
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Thu, 02 Oct 2003 02:54:07 +0000 |
parents | 6faeeecab0dc |
children | 208cb260d7a7 |
comparison
equal
deleted
inserted
replaced
7117:943085b0ff8b | 7118:bf630f7dfdcd |
---|---|
356 dialogwindows = g_list_prepend(dialogwindows, w->window); | 356 dialogwindows = g_list_prepend(dialogwindows, w->window); |
357 gtk_widget_show_all(w->window); | 357 gtk_widget_show_all(w->window); |
358 } | 358 } |
359 | 359 |
360 static void | 360 static void |
361 do_remove_chat(GaimBlistChat *chat) | 361 do_remove_chat(GaimChat *chat) |
362 { | 362 { |
363 gaim_blist_remove_chat(chat); | 363 gaim_blist_remove_chat(chat); |
364 gaim_blist_save(); | 364 gaim_blist_save(); |
365 } | 365 } |
366 | 366 |
438 } else { | 438 } else { |
439 bnode = bnode->next; | 439 bnode = bnode->next; |
440 } | 440 } |
441 } | 441 } |
442 } else if(GAIM_BLIST_NODE_IS_CHAT(cnode)) { | 442 } else if(GAIM_BLIST_NODE_IS_CHAT(cnode)) { |
443 GaimBlistChat *chat = (GaimBlistChat *)cnode; | 443 GaimChat *chat = (GaimChat *)cnode; |
444 cnode = cnode->next; | 444 cnode = cnode->next; |
445 if(gaim_account_is_connected(chat->account)) | 445 if(gaim_account_is_connected(chat->account)) |
446 gaim_blist_remove_chat(chat); | 446 gaim_blist_remove_chat(chat); |
447 } else { | 447 } else { |
448 cnode = cnode->next; | 448 cnode = cnode->next; |
466 _("Cancel"), NULL); | 466 _("Cancel"), NULL); |
467 | 467 |
468 g_free(text); | 468 g_free(text); |
469 } | 469 } |
470 | 470 |
471 void show_confirm_del_blist_chat(GaimBlistChat *chat) | 471 void show_confirm_del_blist_chat(GaimChat *chat) |
472 { | 472 { |
473 char *name = gaim_blist_chat_get_display_name(chat); | 473 char *name = gaim_blist_chat_get_display_name(chat); |
474 char *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), name); | 474 char *text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), name); |
475 | 475 |
476 gaim_request_action(NULL, NULL, _("Remove Chat"), text, -1, chat, 2, | 476 gaim_request_action(NULL, NULL, _("Remove Chat"), text, -1, chat, 2, |
537 conv = gaim_find_conversation_with_account(who, account); | 537 conv = gaim_find_conversation_with_account(who, account); |
538 | 538 |
539 if (conv == NULL) | 539 if (conv == NULL) |
540 conv = gaim_conversation_new(GAIM_CONV_IM, account, who); | 540 conv = gaim_conversation_new(GAIM_CONV_IM, account, who); |
541 else { | 541 else { |
542 gaim_window_raise(gaim_conversation_get_window(conv)); | 542 gaim_conv_window_raise(gaim_conversation_get_window(conv)); |
543 } | 543 } |
544 } | 544 } |
545 | 545 |
546 destroy_dialog(NULL, imdialog); | 546 destroy_dialog(NULL, imdialog); |
547 imdialog = NULL; | 547 imdialog = NULL; |
1795 | 1795 |
1796 return; | 1796 return; |
1797 } | 1797 } |
1798 | 1798 |
1799 static void | 1799 static void |
1800 alias_chat_cb(GaimBlistChat *chat, const char *new_alias) | 1800 alias_chat_cb(GaimChat *chat, const char *new_alias) |
1801 { | 1801 { |
1802 gaim_blist_alias_chat(chat, new_alias); | 1802 gaim_blist_alias_chat(chat, new_alias); |
1803 gaim_blist_save(); | 1803 gaim_blist_save(); |
1804 } | 1804 } |
1805 | 1805 |
1806 void | 1806 void |
1807 alias_dialog_blist_chat(GaimBlistChat *chat) | 1807 alias_dialog_blist_chat(GaimChat *chat) |
1808 { | 1808 { |
1809 gaim_request_input(NULL, _("Alias Chat"), _("Alias chat"), | 1809 gaim_request_input(NULL, _("Alias Chat"), _("Alias chat"), |
1810 _("Please enter an aliased name for this chat."), | 1810 _("Please enter an aliased name for this chat."), |
1811 chat->alias, FALSE, FALSE, | 1811 chat->alias, FALSE, FALSE, |
1812 _("OK"), G_CALLBACK(alias_chat_cb), | 1812 _("OK"), G_CALLBACK(alias_chat_cb), |