Re: Changing GTK list item label




Tim Wilson <td_email@usa.net> writes:

> Can anyone explain (or show example code) of how to change the label of
> a GTK list item
> created with gtk_list_item_new_with_label()?

A ListItem is a Bin (a container with one child), so you can
get the child with:
  
  GTK_BIN (list_item)->child

To set new text, use gtk_label_set (GTK_LABEL (label), "new_text");

Regards,
                                        Owen



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