[gnome-music/wip/mschraal/gtk4-v2: 77/89] songwidget: Disable toggle cb (FIXME)
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/gtk4-v2: 77/89] songwidget: Disable toggle cb (FIXME)
- Date: Mon, 10 May 2021 10:39:01 +0000 (UTC)
commit 79e6857549bb9cc2f56388ae8b73b2cbfd8b114d
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Apr 12 17:26:06 2021 +0200
songwidget: Disable toggle cb (FIXME)
gnomemusic/widgets/songwidget.py | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/gnomemusic/widgets/songwidget.py b/gnomemusic/widgets/songwidget.py
index 93bcd4d10..167aeb477 100644
--- a/gnomemusic/widgets/songwidget.py
+++ b/gnomemusic/widgets/songwidget.py
@@ -201,16 +201,16 @@ class SongWidget(Gtk.ListBoxRow):
# (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_star_toggle(self, widget, event):
- (_, button) = event.get_button()
- if button != Gdk.BUTTON_PRIMARY:
- return False
+ # @Gtk.Template.Callback()
+ # def _on_star_toggle(self, widget, event):
+ # (_, button) = event.get_button()
+ # if button != Gdk.BUTTON_PRIMARY:
+ # return False
- favorite = not self._star_image.favorite
- self._star_image.props.favorite = favorite
+ # favorite = not self._star_image.favorite
+ # self._star_image.props.favorite = favorite
- return True
+ # return True
@Gtk.Template.Callback()
def _on_star_hover(self, controller, x, y):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]