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

ScreenshotWindow: GTK 4 prep #274

Merged
merged 4 commits into from
Nov 13, 2023
Merged

Conversation

danirabbit
Copy link
Member

  • There's no keep above or stick in GTK 4/Wayland so remove those
  • Create images separately from radiobuttons. We'll need this in GTK 4 to parent these in the radiobutton and it makes swapping the icon simpler for the whole window screenshot image
  • There's no show_all or no_show_all so change the way we choose not to show redact option. Also present dialog not show_all
  • Replace boxes with grids
  • ButtonBox is gone in GTK 4, so use a homogeneous box
  • Use child property
  • We can't position windows ourselves in GTK 4/Wayland so remove that. Gala branch exists to fix this anyways so no loss
  • Code style

@danirabbit danirabbit requested a review from a team October 11, 2023 18:03
@@ -195,6 +195,7 @@ public class Screenshot.SaveDialog : Granite.Dialog {
content.add (format_cmb);
content.add (location_label);
content.add (location_button);
content.show_all ();
Copy link
Contributor

Choose a reason for hiding this comment

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

Does GTK4 still have show_all for some things?

Copy link
Member Author

Choose a reason for hiding this comment

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

@zeebok It doesn't, but we still need it in GTK 3 to show things packed into the dialog content area. I think dialog.run contains a show_all so we need to temporarily add it here when replacing with dialog.present

@danirabbit danirabbit merged commit ea84b7b into master Nov 13, 2023
3 checks passed
@danirabbit danirabbit deleted the danirabbit/screenshotwindow-gtk4prep branch November 13, 2023 15:31
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