Skip to content

Port to GTK4#645

Draft
danirabbit wants to merge 58 commits intomasterfrom
danirabbit/gtk4
Draft

Port to GTK4#645
danirabbit wants to merge 58 commits intomasterfrom
danirabbit/gtk4

Conversation

@danirabbit
Copy link
Copy Markdown
Member

@danirabbit danirabbit commented May 28, 2025

Fixes #88
Fixes #488
Fixes #560

Todo:

  • Focus in event in GridView
  • Arrow navigation in GridView

@danirabbit danirabbit moved this to In Progress in GTK4 Porting May 28, 2025
public override void execute (Match? match) {
var context = Gdk.Display.get_default ().get_app_launch_context ();
context.set_timestamp (Gtk.get_current_event_time ());
context.set_timestamp (Gdk.CURRENT_TIME);
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.

from Marukesu:

In gtk4, we have Gtk.EventController.get_current_event_time(), so it's better to leave this as it is now or refactor the code to pass the time from the event handlers to the methods.

Comment thread src/Backend/App.vala

var context = Gdk.Display.get_default ().get_app_launch_context ();
context.set_timestamp (Gtk.get_current_event_time ());
context.set_timestamp (Gdk.CURRENT_TIME);
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.

from Marukesu:

In gtk4, we have Gtk.EventController.get_current_event_time(), so it's better to leave this as it is now or refactor the code to pass the time from the event handlers to the methods.

@danirabbit danirabbit added this to OS 9 Jan 13, 2026
@danirabbit danirabbit moved this to In progress in OS 9 Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress
Status: In progress

Development

Successfully merging this pull request may close these issues.

Port to GTK4 Incorrect placement of tooltip Search field placeholder is only visible while the app menu is fading out

2 participants