|
From: Adrian F. <fe...@ma...> - 2000-06-27 15:50:55
|
On Tue, 27 Jun 2000, Allin Cottrell wrote:
> On Tue, 27 Jun 2000, Adrian Feiguin wrote:
>
> > try setting GTK_ICON_LIST(iconlist)->compare_func = NULL;
> > you can customize this also with you own comparison function.
>
> Thanks for the tip. Setting it NULL doesn't actually work: glib
> barfs. But I did
>
> gint null_sort (gpointer a, gpointer b) {
> return 0;
> }
>
Well done.
> GTK_ICON_LIST(iconlist)->compare_func = (void *) null_sort;
>
I have to say that the proper way would be (GCompareFunc) null_sort ;-)
BTW, if you have a nice screenshot, it would be great to have it on the
gtkextra page, or eventually a link to your page.
Regards,
<ADRIAN>
|