Re: gtk_filesel: Showing file in file clist

dump clist and try the new gtktreelist instead because clist is
deprecated in upcoming gtk2.0.



Den Mon, 23 Oct 2000 23:38:57 skrev Lars Clausen:
> Hi!
> We're again trying to improve the gtk_filesel widget, this time by making
> the file clist automatically show the file that the program sets the
> selection to (if possible).  Unfortunately, it turns out to be rather
> difficult.  There is no gtk_clist_find_row_from_text, there is no
> gtk_clist_get_num_rows (which would allow us to do a binary search).  The
> best solution we can see is not very good:  Attaching a strdup() of the
> text as data to each row and use gtK_clist_find_row_from_data to find the
> row (what is the complexity on that anyway?  Linear?  Log?), being very
> careful to deallocate the data.  Surely there must be a better way to
> find
> rows in clists?  Any suggestions would be appreciated.
> Thanks,
> -Lars
> -- 
> Lars Clausen ( | Hårdgrim of Numenor
> "I do not agree with a word that you say, but I    | Retainer of Sir Kegg
> will defend to the death your right to say it."    |   of Westfield
>     --Evelyn Beatrice Hall paraphrasing Voltaire   | Chaos Berserker of
> Khorne
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org

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