glade + tree view

From: Date: Thu, 31 Aug 2006 09:43:11 +0000
Subject: glade + tree view
Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-7152@lists.php.net to get a copy of this message
Hello all, Could someone show me how to poplulate the tree view in this glade file with a list of Strings of (This, treeview, thingy, is, hard). Also under properties for the tree view there is a place where we can set the TreeView Model, it opens up to "Choose a GtkTreeModel in this project" dialog, do I have to set anything there? Thank you for any help I can get. Suomaf my php file ================= <?php class loginClass extends GtkWindow { function __construct() { parent::__construct(); $this->glade = new GladeXML(dirname(__FILE__) . '/test.glade'); $this->glade->signal_autoconnect_instance($this); // $this->glade->get_widget("treeview1")-> ???? i know something goes here but i am newbie =( } } $myClassInstance = new loginClass(); //Start the main loop Gtk::main() ?> my glade file ================= <?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd"> <!-- Generated with glade3 --> <glade-interface> <widget class="GtkWindow" id="window1"> <child> <widget class="GtkVBox" id="vbox1"> <property name="visible">True</property> <child> <widget class="GtkLabel" id="label1"> <property name="visible">True</property> <property name="label" translatable="yes">Test Tree View</property> </widget> </child> <child> <widget class="GtkTreeView" id="treeview1"> <property name="visible">True</property> </widget> <packing> <property name="position">1</property> </packing> </child> <child> <widget class="GtkHButtonBox" id="hbuttonbox1"> <property name="visible">True</property> <child> <widget class="GtkButton" id="button1"> <property name="visible">True</property> <property name="label" translatable="yes">Ok </property> </widget> </child> <child> <widget class="GtkButton" id="button2"> <property name="visible">True</property> <property name="label" translatable="yes">Clear</property> </widget> <packing> <property name="position">1</property> </packing> </child> </widget> <packing> <property name="position">2</property> </packing> </child> </widget> </child> </widget> </glade-interface> -- View this message in context: http://www.nabble.com/glade-%2B-tree-view-tf2195654.html#a6076256 Sent from the Php - GTK - General forum at Nabble.com.

« previous php.gtk.general (#7152) next »