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

Re: GtkList problem



Havoc Pennington [hp@redhat.com] wrote:
> 
> 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.

aah...i see what you're getting at.

thank you.

ajit

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

-- 
Ajit Krishnan
ajit@home.com
akrishna@julian.uwo.ca



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