elementary-dev-community team mailing list archive
-
elementary-dev-community team
-
Mailing list archive
-
Message #00062
Re: Pantheon Terminal notifications
var notification = new Notification ("hello", "hello", "utilities-terminal");
notification.show ();
I just tried this coding (using Notify;), but I got these errors when
compiling (I am including libnotify in packages):
CMakeFiles/pantheon-terminal.dir/src/PantheonTerminalWindow.c.o:
In function `__lambda12_':
/home/david/src/pantheon-terminal/build/src/PantheonTerminalWindow.c:1038:
undefined reference to `notify_notification_new'
/home/david/src/pantheon-terminal/build/src/PantheonTerminalWindow.c:1042:
undefined reference to `notify_notification_show'
collect2: ld returned 1 exit status
make[2]: *** [pantheon-terminal] Error 1
make[1]: *** [CMakeFiles/pantheon-terminal.dir/all] Error
make: *** [all] Error 2
More code here:
t.task_over.connect (() => {
try {
var notification = new Notification ("hello",
"hello", "utilities-terminal");
notification.show ();
} catch { }
});
--
David Gomes
Follow ups
References