Re: Changing GTK list item label
- From: Owen Taylor <owt1 cornell edu>
- To: gtk-list redhat com
- Subject: Re: Changing GTK list item label
- Date: 26 Mar 1998 00:52:11 -0500
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]