Re: Type to store anything in a GtkTreeStore/GtkListStore

From: Date: Mon, 21 Nov 2005 22:51:43 +0000
Subject: Re: Type to store anything in a GtkTreeStore/GtkListStore
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-2083@lists.php.net to get a copy of this message
Gtk::TYPE_PHP_VALUE is supposed to be able to store anything. What sort of problems do you run into with it? - Andrei On Nov 21, 2005, at 2:10 PM, Christian Weiske wrote:
Hello all, I'm wondering what type I could use to store any object/value of simple data type in a GtkTreeStore or GtkListStore. (PHP-Gtk2) Currently I have the following code:
new GtkTreeStore(Gtk::TYPE_PHP_VALUE);
which allows me to store any php object and array in the model. Downside is that I can't add GtkWidgets into it. On the other side, if I do
new GtkTreeStore(Gtk::TYPE_OBJECT);
I can add widgets, but no php objects or arrays. For both, I can't add simple data types like strings, ints, floats and so on. Is there a one-covers-all type I could use? -- Regards/MfG, Christian Weiske


« previous php.gtk.dev (#2083) next »