GNOME Bugzilla – Bug 657393
[gstwidget] Clear button does not reset text fields
Last modified: 2012-04-08 13:25:56 UTC
If I click the reset/clear button in the advanced codec properties, text fields such as the "Statistics Filename" (in the case of the xvid codec) are not reset to their default value (such as "xvid-stats.log").
Created attachment 211072 [details] [review] Attaching a quick fix for the string types. The default value is not set in case of a String. So setting it.
The patch is for pitivi built using GES.
Review of attachment 211072 [details] [review]: Hi, the python convention is to use 1 tab = 4 spaces, so you have to set your text editor to use 4 spaces or it will break. Also, the proposed fix doesn't work from my testing (and from a theoretical point of view, setWidgetValue is not the place where you would set a default value, it would get overriden everytime).
The problem *might* be in the make_property_widget method, or something to do with GstElementSettingsWidget.
Created attachment 211221 [details] [review] Passing default value to TextWidget The problem was indeed with make_property_widget. Passing the default value of the string to the TextWidget clears the property to its default value.
Review of attachment 211221 [details] [review]: Hi, your patch needs to be rebased on ges (it is based on master). Also, it does not actually fix the problem, something else must be missing.
I found the complete fix, pushed as da1b9a217.