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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: matt at deeks dot biz
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Mon Dec 02 17:01:35 2024 UTC