diff options
author | jstebbins <[email protected]> | 2010-06-24 21:43:40 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-06-24 21:43:40 +0000 |
commit | 79cf721b8b77a102e481abfae2132fdaac0ccffd (patch) | |
tree | 27ff04091d906e872bff0af11c5d40948ff642ff /gtk/src | |
parent | c0fa278e9bb3ba2cc9ae61d604babc15e63fe655 (diff) |
LinGui: initialize picture width/height, even when there is no valid title
the ui widgets were just being set to 0 till a title was loaded.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3404 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/presets.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gtk/src/presets.c b/gtk/src/presets.c index 86b99f6e0..3ac4606f3 100644 --- a/gtk/src/presets.c +++ b/gtk/src/presets.c @@ -918,6 +918,16 @@ preset_to_ui(signal_user_data_t *ud, GValue *dict) dd = ghb_value_boolean(val); ghb_ui_update(ud, "PictureDeinterlaceDecomb", ghb_boolean_value(!dd)); } + val = ghb_dict_lookup(dict, "PictureHeight"); + if (val != NULL) + { + ghb_ui_update(ud, "scale_height", val); + } + val = ghb_dict_lookup(dict, "PictureWidth"); + if (val != NULL) + { + ghb_ui_update(ud, "scale_width", val); + } } } |