| 1378 /* Dialog icon. */ |
1378 /* Dialog icon. */ |
| 1379 img = pidgin_request_dialog_icon(cpar); |
1379 img = pidgin_request_dialog_icon(cpar); |
| 1380 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); |
1380 gtk_misc_set_alignment(GTK_MISC(img), 0, 0); |
| 1381 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
1381 gtk_box_pack_start(GTK_BOX(hbox), img, FALSE, FALSE, 0); |
| 1382 gtk_widget_show(img); |
1382 gtk_widget_show(img); |
| |
1383 |
| |
1384 /* Help button */ |
| |
1385 if (purple_request_cpar_get_help_cb(cpar, NULL) != NULL) { |
| |
1386 PurpleRequestHelpCb help_cb; |
| |
1387 gpointer help_data; |
| |
1388 |
| |
1389 help_cb = purple_request_cpar_get_help_cb(cpar, &help_data); |
| |
1390 g_assert(help_cb != NULL); |
| |
1391 |
| |
1392 button = gtk_dialog_add_button(GTK_DIALOG(win), GTK_STOCK_HELP, GTK_RESPONSE_HELP); |
| |
1393 g_signal_connect(G_OBJECT(button), "clicked", (GCallback)help_cb, help_data); |
| |
1394 } |
| 1383 |
1395 |
| 1384 /* Cancel button */ |
1396 /* Cancel button */ |
| 1385 button = pidgin_dialog_add_button(GTK_DIALOG(win), text_to_stock(cancel_text), G_CALLBACK(multifield_cancel_cb), data); |
1397 button = pidgin_dialog_add_button(GTK_DIALOG(win), text_to_stock(cancel_text), G_CALLBACK(multifield_cancel_cb), data); |
| 1386 gtk_widget_set_can_default(button, TRUE); |
1398 gtk_widget_set_can_default(button, TRUE); |
| 1387 |
1399 |