[gnome-music/wip/jfelder/gtk4-v3: 208/259] songwidget: Remove select-click property




commit 6f760391b93e024d3611cc2b2e0cf93f26a4b22f
Author: Jean Felder <jfelder src gnome org>
Date:   Fri Feb 11 11:29:05 2022 +0100

    songwidget: Remove select-click property
    
    With the gesture port, this is not needed anymore.

 data/ui/SongWidget.ui            | 1 -
 gnomemusic/widgets/songwidget.py | 7 -------
 2 files changed, 8 deletions(-)
---
diff --git a/data/ui/SongWidget.ui b/data/ui/SongWidget.ui
index 24c50c7b3..8c4b273b2 100644
--- a/data/ui/SongWidget.ui
+++ b/data/ui/SongWidget.ui
@@ -41,7 +41,6 @@
               <object class="GtkCheckButton" id="_select_button">
                 <property name="focusable">False</property>
                 <property name="receives_default">False</property>
-                <signal name="toggled" handler="_on_select_button_toggled"/>
               </object>
             </child>
             <child>
diff --git a/gnomemusic/widgets/songwidget.py b/gnomemusic/widgets/songwidget.py
index 0f4ed60d5..c39b8b6aa 100644
--- a/gnomemusic/widgets/songwidget.py
+++ b/gnomemusic/widgets/songwidget.py
@@ -53,7 +53,6 @@ class SongWidget(Gtk.ListBoxRow):
     }
 
     coresong = GObject.Property(type=CoreSong, default=None)
-    select_click = GObject.Property(type=bool, default=False)
     selected = GObject.Property(type=bool, default=False)
     show_song_number = GObject.Property(type=bool, default=True)
 
@@ -195,12 +194,6 @@ class SongWidget(Gtk.ListBoxRow):
 
     #     self.emit("widget-moved", source_position)
 
-    @Gtk.Template.Callback()
-    def _on_select_button_toggled(self, widget):
-        # This property is used to ignore the second click event
-        # (one event in SongWidget and the other one in select_button).
-        self.props.select_click = not self.props.select_click
-
     @Gtk.Template.Callback()
     def _on_click(
             self, gesture_click: Gtk.GestureClick, n_click: int, x: int,


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