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

Function temp_dir_changed_cb

gtk/src/callbacks.c:5303–5328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5301}
5302
5303G_MODULE_EXPORT void
5304temp_dir_changed_cb (GhbFileButton *dest_chooser, GParamSpec *pspec, gpointer data)
5305{
5306 char * orig_tmp_dir = NULL;
5307 const char * tmp_dir;
5308 signal_user_data_t *ud = ghb_ud();
5309
5310 tmp_dir = ghb_dict_get_string(ud->prefs, "CustomTmpDir");
5311 if (tmp_dir != NULL)
5312 {
5313 orig_tmp_dir = g_strdup(tmp_dir);
5314 }
5315 ghb_widget_to_setting(ud->prefs, GTK_WIDGET(dest_chooser));
5316
5317 tmp_dir = ghb_dict_get_string(ud->prefs, "CustomTmpDir");
5318 if (tmp_dir == NULL)
5319 {
5320 tmp_dir = "";
5321 }
5322 if (orig_tmp_dir == NULL ||
5323 strcmp(orig_tmp_dir, tmp_dir))
5324 {
5325 ghb_pref_set(ud->prefs, "CustomTmpDir");
5326 prefs_require_restart = TRUE;
5327 }
5328}
5329
5330G_MODULE_EXPORT void
5331vqual_granularity_changed_cb(GtkWidget *widget, gpointer data)

Callers

nothing calls this directly

Calls 4

ghb_udFunction · 0.85
ghb_dict_get_stringFunction · 0.85
ghb_widget_to_settingFunction · 0.85
ghb_pref_setFunction · 0.85

Tested by

no test coverage detected