| 3561 | static ghb_status_t hb_status; |
| 3562 | |
| 3563 | void |
| 3564 | ghb_combo_init(signal_user_data_t *ud) |
| 3565 | { |
| 3566 | // Set up the list model for the combos |
| 3567 | init_ui_combo_boxes(); |
| 3568 | // Populate all the combos |
| 3569 | ghb_update_ui_combo_box(ud, NULL, NULL, TRUE); |
| 3570 | |
| 3571 | GtkWidget * combo; |
| 3572 | GtkEventController * econ; |
| 3573 | |
| 3574 | // Set key-press handler for subtitle import language combo. |
| 3575 | // Pressing a key warps to the next language that starts with that key. |
| 3576 | combo = ghb_builder_widget("ImportLanguage"); |
| 3577 | econ = gtk_event_controller_key_new(); |
| 3578 | gtk_widget_add_controller(combo, econ); |
| 3579 | g_signal_connect(econ, "key-pressed", |
| 3580 | G_CALLBACK(combo_search_key_press_cb), ud); |
| 3581 | } |
| 3582 | |
| 3583 | void |
| 3584 | ghb_backend_init(gint debug) |
no test coverage detected