PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Parmeter for GtkListStore (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Parmeter for GtkListStore
#970
tropico (User)
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Parmeter for GtkListStore 1 Month, 1 Week ago Karma: 0  
I would build a generic class to build a GtkListStore but I'm not able to found a way to parametrize the list store .....
$this-> model = new GtkListStore(GObject::TYPE_STRING, GObject::TYPE_STRING, GObject::TYPE_STRING, GObject::TYPE_STRING, GObject::TYPE_LONG);
...

Sorry I ve found the solution..here:

Sample Code 497: How to display a flat file database in treeview with dynamically created GtkListStore.


-
 
 
Last Edit: 2008/10/11 17:41 By tropico.
  The administrator has disabled public write access.
#973
kksou (Admin)
Admin
Posts: 391
graph
User Online Now Click here to see the profile of this user
Re:Parmeter for GtkListStore 1 Month, 1 Week ago Karma: 8  
Yes, that's right. I was about to refer you to that sample code. And just saw that you found it yourself.

For those interested, this is the sample code that shows you how to create a treestore / liststore model on-the-fly when you do not know the exact number of columns when you first run your application.

Sample Code 497: How to display a flat file database in treeview with dynamically created GtkListStore model - Part 1?

Regards,
/kksou
 
 
Last Edit: 2008/10/11 21:42 By kksou.
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Copyright © 2006-2008. kksou.com. All Rights Reserved