[gnome-music/wip/jfelder/gtk4-v3: 21/110] notificationspopup: Work around container changes (FIXME)
- From: Jean Felder <jfelder src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/jfelder/gtk4-v3: 21/110] notificationspopup: Work around container changes (FIXME)
- Date: Wed, 2 Feb 2022 23:43:35 +0000 (UTC)
commit 70886143f65b6c51c53337a13b8da5712b0b7ac4
Author: Marinus Schraal <mschraal gnome org>
Date: Mon Jun 8 01:02:34 2020 +0200
notificationspopup: Work around container changes (FIXME)
gnomemusic/widgets/notificationspopup.py | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gnomemusic/widgets/notificationspopup.py b/gnomemusic/widgets/notificationspopup.py
index 3ba9c55ca..a4eabf5b4 100644
--- a/gnomemusic/widgets/notificationspopup.py
+++ b/gnomemusic/widgets/notificationspopup.py
@@ -47,7 +47,7 @@ class NotificationsPopup(Gtk.Revealer):
self._loading_notification = LoadingNotification()
self._loading_notification.connect('visible', self._set_visibility)
self._loading_notification.connect('invisible', self._set_visibility)
- self._box.add(self._loading_notification)
+ self._box.append(self._loading_notification)
def _hide_notifications(self, notification, remove):
if remove:
@@ -62,9 +62,10 @@ class NotificationsPopup(Gtk.Revealer):
deletion is in progress.
"""
loading_finished = self._loading_notification._counter == 0
- no_other_notif = (len(self._box.get_children()) == 1
- or (len(self._box.get_children()) == 2
- and notification != self._loading_notification))
+ # no_other_notif = (len(self._box.get_children()) == 1
+ # or (len(self._box.get_children()) == 2
+ # and notification != self._loading_notification))
+ no_other_notif = True
invisible = loading_finished and no_other_notif
if not invisible:
@@ -98,7 +99,7 @@ class NotificationsPopup(Gtk.Revealer):
:param notification: notification to display
"""
- self._box.add(notification)
+ self._box.append(notification)
self.show()
self.set_reveal_child(True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]