Skip to content

WallpaperContainer: set uri, all the context menu controllers#478

Merged
danirabbit merged 2 commits intomainfrom
danirabbit/wallpapercontainer-morecontextmenu
Jan 28, 2026
Merged

WallpaperContainer: set uri, all the context menu controllers#478
danirabbit merged 2 commits intomainfrom
danirabbit/wallpapercontainer-morecontextmenu

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented Jan 14, 2026

This makes uri settable which we need for recycling widgets in #470

While we're here, copy the context menu code from elementary/granite#826 so we can activate the menu with keyboard button, long press on touch, etc

@danirabbit danirabbit requested a review from a team January 14, 2026 20:10
@danirabbit danirabbit moved this to Needs review in OS 8.1.1 Jan 14, 2026
@jeremypw
Copy link
Collaborator

Just wondering whether it is possible to provide the Granite context menu stuff as an interface rather than tied to ListItem in order to avoid copying code?

@danirabbit
Copy link
Member Author

@jeremypw yeah I agree I'd like to do that in the future if possible. Probably I'll make like a Granite.GridItem or add a menu_model property to another widget and that'll be the opportunity to abstract it and make that abstraction public

@danirabbit danirabbit enabled auto-merge (squash) January 28, 2026 17:58
@danirabbit danirabbit merged commit 7e9b398 into main Jan 28, 2026
4 checks passed
@danirabbit danirabbit deleted the danirabbit/wallpapercontainer-morecontextmenu branch January 28, 2026 17:58
@github-project-automation github-project-automation bot moved this from Needs review to Done in OS 8.1.1 Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants