summaryrefslogtreecommitdiffstats
path: root/gtk/src/videohandler.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2015-03-25 21:32:07 +0000
committerjstebbins <[email protected]>2015-03-25 21:32:07 +0000
commit9a096f1644decc529b00e5bbd288668cf6ed36b5 (patch)
treeff1c74aa5a3dcf98e1fff74998028e7c76ee7758 /gtk/src/videohandler.c
parent4ee00c554b11d543fb1ad1d27dcd0369e4a280b3 (diff)
LinGui: work around yet another gtk+-3 bug
GtkTextView gets confused if you try to set it's contents again while in a callback for a change to the TextView. So prevent such behavior by the app. Requires updating the x264Option TextView in the background (idle loop) rather than immediately. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7013 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/videohandler.c')
-rw-r--r--gtk/src/videohandler.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/src/videohandler.c b/gtk/src/videohandler.c
index 8a5e16591..94845442d 100644
--- a/gtk/src/videohandler.c
+++ b/gtk/src/videohandler.c
@@ -20,6 +20,7 @@
#include "presets.h"
#include "preview.h"
#include "hb-backend.h"
+#include "x264handler.h"
int ghb_get_video_encoder(GhbValue *settings)
{
@@ -165,9 +166,9 @@ ghb_video_setting_changed(GtkWidget *widget, signal_user_data_t *ud)
new_opts = hb_x264_param_unparse(
preset, tunes, opts, profile, level, w, h);
if (new_opts)
- ghb_ui_update(ud, "x264Option", ghb_string_value(new_opts));
+ ghb_update_x264Option(ud, new_opts);
else
- ghb_ui_update(ud, "x264Option", ghb_string_value(""));
+ ghb_update_x264Option(ud, "");
GtkWidget *eo = GTK_WIDGET(GHB_WIDGET(ud->builder, "VideoOptionExtra"));