mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
prevent broken accounting warn
This commit is contained in:
parent
67bcf90390
commit
eee1fc2b3c
@ -37,8 +37,9 @@ impl Widget {
|
||||
|
||||
// Connect back/forward navigation buttons @TODO use constant
|
||||
application_window.add_controller({
|
||||
use gtk::prelude::GestureSingleExt;
|
||||
use gtk::prelude::{GestureExt, GestureSingleExt};
|
||||
let button_controller = gtk::GestureClick::builder().button(0).build();
|
||||
button_controller.set_state(gtk::EventSequenceState::Denied); // prevent broken accounting warn
|
||||
button_controller.connect_pressed({
|
||||
let window = window.clone();
|
||||
move |this, _, _, _| match this.current_button() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user