New GimpProcedureDialog API: gimp_procedure_get_size_entry
A lot of plug-ins use GimpSizeEntry
. As part of the port, I've added a new function gimp_procedure_get_size_entry()
so this can be done through GimpProcedureDialog API instead. The second commit shows an implementation with the border-average plug-in.
@Jehan: Hello! Another question when you have time:
- I used the same parameters for this as
gimp_prop_size_entry_new ()
. Do you want any changes to this (e.g. should I set a defaultGimpSizeEntryUpdatePolicy
rather than having that as a parameter)?2) I was getting a critical message whenever the dialogue opened with GIMP_UNIT_PIXEL set for the units. I added a check inResolved after our IRC discussion.gimppropwidgets.c
to preventgimp_unit_get_scaled_digits ()
from being called for pixels. I saw your comment here (f705bfb3) and wondered if this was the right place to put that check, or should it go in libgimpbase/gimpunit.c?
Edited by Alx Sa