pidgin/gtkrequest.c

changeset 34329
ddbc1337332c
parent 34308
cdb187c27360
child 34330
35d5e8fcc07b
equal deleted inserted replaced
34328:d0b5e37899e1 34329:ddbc1337332c
313 pidgin_request_input(const char *title, const char *primary, 313 pidgin_request_input(const char *title, const char *primary,
314 const char *secondary, const char *default_value, 314 const char *secondary, const char *default_value,
315 gboolean multiline, gboolean masked, gchar *hint, 315 gboolean multiline, gboolean masked, gchar *hint,
316 const char *ok_text, GCallback ok_cb, 316 const char *ok_text, GCallback ok_cb,
317 const char *cancel_text, GCallback cancel_cb, 317 const char *cancel_text, GCallback cancel_cb,
318 PurpleAccount *account, const char *who, PurpleConversation *conv, 318 PurpleRequestCommonParameters *cpar,
319 void *user_data) 319 void *user_data)
320 { 320 {
321 PidginRequestData *data; 321 PidginRequestData *data;
322 GtkWidget *dialog; 322 GtkWidget *dialog;
323 GtkWidget *vbox; 323 GtkWidget *vbox;
373 /* Vertical box */ 373 /* Vertical box */
374 vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BORDER); 374 vbox = gtk_vbox_new(FALSE, PIDGIN_HIG_BORDER);
375 375
376 gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0); 376 gtk_box_pack_start(GTK_BOX(hbox), vbox, TRUE, TRUE, 0);
377 377
378 pidgin_widget_decorate_account(hbox, account); 378 pidgin_widget_decorate_account(hbox, purple_request_cpar_get_account(cpar));
379 379
380 /* Descriptive label */ 380 /* Descriptive label */
381 primary_esc = (primary != NULL) ? g_markup_escape_text(primary, -1) : NULL; 381 primary_esc = (primary != NULL) ? g_markup_escape_text(primary, -1) : NULL;
382 secondary_esc = (secondary != NULL) ? g_markup_escape_text(secondary, -1) : NULL; 382 secondary_esc = (secondary != NULL) ? g_markup_escape_text(secondary, -1) : NULL;
383 label_text = g_strdup_printf((primary ? "<span weight=\"bold\" size=\"larger\">" 383 label_text = g_strdup_printf((primary ? "<span weight=\"bold\" size=\"larger\">"

mercurial