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

Re: GtkList problem




On Sun, 29 Aug 1999, Ajit Krishnan wrote:
> > 
> > Ah yes, but C is not type-safe so the fact that the prototypes match gets
> > you only half-way. I believe it is supposed to be a list of GtkListItem or
> > something.
> 
> what? c is not type-safe? :-)
> 
> In my original post, i had included these (from the gtk+ ref material):
>   GtkWidget* gtk_list_new (void)
>   void gtk_list_append_items (GtkList *list, GList *items);
>                               ^^^^^^^^^      ^^^^^^^
> 
> to me, this seems to imply that it must indeed be of type GtkList* and 
> GList* and not of type GtkListItem* or GtkCList*......am i wrong in 
> my assumption?
> 

GList* is not a type, "GList of GtkListItem*" _is_ a type and the expected
one. You were passing in "GList of gchar*" which was wrong.

I'm suggesting GtkCList as an alternative widget, instead of GtkList.
gtk/gtkclist.h.

Havoc






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