[gnome-music/wip/jfelder/gtk4-v3: 22/174] notificationspopup: Work around container changes (FIXME)




commit be3795cb1d3a043e5b31fd3f9898a9a2c9d07ea1
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]