Re: easy newbie question (I think)
- From: Allin Cottrell <cottrell wfu edu>
- To: Brian Clark <bc viz tamu edu>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: easy newbie question (I think)
- Date: Sun, 12 Sep 2004 22:10:01 -0400 (EDT)
On Sun, 12 Sep 2004, Brian Clark wrote:
How do I access a particular item in a gtk window? If I have a
window, which contains a box, which contains a button, how do I
access the button, when all I have is a pointer to the window?
In a word, via a wrapper struct. Most gtk functions let you pass just
one piece of "user data", but there's nothing to stop you making that
piece a pointer to a struct, which can have as many members as you
like, including, as in your case, pointers to specific widgets whose
sensitivity you want to change depending on what happens elsewhere.
Allin Cottrell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]