Re: getting a GtkWidget*
- From: Damon Chaplin <damon ximian com>
- To: bowman <bowman montana com>
- Cc: gtk-list gnome org
- Subject: Re: getting a GtkWidget*
- Date: Mon, 04 Jun 2001 18:47:48 -0400
bowman wrote:
>
> I haven't been able to hit on quite the right thing in the FAQ or docs. I've
> been working with glade, which doesn't expose the widgets used in the
> generated interface.c file. If I have connected a callback to a button
> click, for instance, and I would like to get the text from an GetEntry
> widget, is there a graceful way to get a pointer to the entry?
>
> It looks like my options are passing a GList of the widget pointers I'll be
> interested in during the callback, or getting the ancestor container of the
> button and iterating through the children.
>
> Is there anything analogous to XtNameToWidget?
Glade outputs a lookup_widget() function in support.c that you can use.
See the FAQ on http://glade.gnome.org
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]