php.net |  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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 + 48 = ?
Subscribe to this entry?

 
 [2008-06-05 11:51 UTC] matt at deeks dot biz
Description:
------------
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'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-06-05 13:27 UTC] auroraeosrose@php.net
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

http://gtk.php.net/changelog.php

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: Fri Apr 19 04:01:28 2024 UTC