| 2393 | } |
| 2394 | |
| 2395 | G_MODULE_EXPORT void |
| 2396 | audio_def_setting_remove_cb (GtkWidget *widget, gpointer data) |
| 2397 | { |
| 2398 | signal_user_data_t *ud = ghb_ud(); |
| 2399 | GtkListBoxRow *row = audio_settings_get_row(widget); |
| 2400 | gint index = gtk_list_box_row_get_index(row); |
| 2401 | |
| 2402 | GhbValue *alist = ghb_dict_get_value(ud->settings, "AudioList"); |
| 2403 | int count = ghb_array_len(alist); |
| 2404 | if (index < 0 || index >= count) |
| 2405 | { |
| 2406 | return; |
| 2407 | } |
| 2408 | GtkListBox *lb = GTK_LIST_BOX(ghb_builder_widget("audio_list_default")); |
| 2409 | gtk_list_box_remove(lb, GTK_WIDGET(row)); |
| 2410 | ghb_array_remove(alist, index); |
| 2411 | ghb_clear_presets_selection(ud); |
| 2412 | } |
| 2413 | |
| 2414 | G_MODULE_EXPORT void |
| 2415 | audio_def_encoder_changed_cb (GtkWidget *widget, gpointer data) |
nothing calls this directly
no test coverage detected