Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to GTK4 #369

Merged
merged 39 commits into from
Feb 29, 2024
Merged

Port to GTK4 #369

merged 39 commits into from
Feb 29, 2024

Conversation

danirabbit
Copy link
Member

@danirabbit danirabbit commented Jan 8, 2024

#379 will solve some new warnings that come in GTK 4 but it's not strictly necessary to merge it first

@danirabbit danirabbit marked this pull request as ready for review February 24, 2024 00:57
@danirabbit danirabbit requested a review from a team February 24, 2024 00:57
Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

All the layout/syntax changes look good.

However the display widget popover does not close when the "Apply" button is pressed or the background clicked - only when "Esc" is pressed. Then pressing "Apply" applies the changes. This differs from the behaviour of master.

There is also a layout issue when one of the displays is rotated, which is not present in master, the settings menu button is misplaced:

Screenshot from 2024-02-26 13 08 03

@danirabbit
Copy link
Member Author

@jeremypw fixed the button placement issue, but I also noticed since in GTK 4 the button is actually a child widget of MenuButton and MenuButton isn't a button subclass that it breaks some of the CSS here. This should be fixed with #379 so I'll leave that up to you if you think that should be merged first.

It looks like the popover's autohide gets broken when the displaywidget changes, so I have it popdown now when one of these breaking changes would occur. Is that an okay solution? I'm not sure how to solve it otherwise

@danirabbit danirabbit requested a review from jeremypw February 26, 2024 17:22
@jeremypw
Copy link
Collaborator

@danirabbit Could you resolve the conflicts please?

@danirabbit
Copy link
Member Author

@jeremypw done!

Copy link
Collaborator

@jeremypw jeremypw left a comment

Choose a reason for hiding this comment

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

Everything looks good now. Trying to mirror two displays causes a crash but is not associated with changes made here so I'll raise an issue.

@jeremypw jeremypw merged commit 784f33f into master Feb 29, 2024
3 of 4 checks passed
@jeremypw jeremypw deleted the danirabbit/gtk4 branch February 29, 2024 18:39
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.

2 participants