summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-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);