MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / audio_def_setting_remove_cb

Function audio_def_setting_remove_cb

gtk/src/audiohandler.c:2395–2412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2393}
2394
2395G_MODULE_EXPORT void
2396audio_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
2414G_MODULE_EXPORT void
2415audio_def_encoder_changed_cb (GtkWidget *widget, gpointer data)

Callers

nothing calls this directly

Calls 5

ghb_udFunction · 0.85
audio_settings_get_rowFunction · 0.85
ghb_dict_get_valueFunction · 0.85
ghb_builder_widgetFunction · 0.85

Tested by

no test coverage detected