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

Function update_default_destination

gtk/src/callbacks.c:2034–2047  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2032}
2033
2034static void
2035update_default_destination(signal_user_data_t *ud)
2036{
2037 const gchar *dest_dir, *def_dest;
2038
2039 dest_dir = ghb_dict_get_string(ud->settings, "dest_dir");
2040 def_dest = ghb_dict_get_string(ud->prefs, "destination_dir");
2041 if (dest_dir != NULL && def_dest != NULL && dest_dir[0] != 0 &&
2042 strcmp(dest_dir, def_dest) != 0)
2043 {
2044 ghb_dict_set_string(ud->prefs, "destination_dir", dest_dir);
2045 ghb_pref_save(ud->prefs, "destination_dir");
2046 }
2047}
2048
2049G_MODULE_EXPORT void
2050dest_dir_set_cb (GhbFileButton *dest_chooser, GParamSpec *pspec, gpointer data)

Callers 1

dest_dir_set_cbFunction · 0.85

Calls 3

ghb_dict_get_stringFunction · 0.85
ghb_dict_set_stringFunction · 0.85
ghb_pref_saveFunction · 0.85

Tested by

no test coverage detected