Skip to content
This repository has been archived by the owner. It is now read-only.

Port cairo_threads example to use the new GLib MainContext channel in… #222

Merged
merged 1 commit into from Jan 25, 2019
Merged

Port cairo_threads example to use the new GLib MainContext channel in… #222

merged 1 commit into from Jan 25, 2019

Conversation

@sdroege
Copy link
Member

@sdroege sdroege commented Jan 25, 2019

…stead of polling

This ensures that the image is redrawn only if it actually changed and
more or less immediately after it has changed instead of waiting up to
100ms.


Needs gtk-rs/glib#430 merged first and then the Cargo.toml changes have to be dropped.

@GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Jan 25, 2019

👍

cc @EPashkin

src/bin/cairo_threads.rs Outdated Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
@EPashkin
Copy link
Member

@EPashkin EPashkin commented Jan 25, 2019

@sdroege Thanks.

@sdroege
Copy link
Member Author

@sdroege sdroege commented Jan 25, 2019

Updated

…stead of polling

This ensures that the image is redrawn only if it actually changed and
more or less immediately after it has changed instead of waiting up to
100ms.
@EPashkin
Copy link
Member

@EPashkin EPashkin commented Jan 25, 2019

CI passed

@GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Jan 25, 2019

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit f647dd5 into gtk-rs:pending Jan 25, 2019
2 checks passed
2 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants