summaryrefslogtreecommitdiff
path: root/src/utils/utils.c
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2022-10-04 11:15:19 +0200
committerLubomir Rintel <lkundrak@v3.sk>2022-10-04 12:49:08 +0200
commit971732aec871c103a6d0d12f4a49a7f0f2e53cbc (patch)
tree0d2cc7f680e4117ab76da50d615f7e89392f048a /src/utils/utils.c
parent2724ffa34527f68fcdd37bc64254c05a3af43ef0 (diff)
downloadnetwork-manager-applet-lr/no-libnotify.tar.gz
applet: replace libnotify with GNotificationlr/no-libnotify
The libnotify's notify_notification_show() does a blocking D-Bus call. In fact, one fine gentleman's nm-applet got stuck for many seconds because the bus activation aparatus in his computer was not properly greased. Let's do away with this absolute monstrosity of a library by using the desktop notification API provided by GLib since 2.40. It's simpler, fully asynchronous and in addition to freedesktop notification API it can interface with Gtk and Flatpak portal one.
Diffstat (limited to 'src/utils/utils.c')
-rw-r--r--src/utils/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/utils.c b/src/utils/utils.c
index c33c7bcd..5daad24f 100644
--- a/src/utils/utils.c
+++ b/src/utils/utils.c
@@ -116,7 +116,7 @@ static Tag escaped_tags[] = {
};
char *
-utils_escape_notify_message (const char *src)
+utils_escape_notify_body (const char *src)
{
const char *p = src;
GString *escaped;