[solved] wxWidgets dymki powiadowień
: 04 kwie 2010, 09:06
W jaki sposób mogę tworzyć takie dymki? do wyświetlania informacji? Przy Tray? takie jak np w gajimie?
Polskie forum użytkowników Ubuntu
https://ubuntu.pl/forum/
Kod: Zaznacz cały
echo "message:hello world" | zenity --notification --listen
dorzuciłem bibliotekiwrj@home:~/Pulpit$ gcc `pkg-config ?cflags ?libs gtk+-2.0` notify.c -o notify -l notify
In file included from notify.c:1:
/usr/include/libnotify/notify.h:24:18: error: glib.h: No such file or directory
In file included from /usr/include/libnotify/notify.h:27,
from notify.c:1:
/usr/include/libnotify/notification.h:26:25: error: glib-object.h: No such file or directory
/usr/include/libnotify/notification.h:27:21: error: gtk/gtk.h: No such file or directory
In file included from /usr/include/libnotify/notify.h:27,
from notify.c:1:
/usr/include/libnotify/notification.h:50: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?typedef?
/usr/include/libnotify/notification.h:56: error: expected specifier-qualifier-list before ?GObject?
/usr/include/libnotify/notification.h:62: error: expected specifier-qualifier-list before ?GObjectClass?
/usr/include/libnotify/notification.h:79: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:85: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?notify_notification_get_type?
/usr/include/libnotify/notification.h:87: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
/usr/include/libnotify/notification.h:91:22: error: missing binary operator before token "("
/usr/include/libnotify/notification.h:97: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?notify_notification_update?
/usr/include/libnotify/notification.h:102: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:105:22: error: missing binary operator before token "("
/usr/include/libnotify/notification.h:110: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:115: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?notify_notification_show?
/usr/include/libnotify/notification.h:118: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:121: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:124: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:127: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:130: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:132: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:135: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:138: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:142: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:145: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:149: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:151: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:156: error: expected ?)? before ?*? token
/usr/include/libnotify/notification.h:157: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?notify_notification_close?
/usr/include/libnotify/notification.h:160: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?notify_notification_get_closed_reason?
In file included from /usr/include/libnotify/notify.h:28,
from notify.c:1:
/usr/include/libnotify/notify-enum-types.h:9: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?G_BEGIN_DECLS?
In file included from notify.c:1:
/usr/include/libnotify/notify.h:30: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?G_BEGIN_DECLS?
/usr/include/libnotify/notify.h:54: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?notify_is_initted?
/usr/include/libnotify/notify.h:61: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
/usr/include/libnotify/notify.h:68: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
/usr/include/libnotify/notify.h:82: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?notify_get_server_info?
notify.c:3: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?int?
notify.c:7: error: stray ?\342? in program
notify.c:7: error: stray ?\200? in program
notify.c:7: error: stray ?\234? in program
notify.c:7: error: stray ?\342? in program
notify.c:7: error: stray ?\200? in program
notify.c:7: error: stray ?\235? in program
notify.c:10: error: stray ?\342? in program
notify.c:10: error: stray ?\200? in program
notify.c:10: error: stray ?\234? in program
notify.c:10: error: stray ?\342? in program
notify.c:10: error: stray ?\200? in program
notify.c:10: error: stray ?\235? in program
notify.c:15: error: stray ?\342? in program
notify.c:15: error: stray ?\200? in program
notify.c:15: error: stray ?\234? in program
notify.c:15: error: stray ?\342? in program
notify.c:15: error: stray ?\200? in program
notify.c:15: error: stray ?\235? in program
Kod: Zaznacz cały
libglib2.0-dev
libglib2.0-0
Kod: Zaznacz cały
`pkg-config --cflags --libs gtk+-2.0` -lnotify
igcc `pkg-config --cflags --libs gtk+-2.0` -lnotify notify.c -o notify
notify.c: In function ?main?:
notify.c:7: error: stray ?\342? in program
notify.c:7: error: stray ?\200? in program
notify.c:7: error: stray ?\234? in program
notify.c:7: error: ?Sample? undeclared (first use in this function)
notify.c:7: error: (Each undeclared identifier is reported only once
notify.c:7: error: for each function it appears in.)
notify.c:7: error: expected ?,? or ?;? before ?Notification?
notify.c:7: error: stray ?\342? in program
notify.c:7: error: stray ?\200? in program
notify.c:7: error: stray ?\235? in program
notify.c:10: error: stray ?\342? in program
notify.c:10: error: stray ?\200? in program
notify.c:10: error: stray ?\234? in program
notify.c:10: error: ?Checking? undeclared (first use in this function)
notify.c:10: error: expected ?)? before ?it?
notify.c:10: error: stray ?\342? in program
notify.c:10: error: stray ?\200? in program
notify.c:10: error: stray ?\235? in program
notify.c:10: error: too few arguments to function ?notify_notification_new?
notify.c:15: error: stray ?\342? in program
notify.c:15: error: stray ?\200? in program
notify.c:15: error: stray ?\234? in program
notify.c:15: error: ?Testing? undeclared (first use in this function)
notify.c:15: error: expected ?,? or ?;? before ?Notifications?
notify.c:15: error: stray ?\342? in program
notify.c:15: error: stray ?\200? in program
notify.c:15: error: stray ?\235? in program
cały czas to samowrj@home:~/Pulpit$ sudo apt-get install libgtk2.0-dev
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
libgtk2.0-dev jest już w najnowszej wersji.
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 3 nieaktualizowanych.
Kod: Zaznacz cały
char name[40] = ?Sample Notification?; // zamiast ? masz cudzysłowy drukarskie
Kod: Zaznacz cały
char name[40] = "Sample Notification";