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

Function ghb_clear_presets_selection

gtk/src/presets.c:3259–3282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3257}
3258
3259void
3260ghb_clear_presets_selection(signal_user_data_t *ud)
3261{
3262 GtkTreeView * treeview;
3263 GtkTreeSelection * selection;
3264 GSimpleAction * action;
3265 GtkWidget * widget;
3266
3267 if (dont_clear_presets) return;
3268 treeview = GTK_TREE_VIEW(ghb_builder_widget("presets_list"));
3269 selection = gtk_tree_view_get_selection(treeview);
3270 gtk_tree_selection_unselect_all(selection);
3271 ghb_dict_set_bool(ud->settings, "preset_modified", TRUE);
3272
3273
3274 action = GHB_APPLICATION_ACTION("preset-reload");
3275 g_simple_action_set_enabled(action, TRUE);
3276 widget = ghb_builder_widget("preset_selection_modified_label");
3277 gtk_widget_set_visible(widget, TRUE);
3278 widget = ghb_builder_widget("preset_selection_reload");
3279 gtk_widget_set_visible(widget, TRUE);
3280 widget = ghb_builder_widget("preset_save_new");
3281 gtk_widget_set_visible(widget, TRUE);
3282}
3283
3284G_MODULE_EXPORT void
3285preset_default_action_cb(GSimpleAction *action, GVariant *param,

Callers 15

subtitle_add_lang_iterFunction · 0.85
vcodec_changed_cbFunction · 0.85
video_setting_changed_cbFunction · 0.85
framerate_changed_cbFunction · 0.85
color_range_changed_cbFunction · 0.85
ghb_load_settingsFunction · 0.85
container_changed_cbFunction · 0.85

Calls 2

ghb_builder_widgetFunction · 0.85
ghb_dict_set_boolFunction · 0.85

Tested by

no test coverage detected