Re: [REQ] Retrieving child widgets from a GtkWindow
- From: Roger Leigh <rleigh whinlatter ukfsn org>
- To: Joril - <jorilx gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: [REQ] Retrieving child widgets from a GtkWindow
- Date: Wed, 12 Jan 2005 23:22:22 +0000
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Joril - <jorilx gmail com> writes:
I was wondering, is there some way to retrieve the child widgets of
a given GtkWindow?
GList *child_widgets = gtk_container_get_children(GTK_CONTAINER(window));
(but since a GtkWindow only contains one child, you'll need to repeat
for each container in the tree.)
If you want to retrieve a specific widget, rather than all of them,
libglade can be quite useful. If you want to refer to it in normal
use, you could derive a new class from GtkWindow and store pointers to
the children of interest in there.
Regards,
Roger
- --
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
Debian GNU/Linux http://www.debian.org/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>
iD8DBQFB5bEtVcFcaSW/uEgRAotjAKC8L/fxYDMQNRlqOu44QWrQeaGetQCfZY/W
aVB/et92k4Ai/x3wISdltTM=
=Lcb2
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]