Skip to content

EventMenu: use GLib.Action#869

Merged
danirabbit merged 4 commits into
masterfrom
danirabbit/eventmenu-glibaction
Jan 14, 2026
Merged

EventMenu: use GLib.Action#869
danirabbit merged 4 commits into
masterfrom
danirabbit/eventmenu-glibaction

Conversation

@danirabbit

Copy link
Copy Markdown
Member

GTK4 Prep. First step towards eventually using GLib.Menu instead of Gtk.Menu

@danirabbit
danirabbit requested a review from a team November 12, 2025 21:11
@danirabbit danirabbit added this to OS 9 Nov 12, 2025
@danirabbit danirabbit moved this to Needs Review in OS 9 Nov 12, 2025
@danirabbit danirabbit moved this to Needs Review in GTK4 Porting Nov 12, 2025
@danirabbit danirabbit removed this from OS 9 Dec 7, 2025
@danirabbit danirabbit moved this to Needs review in OS 8.1.1 Dec 7, 2025

@leolost2605 leolost2605 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only a minor comment

var action_edit = new GLib.SimpleAction ("edit", null);
action_edit.set_enabled (sensitive);
action_edit.activate.connect (() => {
((Maya.Application) GLib.Application.get_default ()).window.on_modified (comp);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we get the comp via an id or something like that? If so we could move the edit and duplicate actions to the window which would make it a bit cleaner I think

@danirabbit danirabbit Dec 22, 2025

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure it's possible but I couldn't see any easy way to do it so I figured I'd leave a bigger refactoring for later. But I totally agree that would be a lot cleaner

@danirabbit
danirabbit enabled auto-merge (squash) January 14, 2026 15:25
@danirabbit
danirabbit merged commit 6ca663a into master Jan 14, 2026
6 checks passed
@danirabbit
danirabbit deleted the danirabbit/eventmenu-glibaction branch January 14, 2026 15:26
@github-project-automation github-project-automation Bot moved this from Needs Review to Done in GTK4 Porting Jan 14, 2026
@github-project-automation github-project-automation Bot moved this from Needs review to Done in OS 8.1.1 Jan 14, 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
Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants