weeda
Joined: 12 Jun 2006 Posts: 10
|
Posted: Mon Jun 19, 2006 10:42 am Post subject: Dynamic Build Types for GtkListStore |
|
|
Hi,
I need some help. I want to dynamically build a string for the TYPES to build a GtkListStore. I read somewhere that this should work:
(The variable $keys is the array of column names from mysql query)
...
$ListStoreTypes = array();
$ListStoreTypes = array_fill(0,count($keys),Gtk::TYPE_STRING);
$store = new GtkListStore();
$store-> set_column_types($ListStoreTypes);
...
It's not working for me, i got the following error:
Warning:GtkListStore::_construct() requires at least 1 argument at XXX
If it's not good this way, how can i resolve my problem?
Thanks. |
|