| 1210 #endif |
1210 #endif |
| 1211 } |
1211 } |
| 1212 |
1212 |
| 1213 static void * |
1213 static void * |
| 1214 pidgin_request_fields(const char *title, const char *primary, |
1214 pidgin_request_fields(const char *title, const char *primary, |
| 1215 const char *secondary, PurpleRequestFields *fields, |
1215 const char *secondary, PurpleRequestFields *fields, const char *ok_text, |
| 1216 const char *ok_text, GCallback ok_cb, |
1216 GCallback ok_cb, const char *cancel_text, GCallback cancel_cb, |
| 1217 const char *cancel_text, GCallback cancel_cb, |
1217 PurpleRequestCommonParameters *cpar, void *user_data) |
| 1218 PurpleAccount *account, const char *who, PurpleConversation *conv, |
|
| 1219 void *user_data) |
|
| 1220 { |
1218 { |
| 1221 PidginRequestData *data; |
1219 PidginRequestData *data; |
| 1222 GtkWidget *win; |
1220 GtkWidget *win; |
| 1223 GtkWidget *vbox; |
1221 GtkWidget *vbox; |
| 1224 GtkWidget *vbox2; |
1222 GtkWidget *vbox2; |
| 1279 button = pidgin_dialog_add_button(GTK_DIALOG(win), text_to_stock(ok_text), G_CALLBACK(multifield_ok_cb), data); |
1277 button = pidgin_dialog_add_button(GTK_DIALOG(win), text_to_stock(ok_text), G_CALLBACK(multifield_ok_cb), data); |
| 1280 data->ok_button = button; |
1278 data->ok_button = button; |
| 1281 gtk_widget_set_can_default(button, TRUE); |
1279 gtk_widget_set_can_default(button, TRUE); |
| 1282 gtk_window_set_default(GTK_WINDOW(win), button); |
1280 gtk_window_set_default(GTK_WINDOW(win), button); |
| 1283 |
1281 |
| 1284 pidgin_widget_decorate_account(hbox, account); |
1282 pidgin_widget_decorate_account(hbox, |
| |
1283 purple_request_cpar_get_account(cpar)); |
| 1285 |
1284 |
| 1286 /* Setup the vbox */ |
1285 /* Setup the vbox */ |
| 1287 vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BORDER); |
1286 vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BORDER); |
| 1288 gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0); |
1287 gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0); |
| 1289 gtk_widget_show(vbox); |
1288 gtk_widget_show(vbox); |