diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2022-10-04 11:15:19 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2022-11-07 08:00:15 +0100 |
commit | 7cf4d8f812c61ad6ff361f6fe03df6787e471b1a (patch) | |
tree | 3e72e73f7d180653fd3998bfe3f2ca110acaa5e0 /src/applet-device-ethernet.c | |
parent | 35d35def6bb2ae8a26299bdb4d0a4819073f2786 (diff) | |
download | network-manager-applet-7cf4d8f812c61ad6ff361f6fe03df6787e471b1a.tar.gz |
applet: replace libnotify with GNotification
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.
https://gitlab.gnome.org/GNOME/network-manager-applet/-/merge_requests/124
Diffstat (limited to 'src/applet-device-ethernet.c')
-rw-r--r-- | src/applet-device-ethernet.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/applet-device-ethernet.c b/src/applet-device-ethernet.c index 52f70a1d..9885efef 100644 --- a/src/applet-device-ethernet.c +++ b/src/applet-device-ethernet.c @@ -120,11 +120,11 @@ ethernet_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 ethernet network."), - "nm-device-wired", - PREF_DISABLE_CONNECTED_NOTIFICATIONS); + applet_do_notify (applet, + _("Connection Established"), + msg ? msg : _("You are now connected to the ethernet network."), + "nm-device-wired", + PREF_DISABLE_CONNECTED_NOTIFICATIONS); } static void |