From eb6737ca2593f457368ae16e920911cdd70a2e33 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 8 Sep 2020 19:17:29 +0200 Subject: Add -W,--window-size-chars, and foot.ini:initial-window-size-chars * Add -W,--window-size-chars command line option * Add initial-window-size-chars foot.ini option * Add -w,--window-size-pixels command line option * Add initial-window-size-pixels foot.ini option * Deprecate -g,--geometry command line option in favor of -w,--window-size-pixels * Deprecate geometry option in foot.ini in favor of initial-window-size-pixels --- user-notification.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'user-notification.h') diff --git a/user-notification.h b/user-notification.h index 1777d521..f184871e 100644 --- a/user-notification.h +++ b/user-notification.h @@ -14,3 +14,11 @@ struct user_notification { }; typedef tll(struct user_notification) user_notifications_t; + +static inline void +user_notifications_free(user_notifications_t *notifications) +{ + tll_foreach(*notifications, it) + free(it->item.text); + tll_free(*notifications); +} -- cgit v1.3