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

Function clear_subtitle_list_ui

gtk/src/subtitlehandler.c:1052–1066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052static void
1053clear_subtitle_list_ui (void)
1054{
1055 GtkTreeView *tv;
1056 GtkTreeStore *ts;
1057 GtkTreeSelection *tsel;
1058
1059 tv = GTK_TREE_VIEW(ghb_builder_widget("subtitle_list_view"));
1060 ts = GTK_TREE_STORE(gtk_tree_view_get_model(tv));
1061 // Clear tree selection so that updates are not triggered
1062 // that cause a recursive attempt to clear the tree selection (crasher)
1063 tsel = gtk_tree_view_get_selection(tv);
1064 gtk_tree_selection_unselect_all(tsel);
1065 gtk_tree_store_clear(ts);
1066}
1067
1068static void
1069add_to_subtitle_list_ui(signal_user_data_t *ud, GhbValue *subsettings)

Callers 4

set_pref_subtitleFunction · 0.85
subtitle_add_all_cbFunction · 0.85
subtitle_clear_cbFunction · 0.85

Calls 1

ghb_builder_widgetFunction · 0.85

Tested by

no test coverage detected