summaryrefslogtreecommitdiffstats
path: root/gtk/src
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2014-12-01 17:46:50 +0000
committerjstebbins <[email protected]>2014-12-01 17:46:50 +0000
commit8590673b1f5e8a0440a9e7b0e879e7b73a94f9f7 (patch)
tree5d519cc0886eb874cf9c0144a5de646522aa1e5b /gtk/src
parent70445f0ef7d543fe9b59ee6016cb8099183047b6 (diff)
LinGui: make sure "Plot" tag gets updated before starting encoding
GTK is *really* stupid sometimes. When "Start" is pressed, the button event is activated *before* the focus-out event for the current in-focus widget. So any final changes to that widget are not acted upon till after processing the "Start" button :-\ git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6575 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r--gtk/src/callbacks.c8
-rw-r--r--gtk/src/main.c5
2 files changed, 13 insertions, 0 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c
index 03fa96607..5d260679f 100644
--- a/gtk/src/callbacks.c
+++ b/gtk/src/callbacks.c
@@ -2095,6 +2095,14 @@ meta_setting_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
}
G_MODULE_EXPORT void
+plot_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
+{
+ GtkWidget *textview;
+ textview = GTK_WIDGET(GHB_WIDGET(ud->builder, "MetaLongDescription"));
+ ghb_widget_to_setting(ud->settings, textview);
+}
+
+G_MODULE_EXPORT void
chapter_markers_changed_cb(GtkWidget *widget, signal_user_data_t *ud)
{
ghb_widget_to_setting(ud->settings, widget);
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 588dfa761..08a6f554b 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -701,6 +701,7 @@ watch_volumes(signal_user_data_t *ud)
G_MODULE_EXPORT void x264_entry_changed_cb(GtkWidget *widget, signal_user_data_t *ud);
G_MODULE_EXPORT void video_option_changed_cb(GtkWidget *widget, signal_user_data_t *ud);
+G_MODULE_EXPORT void plot_changed_cb(GtkWidget *widget, signal_user_data_t *ud);
G_MODULE_EXPORT void position_overlay_cb(GtkWidget *widget, signal_user_data_t *ud);
G_MODULE_EXPORT void preview_hud_size_alloc_cb(GtkWidget *widget, signal_user_data_t *ud);
@@ -947,6 +948,10 @@ main(int argc, char *argv[])
buffer = gtk_text_view_get_buffer(textview);
g_signal_connect(buffer, "changed", (GCallback)video_option_changed_cb, ud);
+ textview = GTK_TEXT_VIEW(GHB_WIDGET(ud->builder, "MetaLongDescription"));
+ buffer = gtk_text_view_get_buffer(textview);
+ g_signal_connect(buffer, "changed", (GCallback)plot_changed_cb, ud);
+
ghb_combo_init(ud);
g_debug("ud %p\n", ud);