GtkStatusIcon
- From: Giuliano Montecarlo <gggiuly googlemail com>
- To: gtk-app-devel-list gnome org
- Subject: GtkStatusIcon
- Date: Wed, 9 Nov 2005 19:08:57 +0100
Hi,
I'm about to write an App using GTK+.
I'm trying to get a Status Icon in Yellow.
--snip--
GdkPixbuf* YI = gdk_pixbuf_new (GDK_COLORSPACE_RGB, FALSE, 8, 24, 24);
GdkColor color;
guint32 pixel;
if (gdk_color_parse ("Yellow", &color))
pixel =
(color.red >> 8) << 24 |
(color.green >> 8) << 16 |
(color.blue >> 8) << 8;
gdk_pixbuf_fill (YI, pixel);
GtkStatusIcon* YellowIcon=gtk_status_icon_new_from_pixbuf(YI);
--snap--
OK. Should be correct, but I get Errors while I compile:
--snip--
main.c: In function `main':
main.c:106: error: `GtkStatusIcon' undeclared (first use in this function)
main.c:106: error: (Each undeclared identifier is reported only once
main.c:106: error: for each function it appears in.)
main.c:106: error: `YellowIcon' undeclared (first use in this function)
make: *** [main.o] Error 1
--snap--
When I replace GtkStatusIcon with GtkWidget I get
--snip--
main.c: In function `main':
main.c:106: warning: initialization makes pointer from integer without a cast
(...)
main.o:main.c:(.text+0x881): undefined reference to
`gtk_status_icon_new_from_pixbuf'
--snap--
So, where it is? I've included gtk/gtk.h. and as libs I've
-lcairo -lpangox11-1.0 -latk-1.0 -lgdk_pixbuf-2.0 -lgdk-x11-2.0
-lglib-2.0.dll -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0 -lgtk-x11-2.0
-lpango-1.0
Thanks in Advance,
G.M.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]