Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Make AccelGroup::connect() and ::connect_by_path() more usable #915

Merged
merged 1 commit into from
Nov 19, 2019
Merged

Make AccelGroup::connect() and ::connect_by_path() more usable #915

merged 1 commit into from
Nov 19, 2019

Conversation

sdroege
Copy link
Member

@sdroege sdroege commented Nov 19, 2019

By renaming it to connect_accel_group() for preventing conflicts with
Object::connect() and by taking a normal Rust closure with fixed types
as arguments instead of a generic glib::Closure.

Return the generated glib::Closure as it is required for usage with a
few of the other AccelGroup and AccelLabel functions.

Fixes #913


CC @upsuper does this work better for you?

By renaming it to connect_accel_group() for preventing conflicts with
Object::connect() and by taking a normal Rust closure with fixed types
as arguments instead of a generic glib::Closure.

Return the generated glib::Closure as it is required for usage with a
few of the other AccelGroup and AccelLabel functions.

Fixes #913
@EPashkin
Copy link
Member

👍

@sdroege sdroege mentioned this pull request Nov 19, 2019
43 tasks
@sdroege
Copy link
Member Author

sdroege commented Nov 19, 2019

@GuillaumeGomez CI is green :)

@GuillaumeGomez
Copy link
Member

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit e55bd4d into gtk-rs:master Nov 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better AccelGroup support?
3 participants