mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
rollback
This commit is contained in:
parent
eee1fc2b3c
commit
996e80d043
@ -37,9 +37,8 @@ impl Widget {
|
||||
|
||||
// Connect back/forward navigation buttons @TODO use constant
|
||||
application_window.add_controller({
|
||||
use gtk::prelude::{GestureExt, GestureSingleExt};
|
||||
use gtk::prelude::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