Weird compilation problem with GtkProgressBar

I'm using Redhat 5.0 and I've installed gtk+-1.0.1-3 and
When I'm trying to compile the folowing program (gtktst.c):

#include <gtk/gtk.h>
#include <glib.h>

int main()
  GtkProgressBar *pbar;
  gfloat a;
  a = pbar->percentage;

I get the folowing errors:

gtktst.c: In function `main':
gtktst.c:9: structure has no member named `percentage'

Too weird... But GtkProgressBar (or _GtkProgressBar) HAS the member
percentage !!
Even if I say :
  _GtkProgressBar *pbar;
I get the same errors!

Please help.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]