summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-10-05 22:03:09 +0000
committerjstebbins <[email protected]>2008-10-05 22:03:09 +0000
commitc1fa8a9521bb2401ffd9a1d09afaed7f436216af (patch)
treead99226bb818abf2993e09b482a365f9c3f5ad30 /gtk/src/callbacks.c
parent621d71fdc4bce76ad561968f15fc205698bd6f40 (diff)
LinGui: nested presets and drag n drop re-ordering of presets
adding a preset always places it at the top level. drag it to where you want it. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1816 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 985c1e11f..e634e0a28 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -1039,6 +1039,7 @@ title_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
ghb_title_info_t tinfo;
gint titleindex;
gchar *preset;
+ gchar *folder;
g_debug("title_changed_cb ()");
ghb_widget_to_setting(ud->settings, widget);
@@ -1049,8 +1050,10 @@ title_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
ghb_update_ui_combo_box (ud->builder, "subtitle_lang", titleindex, FALSE);
preset = ghb_settings_get_string (ud->settings, "preset");
- ghb_update_from_preset(ud, preset, "subtitle_lang");
+ folder = ghb_settings_get_string (ud->settings, "folder");
+ ghb_update_from_preset(ud, folder, preset, "subtitle_lang");
g_free(preset);
+ g_free(folder);
if (ghb_get_title_info (&tinfo, titleindex))
{
show_title_info(ud, &tinfo);