granite
granite copied to clipboard
Expose clock format as granite setting
This builds on #527 , but also solves some needs in #525
This:
- exposes the clock format as setting in Granite.Settings, including listening from updates, using the portal. This also allows applications to notify on the update even inside a flatpak'ed application
- updates internal APIs and widgets to use the new setting, including listening on updates. This magically makes applications work inside flatpak as well as makes them more dynamic (i.e., when the system setting is changed, reflect that change instantly)
- adds a new API to format a GLib.DateTime directly using the existing APIs and the system settings so that applications don't have to duplicate the format logic everywhere.
@jhaygood86 is this still necessary after the other datetime/portals stuff was merged? If so, can you resolve conflicts?
Rebase onto changes from portal refactoring
@danrabbit It'll still be useful. I've adjusted to account for the new Portal.Settings class being available.