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

Function preset_default_action_cb

gtk/src/presets.c:3284–3303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3282}
3283
3284G_MODULE_EXPORT void
3285preset_default_action_cb(GSimpleAction *action, GVariant *param,
3286 signal_user_data_t *ud)
3287{
3288 hb_preset_index_t *path = get_selected_path(ud);
3289 if (path != NULL)
3290 {
3291 hb_value_t *dict = hb_preset_get(path);
3292 if (dict != NULL && !ghb_dict_get_bool(dict, "Folder"))
3293 {
3294 presets_list_clear_default(ud);
3295 hb_presets_clear_default();
3296 ghb_dict_set_bool(dict, "Default", 1);
3297 presets_list_show_default(ud);
3298 store_presets();
3299 g_simple_action_set_enabled(action, FALSE);
3300 }
3301 g_free(path);
3302 }
3303}
3304
3305G_MODULE_EXPORT void
3306preset_edited_cb(

Callers

nothing calls this directly

Calls 8

get_selected_pathFunction · 0.85
hb_preset_getFunction · 0.85
ghb_dict_get_boolFunction · 0.85
hb_presets_clear_defaultFunction · 0.85
ghb_dict_set_boolFunction · 0.85
store_presetsFunction · 0.85

Tested by

no test coverage detected