-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(meson): able to build on standard platforms
- Loading branch information
Showing
4 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#ifndef _NOTIFICATION_H | ||
#define _NOTIFICATION_H | ||
#pragma once | ||
|
||
void notification_send(char *title, char *message); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
#include "notification.h" | ||
|
||
#ifdef HAVE_LIBNOTIFY | ||
#include <libnotify/notify.h> | ||
#endif | ||
|
||
void notification_send(char *title, char *message) { | ||
#ifdef HAVE_LIBNOTIFY | ||
notify_init("Hello world!"); | ||
NotifyNotification *notification = | ||
notify_notification_new(title, message, "dialog-information"); | ||
notify_notification_show(notification, NULL); | ||
g_object_unref(G_OBJECT(notification)); | ||
notify_uninit(); | ||
#endif | ||
} |