[gnome-clocks] Remove mouse button back custom handling
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-clocks] Remove mouse button back custom handling
- Date: Fri, 7 Jan 2022 17:23:45 +0000 (UTC)
commit 76cfc4eb2818d0a3609ef2bf04786ad2afff01dc
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Tue Dec 14 13:08:16 2021 +0100
Remove mouse button back custom handling
This is supported by libadwaita now.
src/window.vala | 9 ---------
1 file changed, 9 deletions(-)
---
diff --git a/src/window.vala b/src/window.vala
index 6ee3afe2..a269bb8d 100644
--- a/src/window.vala
+++ b/src/window.vala
@@ -134,11 +134,6 @@ public class Window : Adw.ApplicationWindow {
add_css_class ("devel");
}
- const uint BUTTON_BACK = 8;
- var gesture_click = new Gtk.GestureClick ();
- gesture_click.button = BUTTON_BACK;
- gesture_click.released.connect (button_back_released);
-
this.hide_on_close = true;
}
@@ -264,10 +259,6 @@ public class Window : Adw.ApplicationWindow {
return handled;
}
- private void button_back_released (int n_press, double x, double y) {
- on_back_activate ();
- }
-
private void on_help_activate () {
Gtk.show_uri (this, "help:gnome-clocks", Gdk.CURRENT_TIME);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]