Managed GUI access
Bug #526989 reported by
Mathias Brodala
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Confirmed
|
Medium
|
Unassigned |
Bug Description
The current mess of any piece of code accessing GUI controls in various ways desperately needs to be cleaned up.
Thus we are in need of a proper API of some kind. On suggestion would be to add some kind of GUI/Control manager which lets any piece of code in Exaile’s codebase register named GUI objects which should then be accessed only using this manager.
It should also be considered to make use of the existing providers framework for this. How exactly this could work out needs to be checked and verified.
Pseudo code:
GUIMANAGER.
# …
GUIMANAGER.
To post a comment you must log in.
Not a bad idea, though we'll want to take care to keep this as ui-neutral as possible (ie. no gtk-isms). I'd also still like to have some form of non-ui- toolkit- specific api for things like menus and settings (and simple dialogs? progress indicators?) that generally don't need custom widgets.