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::*};
mod imp {
use std::cell::RefCell;
use glib::once_cell::sync::OnceCell;
use std::cell::{OnceCell, RefCell};
use super::*;
......
......@@ -97,13 +97,13 @@ impl PaginatorWidget {
}
#[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 {
self.try_next();
} else if keyval == gdk::Key::Left {
self.try_previous();
}
glib::ControlFlow::Continue
glib::Propagation::Proceed
}
#[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