gnope php gtk gui gnope.org  

Dynamic Build Types for GtkListStore

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
weeda



Joined: 12 Jun 2006
Posts: 10

PostPosted: Mon Jun 19, 2006 10:42 am    Post subject: Dynamic Build Types for GtkListStore Reply with quote

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.
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Mon Jun 19, 2006 1:22 pm    Post subject: Reply with quote

Seems you have an older version of Gnope. Look at the announcements forum to get an updated php-gtk2.dll file.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.