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




commit 362e07df7ee41247c08c0d4b67966035ec3f9815
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 2eaad9725..6d9dff1a7 100644
--- a/gnomemusic/widgets/artistsearchtile.py
+++ b/gnomemusic/widgets/artistsearchtile.py
@@ -43,7 +43,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)
@@ -84,7 +84,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]