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

Function dest_file_changed_cb

gtk/src/callbacks.c:2068–2087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2066}
2067
2068G_MODULE_EXPORT void
2069dest_file_changed_cb (GtkEntry *entry, gpointer data)
2070{
2071 const gchar *dest_file, *dest_dir;
2072 gchar *dest;
2073 signal_user_data_t *ud = ghb_ud();
2074
2075 ghb_log_func();
2076 ghb_update_destination_extension(ud);
2077 ghb_widget_to_setting(ud->settings, (GtkWidget*)entry);
2078 // This signal goes off with ever keystroke, so I'm putting this
2079 // update on the timer.
2080 dest_file = ghb_dict_get_string(ud->settings, "dest_file");
2081 dest_dir = ghb_dict_get_string(ud->settings, "dest_dir");
2082 dest = g_strdup_printf("%s" G_DIR_SEPARATOR_S "%s", dest_dir, dest_file);
2083 ghb_dict_set_string(ud->settings, "destination", dest);
2084 GhbValue *dest_dict = ghb_get_job_dest_settings(ud->settings);
2085 ghb_dict_set_string(dest_dict, "File", dest);
2086 g_free(dest);
2087}
2088
2089static void
2090destination_response_cb(GtkFileChooser *chooser,

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