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

Function get_selected_path

gtk/src/presets.c:1200–1215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198}
1199
1200static hb_preset_index_t *
1201get_selected_path(signal_user_data_t *ud)
1202{
1203 GtkTreeView *treeview;
1204 GtkTreeSelection *selection;
1205 GtkTreeModel *store;
1206 GtkTreeIter iter;
1207
1208 treeview = GTK_TREE_VIEW(ghb_builder_widget("presets_list"));
1209 selection = gtk_tree_view_get_selection(treeview);
1210 if (gtk_tree_selection_get_selected(selection, &store, &iter))
1211 {
1212 return tree_get_index(store, &iter);
1213 }
1214 return NULL;
1215}
1216
1217G_MODULE_EXPORT void
1218show_presets_action_cb(GSimpleAction *action, GVariant *value,

Callers 5

preset_export_action_cbFunction · 0.85
preset_remove_action_cbFunction · 0.85
preset_default_action_cbFunction · 0.85

Calls 2

ghb_builder_widgetFunction · 0.85
tree_get_indexFunction · 0.85

Tested by

no test coverage detected