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

screenshot: Forward to modality to access dialog #1599

Merged
merged 2 commits into from
Jan 27, 2025

Conversation

Sodivad
Copy link
Contributor

@Sodivad Sodivad commented Jan 23, 2025

No description provided.

Copy link
Member

@GeorgesStavracas GeorgesStavracas left a comment

Choose a reason for hiding this comment

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

LGTM, just one small nit

src/screenshot.c Outdated Show resolved Hide resolved
@swick
Copy link
Contributor

swick commented Jan 23, 2025

I sound a bit like a broken record right now, but we should add tests! This one requires a non-interactive screenshot request which shall result in the access backend getting the right data.

@Sodivad Sodivad force-pushed the screenshot-forward-modal branch 2 times, most recently from 683e186 to 3298737 Compare January 24, 2025 13:45
tests/test_screenshot.py Outdated Show resolved Hide resolved
@Sodivad Sodivad force-pushed the screenshot-forward-modal branch from 3298737 to 25f5087 Compare January 24, 2025 13:51
@swick
Copy link
Contributor

swick commented Jan 24, 2025

https://flatpak.github.io/xdg-desktop-portal/docs/building-and-running.html#testing helps you with enabling git hooks for the python checks/formatting

@swick
Copy link
Contributor

swick commented Jan 24, 2025

Thanks for adding tests!

Needed for testing uninteractive screenshots. This will call the
access portal first called and afterwards the screenshot portal
with the same request handle.
Unexport the request after the access portal is done so the
screenshot portal can export a request at the same path afterwards.
@Sodivad Sodivad force-pushed the screenshot-forward-modal branch from 25f5087 to 59db9ab Compare January 24, 2025 14:04
@Sodivad Sodivad force-pushed the screenshot-forward-modal branch from 59db9ab to ce66423 Compare January 25, 2025 17:09
@swick
Copy link
Contributor

swick commented Jan 27, 2025

Alright, LGTM.

@GeorgesStavracas GeorgesStavracas added this to the 1.20 milestone Jan 27, 2025
@GeorgesStavracas GeorgesStavracas added the portal: screenshot Screenshot portal label Jan 27, 2025
@GeorgesStavracas GeorgesStavracas added this pull request to the merge queue Jan 27, 2025
Merged via the queue into flatpak:main with commit 93211fb Jan 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
portal: screenshot Screenshot portal
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants