← Back to team overview

elementary-dev-community team mailing list archive

Re: Pantheon Terminal notifications

 

Ah, it's weird... Did you add the package to the pkg_check_modules call?
Did you remove the CMake cache?

2011/12/8 David Gomes <davidrafagomes@xxxxxxxxx>

> 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
>
> --
> Mailing list: https://launchpad.net/~elementary-dev-community
> Post to     : elementary-dev-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~elementary-dev-community
> More help   : https://help.launchpad.net/ListHelp
>

References