| 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 |
|
| 349 static void * |
344 static void * |
| 350 pidgin_request_input(const char *title, const char *primary, |
345 pidgin_request_input(const char *title, const char *primary, |
| 351 const char *secondary, const char *default_value, |
346 const char *secondary, const char *default_value, |
| 352 gboolean multiline, gboolean masked, gchar *hint, |
347 gboolean multiline, gboolean masked, gchar *hint, |
| 353 const char *ok_text, GCallback ok_cb, |
348 const char *ok_text, GCallback ok_cb, |
| 658 |
653 |
| 659 /* Create the dialog. */ |
654 /* Create the dialog. */ |
| 660 data->dialog = dialog = gtk_dialog_new(); |
655 data->dialog = dialog = gtk_dialog_new(); |
| 661 |
656 |
| 662 gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE); |
657 gtk_window_set_deletable(GTK_WINDOW(data->dialog), FALSE); |
| 663 g_signal_connect(G_OBJECT(dialog), "close", |
|
| 664 G_CALLBACK(stop_emission_cb), "close"); |
|
| 665 |
658 |
| 666 if (title != NULL) |
659 if (title != NULL) |
| 667 gtk_window_set_title(GTK_WINDOW(dialog), title); |
660 gtk_window_set_title(GTK_WINDOW(dialog), title); |
| 668 #ifdef _WIN32 |
661 #ifdef _WIN32 |
| 669 else |
662 else |