Re: GtkStatusIcon
- From: Matthias Clasen <mclasen redhat com>
- To: Giuliano Montecarlo <gggiuly googlemail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkStatusIcon
- Date: Wed, 09 Nov 2005 13:19:00 -0500
On Wed, 2005-11-09 at 19:08 +0100, Giuliano Montecarlo wrote:
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
GtkStatusIcon is new api that is not in any stable gtk release yet. It
will appear in gtk 2.10.
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]