| 2032 | } |
| 2033 | |
| 2034 | static void |
| 2035 | update_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 | |
| 2049 | G_MODULE_EXPORT void |
| 2050 | dest_dir_set_cb (GhbFileButton *dest_chooser, GParamSpec *pspec, gpointer data) |
no test coverage detected