| 1 | # Patch taken from the Gnome Flashback project to remove the default limit of 20 notifications at a time:
|
| 2 | # https://gitlab.gnome.org/GNOME/gnome-flashback/-/commit/40c5db2e6b343c5afad78034a2fa93b9b000ef11
|
| 3 | # See the following issue for more details:
|
| 4 | # https://gitlab.gnome.org/GNOME/gnome-flashback/-/issues/75
|
| 5 | diff --git a/src/nd-daemon.c b/src/nd-daemon.c
|
| 6 | index 943e48a..5724405 100644
|
| 7 | |
| 8 | |
| 9 | @@ -36,8 +36,6 @@
|
| 10 | #define INFO_VERSION PACKAGE_VERSION
|
| 11 | #define INFO_SPEC_VERSION "1.2"
|
| 12 |
|
| 13 | -#define MAX_NOTIFICATIONS 20
|
| 14 | -
|
| 15 | struct _NdDaemon
|
| 16 | {
|
| 17 | GObject parent;
|
| 18 | @@ -180,24 +178,11 @@ handle_notify_cb (NdFdNotifications *object,
|
| 19 | gpointer user_data)
|
| 20 | {
|
| 21 | NdDaemon *daemon;
|
| 22 | - const gchar *error_name;
|
| 23 | - const gchar *error_message;
|
| 24 | NdNotification *notification;
|
| 25 | gint new_id;
|
| 26 |
|
| 27 | daemon = ND_DAEMON (user_data);
|
| 28 |
|
| 29 | - if (nd_queue_length (daemon->queue) > MAX_NOTIFICATIONS)
|
| 30 | - {
|
| 31 | - error_name = "org.freedesktop.Notifications.MaxNotificationsExceeded";
|
| 32 | - error_message = _("Exceeded maximum number of notifications");
|
| 33 | -
|
| 34 | - g_dbus_method_invocation_return_dbus_error (invocation, error_name,
|
| 35 | - error_message);
|
| 36 | -
|
| 37 | - return TRUE;
|
| 38 | - }
|
| 39 | -
|
| 40 | if (replaces_id > 0)
|
| 41 | {
|
| 42 | notification = nd_queue_lookup (daemon->queue, replaces_id);
|