|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45185 creating a GtklistStore
Submitted: 2008-06-05 11:51 UTC Modified: 2008-06-05 13:27 UTC
From: matt at deeks dot biz Assigned:
Status: Not a bug Package: PHP-GTK related
PHP Version: 5.2.6 OS: Win XP sp2
Private report: No CVE-ID: None
 [2008-06-05 11:51 UTC] matt at deeks dot biz
When creating a GtkListStore I get an error

Reproduce code:
$store = new GtkListStore(Gtk::TYPE_STRING, Gtk::TYPE_LONG);

Expected result:
the list store to be created

Actual result:
Fatal error: Undefined class constant 'TYPE_STRING'


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-05 13:27 UTC]
Starting with PHP-GTK 2.0.0 the TYPE constants were moved from the Gtk:: class to Gobject, so use Gobject::TYPE_STRING instead.

This is fixed in the new documentation, but it's not on the website yet (we're migrating it to the new PHP manual format)  and is also addressed in the PHP-GTK changelog

It was also discussed on the mailing lists - please check the mailing list archives, the irc channel, or other sources of help instead of filing bugs for coding issues.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 21:01:32 2024 UTC