diff options
Diffstat (limited to 'gtk/src/callbacks.c')
-rw-r--r-- | gtk/src/callbacks.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index e634e0a28..516f33aab 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -976,6 +976,13 @@ show_title_info(signal_user_data_t *ud, ghb_title_info_t *tinfo) ghb_ui_update(ud, "crop_left", ghb_int64_value(tinfo->crop[2])); ghb_ui_update(ud, "crop_right", ghb_int64_value(tinfo->crop[3])); } + else + { + ghb_ui_update(ud, "crop_top", ghb_int64_value(0)); + ghb_ui_update(ud, "crop_bottom", ghb_int64_value(0)); + ghb_ui_update(ud, "crop_left", ghb_int64_value(0)); + ghb_ui_update(ud, "crop_right", ghb_int64_value(0)); + } g_debug("setting max end chapter %d", tinfo->num_chapters); widget = GHB_WIDGET (ud->builder, "end_chapter"); gtk_spin_button_set_range (GTK_SPIN_BUTTON(widget), 1, tinfo->num_chapters); @@ -1038,8 +1045,7 @@ title_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { ghb_title_info_t tinfo; gint titleindex; - gchar *preset; - gchar *folder; + GValue *preset; g_debug("title_changed_cb ()"); ghb_widget_to_setting(ud->settings, widget); @@ -1049,11 +1055,8 @@ title_changed_cb(GtkWidget *widget, signal_user_data_t *ud) ghb_update_ui_combo_box (ud->builder, "audio_track", titleindex, FALSE); ghb_update_ui_combo_box (ud->builder, "subtitle_lang", titleindex, FALSE); - preset = ghb_settings_get_string (ud->settings, "preset"); - folder = ghb_settings_get_string (ud->settings, "folder"); - ghb_update_from_preset(ud, folder, preset, "subtitle_lang"); - g_free(preset); - g_free(folder); + preset = ghb_settings_get_value (ud->settings, "preset"); + ghb_update_from_preset(ud, preset, "subtitle_lang"); if (ghb_get_title_info (&tinfo, titleindex)) { show_title_info(ud, &tinfo); |