-#if GTK_CHECK_VERSION (2,24,0)
- widgets->type = gtk_combo_box_text_new ();
-#else
- widgets->type = gtk_combo_box_new_text ();
-#endif
- g_list_foreach (a_babel_file_list, fill_combo_box, widgets->type);
- gtk_combo_box_set_active (GTK_COMBO_BOX (widgets->type), last_type);
+ /* Propose any readable file */
+ BabelMode mode = { 1, 0, 1, 0, 1, 0 };
+ widgets->type = a_babel_ui_file_type_selector_new ( mode );
+ g_signal_connect ( G_OBJECT(widgets->type), "changed",
+ G_CALLBACK(a_babel_ui_type_selector_dialog_sensitivity_cb), dialog );
+ gtk_combo_box_set_active ( GTK_COMBO_BOX(widgets->type), last_type );
+ /* Manually call the callback to fix the state */
+ a_babel_ui_type_selector_dialog_sensitivity_cb ( GTK_COMBO_BOX(widgets->type), dialog );