mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
rollback
This commit is contained in:
parent
eee1fc2b3c
commit
996e80d043
1 changed files with 1 additions and 2 deletions
|
|
@ -37,9 +37,8 @@ impl Widget {
|
||||||
|
|
||||||
// Connect back/forward navigation buttons @TODO use constant
|
// Connect back/forward navigation buttons @TODO use constant
|
||||||
application_window.add_controller({
|
application_window.add_controller({
|
||||||
use gtk::prelude::{GestureExt, GestureSingleExt};
|
use gtk::prelude::GestureSingleExt;
|
||||||
let button_controller = gtk::GestureClick::builder().button(0).build();
|
let button_controller = gtk::GestureClick::builder().button(0).build();
|
||||||
button_controller.set_state(gtk::EventSequenceState::Denied); // prevent broken accounting warn
|
|
||||||
button_controller.connect_pressed({
|
button_controller.connect_pressed({
|
||||||
let window = window.clone();
|
let window = window.clone();
|
||||||
move |this, _, _, _| match this.current_button() {
|
move |this, _, _, _| match this.current_button() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue