Skip to content

Instantly share code, notes, and snippets.

@yunazuno
Created May 26, 2011 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yunazuno/992935 to your computer and use it in GitHub Desktop.
Save yunazuno/992935 to your computer and use it in GitHub Desktop.
/*
* Usage of libnotify
* $ gcc -g `pkg-config --libs --cflags gtk+-2.0 glib-2.0` -lnotify -o notify notify.c
*/
#include <stdio.h>
#include <unistd.h>
#include <libnotify/notify.h>
int main(int argc, char* argv[])
{
NotifyNotification *n;
GError **e = NULL;
notify_init("test");
n = notify_notification_new("test", "test\ntest", NULL, NULL);
notify_notification_show(n, e);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment