GtkComboBox
| From: | Breizh Micro Services | Date: | Tue, 21 Feb 2006 11:11:16 +0000 |
| Subject: | GtkComboBox | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-6761@lists.php.net to get a copy of this message | ||
Hi,
I am trying this code :
$window = new GtkWindow('GTK_WINDOW_TOPLEVEL');
$window->set_position('GTK_WIN_POS_CENTER');
$window->connect_simple('destroy', array('gtk', 'main_quit'));
$window->set_size_request(800,600);
$combo_data = array ( array( "combo1"),array("combo2"),array("combo3"),array("combo4"));
$combo = new GtkComboBox();$store = new GtkListStore("Gtk::TYPE_STRING"); $combo->set_model($store); foreach ($combo_data as $value){
$store->append(array($value));
}
$window->add($combo);
$window->show_all();
Gtk::main();
It seems to work but the text into the combobox is invisible ! I have the right number of row displayed but nothing readable ! What's wrong with my code ?
Thanks,
Breizh.