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

Add Event::new #216

Merged
merged 1 commit into from Apr 15, 2018

Conversation

Projects
None yet
2 participants
@GuillaumeGomez
Copy link
Member

GuillaumeGomez commented Apr 15, 2018

@@ -25,6 +25,11 @@ glib_wrapper! {
}

impl Event {
/// Creates a new event.
pub fn new(type_: EventType) -> Event {
unsafe { from_glib_none(ffi::gdk_event_new(type_.to_glib())) }

This comment has been minimized.

@EPashkin

EPashkin Apr 15, 2018

Member

CI says that assert_initialized_main_thread!(); need here.

@EPashkin

This comment has been minimized.

Copy link
Member

EPashkin commented Apr 15, 2018

Thanks.
Only small nit from me.

@GuillaumeGomez GuillaumeGomez force-pushed the GuillaumeGomez:event-new branch from 4bb6a86 to c338bba Apr 15, 2018

@GuillaumeGomez

This comment has been minimized.

Copy link
Member Author

GuillaumeGomez commented Apr 15, 2018

Ok, let's see if CI is happy now!

@GuillaumeGomez GuillaumeGomez merged commit 2b525d5 into gtk-rs:master Apr 15, 2018

2 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@GuillaumeGomez GuillaumeGomez deleted the GuillaumeGomez:event-new branch Apr 15, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.