summaryrefslogtreecommitdiff
path: root/src/applet-device-bt.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/applet-device-bt.c
parent2724ffa34527f68fcdd37bc64254c05a3af43ef0 (diff)
downloadnetwork-manager-applet-971732aec871c103a6d0d12f4a49a7f0f2e53cbc.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/applet-device-bt.c')
-rw-r--r--src/applet-device-bt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/applet-device-bt.c b/src/applet-device-bt.c
index a78f1068..6aed1bb4 100644
--- a/src/applet-device-bt.c
+++ b/src/applet-device-bt.c
@@ -71,11 +71,11 @@ bt_notify_connected (NMDevice *device,
const char *msg,
NMApplet *applet)
{
- applet_do_notify_with_pref (applet,
- _("Connection Established"),
- msg ? msg : _("You are now connected to the mobile broadband network."),
- "nm-device-wwan",
- PREF_DISABLE_CONNECTED_NOTIFICATIONS);
+ applet_do_notify (applet,
+ _("Connection Established"),
+ msg ? msg : _("You are now connected to the mobile broadband network."),
+ "nm-device-wwan",
+ PREF_DISABLE_CONNECTED_NOTIFICATIONS);
}
static void