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

Function dest_dir_set_cb

gtk/src/callbacks.c:2049–2066  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2047}
2048
2049G_MODULE_EXPORT void
2050dest_dir_set_cb (GhbFileButton *dest_chooser, GParamSpec *pspec, gpointer data)
2051{
2052 const gchar *dest_file, *dest_dir;
2053 gchar *dest;
2054 signal_user_data_t *ud = ghb_ud();
2055
2056 ghb_log_func();
2057 ghb_widget_to_setting(ud->settings, (GtkWidget*)dest_chooser);
2058 dest_file = ghb_dict_get_string(ud->settings, "dest_file");
2059 dest_dir = ghb_dict_get_string(ud->settings, "dest_dir");
2060 dest = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", dest_dir, dest_file);
2061 ghb_dict_set_string(ud->settings, "destination", dest);
2062 GhbValue *dest_dict = ghb_get_job_dest_settings(ud->settings);
2063 ghb_dict_set_string(dest_dict, "File", dest);
2064 g_free(dest);
2065 update_default_destination(ud);
2066}
2067
2068G_MODULE_EXPORT void
2069dest_file_changed_cb (GtkEntry *entry, gpointer data)

Callers

nothing calls this directly

Calls 6

ghb_udFunction · 0.85
ghb_widget_to_settingFunction · 0.85
ghb_dict_get_stringFunction · 0.85
ghb_dict_set_stringFunction · 0.85

Tested by

no test coverage detected