What I would like to have is a list of page sizes plus an option for a custom page size, very similar to the current "Document properties" tab within Inkscape. In this tab the value for the page size that is displayed in the "custom page size" input fields is automatically updated when a new page size is selected from the preset menu (A3, A4, ...etc). I would like to create the same effect for the widget for my extension, that is, update the input fields in the widget each time a new page size preset is selected.
I would like to create a widget for an extension what uses the <optiongroup> to display page size.
so something like:
What I would like to have is a list of page sizes plus an option for a custom page size, very similar to the current "Document properties" tab within Inkscape. In this tab the value for the page size that is displayed in the "custom page size" input fields is automatically updated when a new page size is selected from the preset menu (A3, A4, ...etc).
I would like to create the same effect for the widget for my extension, that is, update the input fields in the widget each time a new page size preset is selected.
How can I achieve this kind of behaviuor ?