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

core: Make the CogView.viewport property only readable #674

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

aperezdc
Copy link
Member

Remove the G_PARAM_CONSTRUCT flag from the CogView.viewport property, because it it supposed to be only readable and it the viewport is set in a separate step separate from view construction by using cog_viewport_add(). It would be technically possible to allow setting the viewport at construction time, but that would need some additional support code it would use G_PARAM_CONSTRUCT_ONLY. For now it is easier to remove the flag.

Remove the G_PARAM_CONSTRUCT flag from the CogView.viewport property,
because it it supposed to be only readable and it the viewport is
set in a separate step separate from view construction by using
cog_viewport_add(). It would be technically possible to allow setting
the viewport at construction time, but that would need some additional
support code it would use G_PARAM_CONSTRUCT_ONLY. For now it is easier
to remove the flag.
@aperezdc aperezdc added the bug Something isn't working label Nov 23, 2023
@aperezdc aperezdc requested a review from psaavedra November 23, 2023 13:32
@aperezdc aperezdc self-assigned this Nov 23, 2023
@aperezdc aperezdc merged commit 24c6be7 into master Nov 23, 2023
5 checks passed
@aperezdc aperezdc deleted the aperezdc/fix-viewport-pspec branch November 23, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants