[gnome-flashback] notifications: remove limit



commit 40c5db2e6b343c5afad78034a2fa93b9b000ef11
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Jun 13 11:21:53 2022 +0300

    notifications: remove limit
    
    https://gitlab.gnome.org/GNOME/gnome-flashback/-/issues/75

 gnome-flashback/libnotifications/nd-daemon.c | 15 ---------------
 1 file changed, 15 deletions(-)
---
diff --git a/gnome-flashback/libnotifications/nd-daemon.c b/gnome-flashback/libnotifications/nd-daemon.c
index 1342745..81d9d0c 100644
--- a/gnome-flashback/libnotifications/nd-daemon.c
+++ b/gnome-flashback/libnotifications/nd-daemon.c
@@ -36,8 +36,6 @@
 #define INFO_VERSION PACKAGE_VERSION
 #define INFO_SPEC_VERSION "1.2"
 
-#define MAX_NOTIFICATIONS 20
-
 struct _NdDaemon
 {
   GObject               parent;
@@ -168,24 +166,11 @@ handle_notify_cb (GfFdNotificationsGen  *object,
                   gpointer               user_data)
 {
   NdDaemon *daemon;
-  const gchar *error_name;
-  const gchar *error_message;
   NdNotification *notification;
   gint new_id;
 
   daemon = ND_DAEMON (user_data);
 
-  if (nd_queue_length (daemon->queue) > MAX_NOTIFICATIONS)
-    {
-      error_name = "org.freedesktop.Notifications.MaxNotificationsExceeded";
-      error_message = _("Exceeded maximum number of notifications");
-
-      g_dbus_method_invocation_return_dbus_error (invocation, error_name,
-                                                  error_message);
-
-      return TRUE;
-    }
-
   if (replaces_id > 0)
     {
       notification = nd_queue_lookup (daemon->queue, replaces_id);


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