Re: [gtk-list] Re: list item



Owen Taylor wrote:
> 
> Nicolas Caillaud <Nicolas.Caillaud@mail.dotcom.fr> writes:
> 
> > How can I change the text of a GtkListItem without deleting it and
> > inserting a new one ? I haven't seen anything about that, but I 
> 
> If you have a list item, created with gtk_list_item_new_with_label(),
> you can get access to the label widget with
> 
>   GTK_BIN(item)->child
> 
> And, can change the text in that label with:
> 
>   gtk_label_set (GTK_LABEL (GTK_BIN(item)->child), "some new text");
> 
> Hope this helps,

Wouaaah, it works great, thank you very much !!

Nicolas
-- 
----------
Nicolas.Caillaud@mail.dotcom.fr
----------



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