nameless instances of objects
- From: Azrael <azrael azrael-uk f2s com>
- To: gtk-app-devel-list gnome org
- Subject: nameless instances of objects
- Date: 11 Dec 2002 20:30:40 +0000
I was wondering if it was possible to namelessly generate instances of
'objects' in Gtk.
i.e. I have a menubar to which I want to dynamically add buttons while
my program is in operation. Now as I won't be able to give them specific
object names.. I was wondering if it was possible to set up a routine to
namelessly add a button, and then call it several times.
Much in the way I would do in java, approx: blah.add(new Button());
If I can create un-named objects/widgets/buttons how do I go about
attaching signals to them? As obviously each new button would need to
have a signal attached to it relating to the purpose it was created for.
I hope this question makes sense :)
--
Azrael
("\''/").___..--'''"-._
`0_ O ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' .'
((i).-'' ((i).' (((.-'
Of all God's creatures there is only one that cannot be made the slave
of the lash. That one is the cat. If man could be crossed with a cat it
would improve man, but it would deteriorate the cat.
ICQ#52944566
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]