Replace "Continue" with "ControlFlow"
Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/620>
This commit is contained in:
		
				
					committed by
					
						
						Marge Bot
					
				
			
			
				
	
			
			
			
						parent
						
							df6221ae92
						
					
				
				
					commit
					aa513b5cd9
				
			@ -10,7 +10,7 @@ use crate::data::loading;
 | 
			
		||||
use crate::event_loop;
 | 
			
		||||
use crate::panel;
 | 
			
		||||
use crate::state;
 | 
			
		||||
use glib::{Continue, MainContext, PRIORITY_DEFAULT, Receiver};
 | 
			
		||||
use glib::{ControlFlow, MainContext, PRIORITY_DEFAULT, Receiver};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mod c {
 | 
			
		||||
@ -163,7 +163,7 @@ mod c {
 | 
			
		||||
                    hint_manager,
 | 
			
		||||
                    dbus_handler,
 | 
			
		||||
                );
 | 
			
		||||
                Continue(true)
 | 
			
		||||
                ControlFlow::Continue
 | 
			
		||||
            },
 | 
			
		||||
        );
 | 
			
		||||
        #[cfg(not(feature = "glib_v0_14"))]
 | 
			
		||||
 | 
			
		||||
@ -66,7 +66,7 @@ pub mod c {
 | 
			
		||||
        glib::idle_add_local(move || {
 | 
			
		||||
            let panel = panel.clone_ref();
 | 
			
		||||
            panel.borrow_mut().set_configured(Size{width, height});
 | 
			
		||||
            glib::Continue(false)
 | 
			
		||||
            glib::ControlFlow::Break
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -376,6 +376,6 @@ pub fn show(
 | 
			
		||||
    menu.bind_model(Some(&model), Some("popup"));
 | 
			
		||||
    glib::idle_add_local(move || {
 | 
			
		||||
        menu.popup();
 | 
			
		||||
        Continue(false)
 | 
			
		||||
        glib::ControlFlow::Break
 | 
			
		||||
    });
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user