[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: GtkList problem
- From: Havoc Pennington <hp redhat com>
- To: Ajit Krishnan <akrishna julian uwo ca>
- cc: gtk-app-devel-list redhat com
- Subject: Re: GtkList problem
- Date: Sun, 29 Aug 1999 13:37:15 -0400 (EDT)
On Sun, 29 Aug 1999, Ajit Krishnan wrote:
>
> items = g_list_append ("item1");
> items = g_list_append ("item2");
>
> list = gtk_list_new();
> gtk_list_append_items (GTK_LIST(list), items);
>
> and the code segfaults at gtk_list_append_items.
> as far as i can tell, it is right since these are the appropriate
> function prototypes from the GTK+ reference material
>
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.
If you're inserting strings, GtkCList is a better choice anyway, more
lightweight and faster.
Havoc
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]