Remove libnotify dependency

Instead just talk directly to the service. This fixes *sending*
a notification being blocking IO.
This commit is contained in:
Patrick Griffis
2021-07-13 12:24:19 -05:00
parent 482efae89a
commit c144d0468b
6 changed files with 150 additions and 93 deletions

View File

@@ -43,11 +43,7 @@ hexchat_gtk_cflags = []
hexchat_gtk_ldflags = []
if libnotify_dep.found()
hexchat_gtk_sources += 'notifications/notification-libnotify.c'
hexchat_gtk_deps += libnotify_dep
elif false # TODO HAVE_GTK_MAC
elif host_machine.system() == 'windows'
if host_machine.system() == 'windows'
hexchat_gtk_sources += 'notifications/notification-windows.c'
# TODO: mingw doesn't have these headers or libs
@@ -57,7 +53,7 @@ elif host_machine.system() == 'windows'
#)
else
hexchat_gtk_sources += 'notifications/notification-dummy.c'
hexchat_gtk_sources += 'notifications/notification-freedesktop.c'
endif
iso_codes = dependency('iso-codes', required: false)