| 313 STOCK_ITEMIZE(_("Alias"), PIDGIN_STOCK_ALIAS); |
313 STOCK_ITEMIZE(_("Alias"), PIDGIN_STOCK_ALIAS); |
| 314 |
314 |
| 315 return text; |
315 return text; |
| 316 } |
316 } |
| 317 |
317 |
| 318 static void stop_emission_cb(GtkDialog *dialog, const gchar *signal_name) |
|
| 319 { |
|
| 320 gtk_signal_emit_stop_by_name(GTK_OBJECT(dialog), signal_name); |
|
| 321 } |
|
| 322 |
|
| 323 static void * |
318 static void * |
| 324 pidgin_request_input(const char *title, const char *primary, |
319 pidgin_request_input(const char *title, const char *primary, |
| 325 const char *secondary, const char *default_value, |
320 const char *secondary, const char *default_value, |
| 326 gboolean multiline, gboolean masked, gchar *hint, |
321 gboolean multiline, gboolean masked, gchar *hint, |
| 327 const char *ok_text, GCallback ok_cb, |
322 const char *ok_text, GCallback ok_cb, |
| 632 |
627 |
| 633 /* Create the dialog. */ |
628 /* Create the dialog. */ |
| 634 data->dialog = dialog = gtk_dialog_new(); |
629 data->dialog = dialog = gtk_dialog_new(); |
| 635 |
630 |
| 636 gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE); |
631 gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE); |
| 637 g_signal_connect(G_OBJECT(dialog), "close", |
|
| 638 G_CALLBACK(stop_emission_cb), "close"); |
|
| 639 |
632 |
| 640 if (title != NULL) |
633 if (title != NULL) |
| 641 gtk_window_set_title(GTK_WINDOW(dialog), title); |
634 gtk_window_set_title(GTK_WINDOW(dialog), title); |
| 642 #ifdef _WIN32 |
635 #ifdef _WIN32 |
| 643 else |
636 else |