diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2022-09-26 23:15:56 +0200 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2022-09-26 23:15:56 +0200 |
commit | 04e5ed8155705d4bc629e4adfb5f8080089fee65 (patch) | |
tree | 03fe7b202fd8dd337e844c9c7a2a9417ce520123 | |
parent | ea4cc1081a779aa445c2caf2e658a00d3df19828 (diff) | |
download | gnome-maps-wip/mlundblad/fix-selecting-transit-stop.tar.gz |
transitLegRow: Don't collapse instructions when clickingwip/mlundblad/fix-selecting-transit-stop
Limit the press gesture for expanding/collapsing the
instructs to the grid containing the basic unexpanded
information.
Otherwise selecting a stop, or walking instruction is
not possible, as the press gesture gets in the way for
the list box selected signal.
-rw-r--r-- | src/transitLegRow.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/transitLegRow.js b/src/transitLegRow.js index cde05ee4..b1e06db8 100644 --- a/src/transitLegRow.js +++ b/src/transitLegRow.js @@ -120,7 +120,7 @@ export class TransitLegRow extends Gtk.ListBoxRow { }); this._buttonPressGesture = new Gtk.GestureSingle(); - this.add_controller(this._buttonPressGesture); + this._grid.add_controller(this._buttonPressGesture); this._buttonPressGesture.connect('begin', () => this._onPress()); this._isExpanded = false; @@ -200,5 +200,6 @@ GObject.registerClass({ 'detailsRevealer', 'agencyLabel', 'collapsButton', - 'instructionList'] + 'instructionList', + 'grid'] }, TransitLegRow); |