Libnotify with image ?
Is this possible?
This is the code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#include <libnotify/notify.h>
#include <stdio.h>
#include <unistd.h>
int main()
{
NotifyNotification *n;
notify_init("Basics");
n = notify_notification_new ("Summary",
"\nThis is the message that we want to display",
NULL, NULL);
notify_notification_set_timeout (n, 5000); // 5 seconds
if (!notify_notification_show (n, NULL))
{
return 1;
}
g_object_unref(G_OBJECT(n));
return 0;
}
|
How can I add an image to the left of the notification?
Topic archived. No new replies allowed.