diff options
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rwxr-xr-x | a.out | bin | 0 -> 15520 bytes | |||
-rw-r--r-- | notify.c | 11 |
3 files changed, 16 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 567d729..5b82536 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,4 +3,8 @@ project(xsetroot-daemon) add_executable(xsetrootd init.c) -target_link_libraries(xsetrootd -lX11)
\ No newline at end of file +target_link_libraries(xsetrootd -lX11) + +add_executable(test_notify notify.c) +include_directories(test_notify PRIVATE /usr/include/glib-2.0/ /usr/lib/glib-2.0/include/ /usr/include/gdk-pixbuf-2.0/) +target_link_libraries(test_notify -lnotify) Binary files differdiff --git a/notify.c b/notify.c new file mode 100644 index 0000000..a657282 --- /dev/null +++ b/notify.c @@ -0,0 +1,11 @@ +#include <libnotify/notify.h> + +int main(void) +{ + NotifyNotification *notif; + notify_init("some-name"); + notif = notify_notification_new("syx", "oke", NULL); + + notify_notification_show(notif, NULL); + +}
\ No newline at end of file |