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

Function presets_list_show_default

gtk/src/presets.c:170–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168#endif
169
170static void
171presets_list_show_default(signal_user_data_t *ud)
172{
173 hb_preset_index_t *path;
174
175 path = hb_presets_get_default_index();
176 if (path == NULL || path->depth == 0)
177 return;
178
179 GtkTreeView *treeview;
180 GtkTreeStore *store;
181 GtkTreePath *treepath;
182 GtkTreeIter iter;
183
184 treeview = GTK_TREE_VIEW(ghb_builder_widget("presets_list"));
185 store = GTK_TREE_STORE(gtk_tree_view_get_model(treeview));
186 treepath = tree_path_new_from_index(path);
187 if (treepath)
188 {
189 if (gtk_tree_model_get_iter(GTK_TREE_MODEL(store), &iter, treepath))
190 {
191 gtk_tree_store_set(store, &iter,
192 1, 700,
193 2, 0,
194 -1);
195 }
196 gtk_tree_path_free(treepath);
197 }
198 free(path);
199}
200
201static void
202presets_list_clear_default(signal_user_data_t *ud)

Callers 2

ghb_presets_list_initFunction · 0.85
preset_default_action_cbFunction · 0.85

Calls 3

ghb_builder_widgetFunction · 0.85
tree_path_new_from_indexFunction · 0.85

Tested by

no test coverage detected