[polari] Replace GestureMultiPress with GestureClick



commit bdb9601065c10ad19fa925431e4982481e5cc8e2
Author: Florian Müllner <fmuellner gnome org>
Date:   Mon Aug 23 03:19:35 2021 +0200

    Replace GestureMultiPress with GestureClick
    
    The event controller is still the same, but GTK4 renamed it
    to something more sensible.
    
    Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/228>

 src/chatView.js | 2 +-
 src/roomList.js | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/chatView.js b/src/chatView.js
index 6c0ec91f..cf995732 100644
--- a/src/chatView.js
+++ b/src/chatView.js
@@ -396,7 +396,7 @@ export default GObject.registerClass({
         this._motionController.connect('leave',
             this._handleButtonTagsHover.bind(this));
 
-        this._clickGesture = new Gtk.GestureMultiPress({
+        this._clickGesture = new Gtk.GestureClick({
             widget: this._view,
             propagation_phase: Gtk.PropagationPhase.CAPTURE,
             button: 0,
diff --git a/src/roomList.js b/src/roomList.js
index 7c48ec08..14ba1fb9 100644
--- a/src/roomList.js
+++ b/src/roomList.js
@@ -53,7 +53,7 @@ const RoomRow = GObject.registerClass({
         });
         this._keyController.connect('key-pressed', this._onKeyPressed.bind(this));
 
-        this._clickGesture = new Gtk.GestureMultiPress({
+        this._clickGesture = new Gtk.GestureClick({
             widget: this._eventBox,
             button: Gdk.BUTTON_SECONDARY,
         });
@@ -315,7 +315,7 @@ const RoomListHeader = GObject.registerClass({
             name: `RoomListHeader ${this._account.display_name}`,
         });
 
-        this._clickGesture = new Gtk.GestureMultiPress({
+        this._clickGesture = new Gtk.GestureClick({
             propagation_phase: Gtk.PropagationPhase.CAPTURE,
             button: 0,
             widget: this,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]