mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
prevent broken accounting warn
This commit is contained in:
parent
67bcf90390
commit
eee1fc2b3c
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue