OSDN Git Service

LinGui: initialize picture width/height, even when there is no valid title
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 24 Jun 2010 21:43:40 +0000 (21:43 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Thu, 24 Jun 2010 21:43:40 +0000 (21:43 +0000)
the ui widgets were just being set to 0 till a title was loaded.

git-svn-id: svn://localhost/HandBrake/trunk@3404 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/presets.c

index 86b99f6..3ac4606 100644 (file)
@@ -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);
+               }
        }
 }