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

Function subtitle_list_selection_changed_cb

gtk/src/subtitlehandler.c:1086–1113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1084}
1085
1086G_MODULE_EXPORT void
1087subtitle_list_selection_changed_cb (GtkTreeSelection *ts, gpointer data)
1088{
1089 signal_user_data_t *ud = ghb_ud();
1090 GtkTreeModel *tm;
1091 GtkTreeIter iter;
1092 GhbValue *subsettings;
1093
1094 if (gtk_tree_selection_get_selected(ts, &tm, &iter))
1095 {
1096 GtkTreeIter piter;
1097 if (gtk_tree_model_iter_parent(tm, &piter, &iter))
1098 {
1099 GtkTreePath *path;
1100 GtkTreeView *tv;
1101
1102 gtk_tree_selection_select_iter(ts, &piter);
1103 path = gtk_tree_model_get_path(tm, &piter);
1104 tv = gtk_tree_selection_get_tree_view(ts);
1105 // Make the parent visible in scroll window if it is not.
1106 gtk_tree_view_scroll_to_cell(tv, path, NULL, FALSE, 0, 0);
1107 gtk_tree_path_free(path);
1108 return;
1109 }
1110 }
1111 subsettings = subtitle_get_selected_settings(ud, NULL);
1112 subtitle_update_dialog_widgets(ud, subsettings);
1113}
1114
1115static gboolean subtitle_is_one_burned(GhbValue *settings)
1116{

Callers

nothing calls this directly

Calls 3

ghb_udFunction · 0.85

Tested by

no test coverage detected