Re: [gtk-list] how to get a child of a GtkContainer
- From: Leonardo Zide <leonardo centroin com br>
- CC: gtk-list redhat com
- Subject: Re: [gtk-list] how to get a child of a GtkContainer
- Date: Sat, 06 May 2000 13:28:30 -0300
Matthias Reis wrote:
>
> Hi,
>
> I have in my gtk+ application a menuitem, which has a GtkLabel as it's
> child. How can I get the text of this label? The problem is that the label
> is created by gtk_menuitem_new_with_label (), which doesn't return a
> pointer to the label, of course. So how can I get the label?
Use GTK_BIN (menuitem)->child, the same can be used to other
gtk_***_new_with_label () calls.
Leonardo
PS: This question should be in the FAQ, it comes up almost every week.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]