Skip to content

Conversation

@danirabbit
Copy link
Member

@danirabbit danirabbit commented Jan 16, 2026

Can be rebase merged

  • Use GLib.Menu instead of Gtk.MenuItem
  • PopoverMenu is sealed in GTK4, so make this a namespace with a static func to return a menu.
  • While we're here, set item sensitivity when the menu is shown, not when it's constructed. This way we can cache a copy of the menu and don't have to construct a new one every time

@danirabbit danirabbit requested a review from a team January 16, 2026 16:46
@danirabbit danirabbit moved this to Needs Review in GTK4 Porting Jan 16, 2026
@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch from a1c2f4c to 0d6d471 Compare January 16, 2026 17:29
@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch 4 times, most recently from e95ba0f to f33917c Compare January 20, 2026 15:52
@danirabbit
Copy link
Member Author

@leolost2605 can I get a re-review please : )

@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch 3 times, most recently from 51a491c to 32d7218 Compare January 26, 2026 19:19
Fix remove item labels

Fix extra whitespace
Make it a namespace
@danirabbit danirabbit force-pushed the danirabbit/eventmenu-gtk4 branch from 32d7218 to 94dd592 Compare January 26, 2026 20:45
Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

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

Haven't tested but LGTM with the little comment :)


E.Source src = comp.get_data ("source");
menu.popped_up.connect (() => {
var sensitive = src.writable == true && Calendar.EventStore.get_default ().calclient_is_readonly (src) == false;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var sensitive = src.writable == true && Calendar.EventStore.get_default ().calclient_is_readonly (src) == false;
var sensitive = src.writable && !Calendar.EventStore.get_default ().calclient_is_readonly (src);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

3 participants