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

Introduce a CanvasActor #1864

Merged
merged 6 commits into from
Feb 24, 2024
Merged

Introduce a CanvasActor #1864

merged 6 commits into from
Feb 24, 2024

Conversation

leolost2605
Copy link
Member

Introduce a CanvasActor.
CanvasActor is an actor that has a Clutter.Canvas as a content and handles setting its scale and size automatically.
This has some advantages:

  1. We dont repeat the same logic regarding setting size, scale etc. everywhere
  2. It allows us to easily move away from Clutter.Canvas (see Update Mutter 46 support #1856) without encountering the vala bug. That's because we only need a single #HAS_MUTTER_46 where we use our own canvas instead of a clutter canvas.

@leolost2605 leolost2605 requested review from a team and tintou February 24, 2024 13:07
@leolost2605 leolost2605 merged commit f534fea into master Feb 24, 2024
4 checks passed
@leolost2605 leolost2605 deleted the leolost/canvas-actor branch February 24, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants