comparison src/protocols/gg/gg.c @ 12258:2b61f681ff99

[gaim-migrate @ 14560] Bartosz Oler submitted patches with two different blocks of error handling. I thought the more, the better, so I accepted both. He disagrees. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 29 Nov 2005 22:57:17 +0000
parents ca27de274225
children 739e3aca067a
comparison
equal deleted inserted replaced
12257:ca27de274225 12258:2b61f681ff99
1035 void *h = gaim_notify_searchresults(gc, 1035 void *h = gaim_notify_searchresults(gc,
1036 _("Gadu-Gadu Public Directory"), 1036 _("Gadu-Gadu Public Directory"),
1037 _("Search results"), NULL, results, 1037 _("Search results"), NULL, results,
1038 (GaimNotifyCloseCallback)ggp_sr_close_cb, 1038 (GaimNotifyCloseCallback)ggp_sr_close_cb,
1039 gaim_connection_get_account(gc)); 1039 gaim_connection_get_account(gc));
1040
1041 if (h == NULL) {
1042 gaim_debug_error("gg", "ggp_pubdir_reply_handler: "
1043 "Unable to display the search results.\n");
1044 gaim_notify_error(gc, NULL,
1045 _("Unable to display the search results."),
1046 NULL);
1047 ggp_sr_close_cb(gaim_connection_get_account(gc));
1048 return;
1049 }
1050 1040
1051 info->searchresults_window = h; 1041 info->searchresults_window = h;
1052 } else { 1042 } else {
1053 gaim_notify_searchresults_new_rows(gc, results, 1043 gaim_notify_searchresults_new_rows(gc, results,
1054 info->searchresults_window, NULL); 1044 info->searchresults_window, NULL);