Commit d599bcea authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Update to gtk4-rs 0.7.1

parent 12cd32ac
use gtk::{glib, prelude::*, subclass::prelude::*}; use gtk::{glib, prelude::*, subclass::prelude::*};
mod imp { mod imp {
use std::cell::RefCell; use std::cell::{OnceCell, RefCell};
use glib::once_cell::sync::OnceCell;
use super::*; use super::*;
......
...@@ -97,13 +97,13 @@ impl PaginatorWidget { ...@@ -97,13 +97,13 @@ impl PaginatorWidget {
} }
#[template_callback] #[template_callback]
fn on_key_pressed(&self, keyval: gdk::Key) -> glib::ControlFlow { fn on_key_pressed(&self, keyval: gdk::Key) -> glib::Propagation {
if keyval == gdk::Key::Right { if keyval == gdk::Key::Right {
self.try_next(); self.try_next();
} else if keyval == gdk::Key::Left { } else if keyval == gdk::Key::Left {
self.try_previous(); self.try_previous();
} }
glib::ControlFlow::Continue glib::Propagation::Proceed
} }
#[template_callback] #[template_callback]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment