| 339 STOCK_ITEMIZE(_("Alias"), PIDGIN_STOCK_ALIAS); |
339 STOCK_ITEMIZE(_("Alias"), PIDGIN_STOCK_ALIAS); |
| 340 |
340 |
| 341 return text; |
341 return text; |
| 342 } |
342 } |
| 343 |
343 |
| |
344 static void stop_emission_cb(GtkDialog *dialog, const gchar *signal_name) |
| |
345 { |
| |
346 gtk_signal_emit_stop_by_name(GTK_OBJECT(dialog), signal_name); |
| |
347 } |
| |
348 |
| 344 static void * |
349 static void * |
| 345 pidgin_request_input(const char *title, const char *primary, |
350 pidgin_request_input(const char *title, const char *primary, |
| 346 const char *secondary, const char *default_value, |
351 const char *secondary, const char *default_value, |
| 347 gboolean multiline, gboolean masked, gchar *hint, |
352 gboolean multiline, gboolean masked, gchar *hint, |
| 348 const char *ok_text, GCallback ok_cb, |
353 const char *ok_text, GCallback ok_cb, |
| 653 |
658 |
| 654 /* Create the dialog. */ |
659 /* Create the dialog. */ |
| 655 data->dialog = dialog = gtk_dialog_new(); |
660 data->dialog = dialog = gtk_dialog_new(); |
| 656 |
661 |
| 657 gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE); |
662 gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE); |
| |
663 g_signal_connect(G_OBJECT(dialog), "close", |
| |
664 G_CALLBACK(stop_emission_cb), "close"); |
| 658 |
665 |
| 659 if (title != NULL) |
666 if (title != NULL) |
| 660 gtk_window_set_title(GTK_WINDOW(dialog), title); |
667 gtk_window_set_title(GTK_WINDOW(dialog), title); |
| 661 #ifdef _WIN32 |
668 #ifdef _WIN32 |
| 662 else |
669 else |