Witam. Mam problem z deklaracją Notify::Notification. Otóż muszę przy deklaracji postawić *, bo inaczej kompilator nie chce kompiloać, a gdy chcę użyć Notify::Notification::Notification kompilator wywala takie błędy :
make pisze:src/gui.cpp: In function ?void Gui::ShowNotification(std::string, std::string, Notify::Urgency)?:
src/gui.cpp:111: error: cannot convert ?Notify::Notification? to ?Notify::Notification*? in assignment
void ShowNotification(std::string name, std::string message, Notify::Urgency urgency)
{
/*GError *error = NULL;
Notify::Notification* notification;
// create a new notification
notification = &Notify::Notification::Notification(name, message, "/home/bartek/Desktop/icon.png");
// attach status icon to the notification
notification->attach_to_status_icon(StatusIcon2);
// set the timeout of the notification to 3 secs
notification->set_timeout(3000);
// set the category so as to tell what kind it is
notification->set_category("eoserv");
// set the urgency level of the notification
notification->set_urgency(Notify::URGENCY_LOW);
notification->show();*/
}