Problem
Given that, eventually, we want to add functionality on either at the application-level and/or top-level instances, such as #838, we'd want a way to make use of those features as easy as possible to use, by providing custom instances. This could also help us handle application-level bugs such as #874. Having a Gtk.Application subclass would also give application developers the opportunity to avoid manually initializing Granite, as they'll be able to just use the subclass.
Proposal
We'd want to have a subclass of Gtk.Application (application-level) and Gtk.ApplicationWindow (top-level window) to open up more possibilities to handle these issues.
Prior Art (Optional)
Gtk.Application subclasses
Gtk.ApplicationWindow subclasses
ShortcutsWindow / CommandPalette
For #838, some inspiration:
Problem
Given that, eventually, we want to add functionality on either at the application-level and/or top-level instances, such as #838, we'd want a way to make use of those features as easy as possible to use, by providing custom instances. This could also help us handle application-level bugs such as #874. Having a Gtk.Application subclass would also give application developers the opportunity to avoid manually initializing Granite, as they'll be able to just use the subclass.
Proposal
We'd want to have a subclass of Gtk.Application (application-level) and Gtk.ApplicationWindow (top-level window) to open up more possibilities to handle these issues.
Prior Art (Optional)
Gtk.Application subclasses
Gtk.ApplicationWindow subclasses
ShortcutsWindow / CommandPalette
For #838, some inspiration: