[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Gtk Widget referencing
Hi,
On Mon, Apr 02, 2001 at 10:50:17PM +0530, Dwivedi Ajay kumar wrote:
>functions. For example I want to access the value of a spin box when a
>button is pressed. How do i do it?
> One way is to declare all pointers to these widgets global. But is
>there any other way?
There is a function lookup_widget() in support.h . That should let you
access widgets by name, i.e., you need to pass the pointer to parent widget
and the name of the child widget to get a pointer to the child widget.
HTH
--
Anand Biligiri S
----------------
There will be big changes for you but you will be happy.