1
1
// Take a look at the license at the top of the repository in the LICENSE file.
2
2
3
3
use gdk:: Rectangle ;
4
- pub use glib:: signal:: Inhibit ;
5
4
use glib:: signal:: SignalHandlerId ;
6
5
7
6
use crate :: { ScrollType , Widget } ;
@@ -141,7 +140,7 @@ pub trait SpinButtonSignals: 'static {
141
140
F : Fn ( & Self ) -> Option < Result < f64 , ( ) > > + ' static ;
142
141
fn connect_output < F > ( & self , output_func : F ) -> SignalHandlerId
143
142
where
144
- F : Fn ( & Self ) -> Inhibit + ' static ;
143
+ F : Fn ( & Self ) -> glib :: ControlFlow + ' static ;
145
144
fn connect_value_changed < F > ( & self , value_changed_func : F ) -> SignalHandlerId
146
145
where
147
146
F : Fn ( & Self ) + ' static ;
@@ -151,7 +150,6 @@ pub trait SpinButtonSignals: 'static {
151
150
}
152
151
153
152
mod spin_button {
154
- use crate :: Inhibit ;
155
153
use crate :: ScrollType ;
156
154
use crate :: SpinButton ;
157
155
use ffi:: { GtkScrollType , GtkSpinButton , GTK_INPUT_ERROR } ;
@@ -202,7 +200,7 @@ mod spin_button {
202
200
203
201
fn connect_output < F > ( & self , output_func : F ) -> SignalHandlerId
204
202
where
205
- F : Fn ( & Self ) -> Inhibit + ' static ,
203
+ F : Fn ( & Self ) -> glib :: ControlFlow + ' static ,
206
204
{
207
205
unsafe {
208
206
let f: Box < F > = Box :: new ( output_func) ;
@@ -283,7 +281,7 @@ mod spin_button {
283
281
}
284
282
}
285
283
286
- unsafe extern "C" fn output_trampoline < T , F : Fn ( & T ) -> Inhibit + ' static > (
284
+ unsafe extern "C" fn output_trampoline < T , F : Fn ( & T ) -> glib :: ControlFlow + ' static > (
287
285
this : * mut GtkSpinButton ,
288
286
f : & F ,
289
287
) -> gboolean
0 commit comments