[gnome-music/wip/jfelder/gtk4-v3: 22/259] artistsearchtile: Remove GtkEventBox use (FIXME)




commit d6add12e8a0f7951509507e0468e2d67fc9f7099
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Apr 11 16:43:26 2021 +0200

    artistsearchtile: Remove GtkEventBox use (FIXME)

 data/ui/ArtistSearchTile.ui            | 7 ++++++-
 gnomemusic/widgets/artistsearchtile.py | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/ArtistSearchTile.ui b/data/ui/ArtistSearchTile.ui
index dac94c566..fb282e8f2 100644
--- a/data/ui/ArtistSearchTile.ui
+++ b/data/ui/ArtistSearchTile.ui
@@ -16,10 +16,15 @@
             <property name="can_focus">False</property>
             <property name="margin-bottom">4</property>
             <child>
-              <object class="GtkEventBox" id="_events">
+              <object class="GtkBox">
                 <property name="visible">True</property>
                 <property name="can_focus">False</property>
                 <signal name="button-release-event" handler="_on_artist_event" swapped="no"/>
+                <child>
+                  <object class="GtkGestureClick">
+                    <signal name="released" handler="_on_artist_event" swapped="no"/>
+                  </object>
+                </child>
                 <child>
                   <object class="ArtStack" id="_art_stack">
                     <property name="visible">True</property>
diff --git a/gnomemusic/widgets/artistsearchtile.py b/gnomemusic/widgets/artistsearchtile.py
index 7bcecfc01..926a9adc3 100644
--- a/gnomemusic/widgets/artistsearchtile.py
+++ b/gnomemusic/widgets/artistsearchtile.py
@@ -42,7 +42,7 @@ class ArtistSearchTile(Gtk.FlowBoxChild):
     _artist_label = Gtk.Template.Child()
     _art_stack = Gtk.Template.Child()
     _check = Gtk.Template.Child()
-    _events = Gtk.Template.Child()
+    # _events = Gtk.Template.Child()
 
     coreartist = GObject.Property(
         type=CoreArtist, default=None, flags=GObject.ParamFlags.READWRITE)
@@ -83,7 +83,7 @@ class ArtistSearchTile(Gtk.FlowBoxChild):
             "selection-mode", self._check, "visible",
             GObject.BindingFlags.BIDIRECTIONAL)
 
-        self._events.add_events(Gdk.EventMask.TOUCH_MASK)
+        # self._events.add_events(Gdk.EventMask.TOUCH_MASK)
 
         self.show()
 


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