You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated GpuPage UI:
- Added AdwViewStack and title + switcher bar for the new views
- There are some commented out defaults here for my sanity
Updated gschema XML:
- Added "viewconfigs" string list key with some defaults: UUID:viewposition:View Title
- Added "pageconfigs" string list key with some defaults: UUID:View Title:Property Position:Property ID
- Removed unused keys "settingsconfig", "smiconfig", "settingsandsmiconfig", "optimusconfig"
Updated GpuPage class:
- Removed unused imports
- Added "refreshid" struct member, a u32 value that is either 0 or some SourceId value
- Added "view_stack" template_child struct member, holds the views of each GpuPage
- Added "add_stack_item()" function in GpuPage trait for appending a view item to the stack
- Updated "constructed()" function in ObjectImpl trait to set new "refreshid" struct member to "0" (i.e. no ID stored)
- Updated "property()","set_property()" and "properties()" functions for new "refreshid" struct member
- Added "load_views()" function that loads all saved views from settings, then calls functions to populate
- Added "check_properties_for_view()" function that uses passed view title, returns list of saved properties
- Added "create_properties()" function that adds labels (of properties) to a passed grid and a recurring closure to fill them, returns the grid afterwards (stores the ID of the recurring closure in new "refreshid" struct member to allow removal of this closure!)
- Refactored "setup_widgets()" into the above functions, added (currently mostly empty) closure for edit_button "clicked" signal: to be updated for ModificationWindow class. At the moment only re-runs "load_views()" function
Signed-off-by: Deren Vural <[email protected]>
0 commit comments