PintaProject / Pinta

Simple GTK# Paint Program
http://www.pinta-project.com/
MIT License
1.74k stars 267 forks source link

Refactored control creation in constructor of `NewImageDialog` #861

Closed Lehonti closed 3 weeks ago

Lehonti commented 3 weeks ago

I've identified some patterns used in the creation of dialogs, which I've abstracted into methods. I plan to move these methods to GtkExtensions (or some other class, as appropriate) in a future pull request, and then get other dialog classes to use them. The end goal would be having a convenient way to lay items out and effortlessly have a consistent visual style throughout the application.

cameronwhite commented 3 weeks ago

👍 I'd probably suggest another class since there's already a lot in GtkExtensions, and that class should stay closer to just having simple extension methods and replacements for old GTK 2 / 3 things