Re: [gtk-list] container questions..



On Sun, 8 Feb 1998 nuke@bayside.net wrote:

> is there any way to get a GtkWidget reference to an to a widget that's
> in a known widget's container? more specifically, i'm trying to get a
> reference to the label of a button, and all i have is the button widget. 
> i'm pretty new to objective-C, so go easy on the "moron" replies :)

gtk+ itself isn't in Objective C - are you using obgtk, or are you using
gtk?

If you're using gtk, it would be GTK_LABEL(GTK_BUTTON(widget)->child)

If you're using obgtk, it would be
GTK_LABEL(((Gtk_Button *) aWidgetID)->gtkbutton->child) (and that would be
a GtkLabel * that you get back, not a Gtk_Label).

-- Elliot					http://www.redhat.com/
"The obvious mathematical breakthrough would be development of an easy way
to factor large prime numbers." -- Bill Gates from "The Road Ahead," p. 265.




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