Problem with GtkIconSet



Hi,

I have a problem with GtkIconSet.

Test case:
#include <gtk/gtk.h>
int
main (int argc, char** argv)
{
    GtkIconSet* iconset;
    guint ref;
    gtk_init (&argc, &argv);
    iconset = gtk_icon_set_new();
    ref =  *iconset->ref_count;
    gtk_main();
    exit (0);
}

Output of the compiled code:
test.c: In function `main':
test.c:9: dereferencing pointer to incomplete type


What's wrong in
    ref = *iconset->ref_count;?

What I am doing wrong?

Thanks,
    Aleksey.





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