summaryrefslogtreecommitdiffstats
path: root/gtk/src/callbacks.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2008-08-15 23:06:39 +0000
committerjstebbins <[email protected]>2008-08-15 23:06:39 +0000
commit6fd3019982345aab5431f36ab844eba90552e1e4 (patch)
tree1c4024a8de19b9d37108aea38265a1e41d2a5107 /gtk/src/callbacks.c
parent513a89ca336fc9322b42135577a278584df9c684 (diff)
LinGui: fix a couple problems with the preset translation tool
change my presets file to use the settings generated by the translation tool also tidy up a display problem with x264 options git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1632 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r--gtk/src/callbacks.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 8a95722d8..df6a17b55 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -1458,10 +1458,17 @@ x264_entry_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
GtkWidget *textview;
textview = GTK_WIDGET(GHB_WIDGET(ud->builder, "x264_options"));
ghb_widget_to_setting(ud->settings, textview);
- const gchar *options;
- options = ghb_settings_get_string(ud->settings, "x264_options");
+ gchar *options;
+ options = (gchar*)ghb_settings_get_string(ud->settings, "x264_options");
ignore_options_update = TRUE;
ghb_x264_parse_options(ud, options);
+ if (!GTK_WIDGET_HAS_FOCUS(textview))
+ {
+ options = ghb_sanitize_x264opts(ud, options);
+ ghb_ui_update(ud, "x264_options", options);
+ ghb_x264_parse_options(ud, options);
+ g_free(options);
+ }
ignore_options_update = FALSE;
}
}