Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #769 from ids1024/get_state
Browse files Browse the repository at this point in the history
gdk: Fix binding for `gdk_event_get_state`
  • Loading branch information
sdroege authored Aug 29, 2022
2 parents e2ce2a8 + 2236682 commit 862d534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdk/src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ impl Event {
unsafe { from_glib(ffi::gdk_event_is_scroll_stop_event(self.to_glib_none().0)) }
}

#[doc(alias = "gdk_event_get_scroll_direction")]
#[doc(alias = "gdk_event_get_state")]
#[doc(alias = "get_state")]
pub fn state(&self) -> Option<ModifierType> {
unsafe {
let mut state = mem::MaybeUninit::uninit();
if from_glib(ffi::gdk_event_get_scroll_direction(
if from_glib(ffi::gdk_event_get_state(
self.to_glib_none().0,
state.as_mut_ptr(),
)) {
Expand Down

0 comments on commit 862d534

Please sign in to comment.