| 2066 | } |
| 2067 | |
| 2068 | G_MODULE_EXPORT void |
| 2069 | dest_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 | |
| 2089 | static void |
| 2090 | destination_response_cb(GtkFileChooser *chooser, |
nothing calls this directly
no test coverage detected