From 2df5f2410fb8ecd96b0ae048f3b539e885a34a83 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 4 Sep 2014 22:25:13 +0000 Subject: LinGui: fix preset save dialog width&height Fields were not enabled. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6391 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/presets.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'gtk') diff --git a/gtk/src/presets.c b/gtk/src/presets.c index f39721129..01692a68a 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -3706,10 +3706,8 @@ presets_save_clicked_cb(GtkWidget *xwidget, signal_user_data_t *ud) int width = ghb_settings_get_int(ud->settings, "PictureWidth"); int height = ghb_settings_get_int(ud->settings, "PictureHeight"); gboolean autoscale = ghb_settings_get_boolean(ud->settings, "autoscale"); - ghb_ui_update(ud, "PictureWidthEnable", - ghb_boolean_value(width!=0&&!autoscale)); - ghb_ui_update(ud, "PictureHeightEnable", - ghb_boolean_value(height!=0&&!autoscale)); + ghb_ui_update(ud, "PictureWidthEnable", ghb_boolean_value(!autoscale)); + ghb_ui_update(ud, "PictureHeightEnable", ghb_boolean_value(!autoscale)); if (!width) { width = ghb_settings_get_int(ud->settings, "scale_width"); @@ -4350,5 +4348,6 @@ G_MODULE_EXPORT void preset_widget_changed_cb(GtkWidget *widget, signal_user_data_t *ud) { ghb_widget_to_setting(ud->settings, widget); + ghb_check_dependency(ud, widget, NULL); } -- cgit v1.2.3