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

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

Merged
merged 1 commit into from Jan 25, 2019

Conversation

Projects
None yet
3 participants
@sdroege
Copy link
Member

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

This comment has been minimized.

Copy link
Member

GuillaumeGomez commented Jan 25, 2019

👍

cc @EPashkin

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

This comment has been minimized.

Copy link
Member

EPashkin commented Jan 25, 2019

@sdroege Thanks.

@sdroege sdroege force-pushed the sdroege:cairo-main-context-channel branch from 5bc6b5b to 5954433 Jan 25, 2019

@sdroege

This comment has been minimized.

Copy link
Member Author

sdroege commented Jan 25, 2019

Updated

Port cairo_threads example to use the new GLib MainContext channel in…
…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.

@sdroege sdroege force-pushed the sdroege:cairo-main-context-channel branch from 5954433 to 489a7ad Jan 25, 2019

@EPashkin

This comment has been minimized.

Copy link
Member

EPashkin commented Jan 25, 2019

CI passed

@GuillaumeGomez

This comment has been minimized.

Copy link
Member

GuillaumeGomez commented Jan 25, 2019

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit f647dd5 into gtk-rs:pending Jan 25, 2019

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 join this conversation on GitHub. Already have an account? Sign in to comment