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

Function ghb_load_settings

gtk/src/callbacks.c:1361–1391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1359}
1360
1361void
1362ghb_load_settings(signal_user_data_t * ud)
1363{
1364 const char * fullname;
1365 int type;
1366 gboolean preset_modified;
1367 static gboolean busy = FALSE;
1368
1369 if (busy)
1370 return;
1371 busy = TRUE;
1372
1373 fullname = ghb_dict_get_string(ud->settings, "PresetFullName");
1374 type = ghb_dict_get_int(ud->settings, "Type");
1375 preset_modified = ghb_dict_get_bool(ud->settings, "preset_modified");
1376 if (preset_modified)
1377 {
1378 ghb_clear_presets_selection(ud);
1379 ghb_preset_menu_button_refresh(ud, fullname, type);
1380 }
1381 else
1382 {
1383 ghb_dict_set_bool(ud->settings, "preset_reload", TRUE);
1384 ghb_select_preset(ud, fullname, type);
1385 ghb_dict_set_bool(ud->settings, "preset_reload", FALSE);
1386 }
1387
1388 busy = FALSE;
1389
1390 ghb_load_post_settings(ud);
1391}
1392
1393void
1394ghb_load_post_settings(signal_user_data_t * ud)

Callers 4

ghb_do_scan_listFunction · 0.85
ghb_do_scanFunction · 0.85
title_changed_cbFunction · 0.85
ghb_backend_eventsFunction · 0.85

Calls 8

ghb_dict_get_stringFunction · 0.85
ghb_dict_get_intFunction · 0.85
ghb_dict_get_boolFunction · 0.85
ghb_dict_set_boolFunction · 0.85
ghb_select_presetFunction · 0.85
ghb_load_post_settingsFunction · 0.85

Tested by

no test coverage detected