File tree Expand file tree Collapse file tree 2 files changed +9
-17
lines changed
Expand file tree Collapse file tree 2 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ generate = [
5252 " Gdk.PaintableFlags" ,
5353 " Gdk.ProximityEvent" ,
5454 " Gdk.ScrollDirection" ,
55- " Gdk.ScrollEvent" ,
5655 " Gdk.ScrollRelativeDirection" ,
5756 " Gdk.ScrollUnit" ,
5857 " Gdk.SeatCapabilities" ,
@@ -650,6 +649,15 @@ boxed_inline = true
650649 name = " print"
651650 ignore = true # This is a C helper
652651
652+ # TODO Revert this commit once the gir files contain
653+ # https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/9195.
654+ [[object ]]
655+ name = " Gdk.ScrollEvent"
656+ status = " generate"
657+ [[object .function ]]
658+ name = " get_relative_direction"
659+ ignore = true
660+
653661[[object ]]
654662name = " Gdk.Seat"
655663status = " generate"
Original file line number Diff line number Diff line change 22// from gir-files (https://github.com/gtk-rs/gir-files)
33// DO NOT EDIT
44
5- #[ cfg( feature = "v4_20" ) ]
6- #[ cfg_attr( docsrs, doc( cfg( feature = "v4_20" ) ) ) ]
7- use crate :: ScrollRelativeDirection ;
85#[ cfg( feature = "v4_8" ) ]
96#[ cfg_attr( docsrs, doc( cfg( feature = "v4_8" ) ) ) ]
107use crate :: ScrollUnit ;
@@ -61,17 +58,4 @@ impl ScrollEvent {
6158 pub fn is_stop ( & self ) -> bool {
6259 unsafe { from_glib ( ffi:: gdk_scroll_event_is_stop ( self . to_glib_none ( ) . 0 ) ) }
6360 }
64-
65- #[ cfg( feature = "v4_20" ) ]
66- #[ cfg_attr( docsrs, doc( cfg( feature = "v4_20" ) ) ) ]
67- #[ doc( alias = "gdk_scroll_event_get_relative_direction" ) ]
68- #[ doc( alias = "get_relative_direction" ) ]
69- pub fn relative_direction ( event : ScrollRelativeDirection ) -> ScrollRelativeDirection {
70- assert_initialized_main_thread ! ( ) ;
71- unsafe {
72- from_glib ( ffi:: gdk_scroll_event_get_relative_direction (
73- event. into_glib ( ) ,
74- ) )
75- }
76- }
7761}
You can’t perform that action at this time.
0 commit comments