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

Function clear_audio_list_ui

gtk/src/audiohandler.c:1304–1319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1302}
1303
1304static void
1305clear_audio_list_ui (void)
1306{
1307 GtkTreeView *tv;
1308 GtkTreeStore *ts;
1309 GtkTreeSelection *tsel;
1310
1311 ghb_log_func();
1312 tv = GTK_TREE_VIEW(ghb_builder_widget("audio_list_view"));
1313 ts = GTK_TREE_STORE(gtk_tree_view_get_model(tv));
1314 // Clear tree selection so that updates are not triggered
1315 // that cause a recursive attempt to clear the tree selection (crasher)
1316 tsel = gtk_tree_view_get_selection(tv);
1317 gtk_tree_selection_unselect_all(tsel);
1318 gtk_tree_store_clear(ts);
1319}
1320
1321static void
1322audio_add_to_ui (signal_user_data_t *ud, const GhbValue *asettings)

Callers 3

audio_refresh_list_uiFunction · 0.85
audio_add_all_cbFunction · 0.85
audio_clear_cbFunction · 0.85

Calls 1

ghb_builder_widgetFunction · 0.85

Tested by

no test coverage detected