summaryrefslogtreecommitdiffstats
path: root/gtk/src/presets.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-11-26 16:23:23 +0000
committerjstebbins <[email protected]>2008-11-26 16:23:23 +0000
commitb69a2ae27d28eba72585246bc810de0ea0d33886 (patch)
treeb753074abf11464925132d55a95f9a550ee7970a /gtk/src/presets.c
parent54c7e6f7e9f5c2bb57fcca2808fce07aaf0589c9 (diff)
LinGui: add a file chooser button for the dest directory. dest file is
separated with its own entry box. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1955 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/presets.c')
-rw-r--r--gtk/src/presets.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c
index f7504d681..4153e38e4 100644
--- a/gtk/src/presets.c
+++ b/gtk/src/presets.c
@@ -1177,12 +1177,14 @@ ghb_prefs_to_ui(signal_user_data_t *ud)
}
gval = ghb_settings_get_value(ud->settings, "default_source");
ghb_settings_set_value (ud->settings, "source", gval);
+
str = ghb_settings_get_string(ud->settings, "destination_dir");
+ ghb_ui_update(ud, "dest_dir", ghb_string_value(str));
- gchar *path = g_strdup_printf ("%s/new_video.mp4", str);
- ghb_ui_update(ud, "destination", ghb_string_value(path));
+ gchar *file = g_strdup_printf ("new_video.mp4");
+ ghb_ui_update(ud, "dest_file", ghb_string_value(file));
g_free(str);
- g_free(path);
+ g_free(file);
prefs_initializing = FALSE;
}