Ticket #3134 (new defect)

Opened 3 years ago

Last modified 2 years ago

GTK list functionality missing

Reported by: weyrick Assigned to: anonymous
Priority: normal Milestone:
Component: GTK Version: trunk
Severity: minor Keywords:
Cc:

Description (Last modified by weyrick)

When I wanted to use a GtkList widget I noticed that in PCC 1.6.1 there are none of the insertig methods (insert_items, append_items, prepend_items) are implemented! At least the append_items method should been there as listed for the phpgtk manual at http://gtk.php.net/manual/en/gtk.gtklist.method.append_items.php
Other functions listed at http://www.gtk.org/tutorial1.2/gtk_tut-31.html would be useful, too.
I know that I may use a CList, but a CList is some kinde of overdressed for this use.

Example Code:
$this->personel_index = unserialize(file_get_contents(DATA_DIRECTORY.'/index.ser'));
foreach($this->personel_index as $uid => $name)
{
$this->personeldata[$uid] = array('ListItem' => new GtkListItem($name));
$this->personellist->insert_items(array($this->personeldata[$uid]['ListItem']));
}
Result:
Runtime error in file C:\Program Files\Roadsend\projects\time-puncher\main.php on line 51: Calling method GtkList->insert_items: undefined method.

Change History

12/15/06 09:48:22 changed by root

  • milestone deleted.

Milestone 1.6.x deleted

04/15/07 09:26:20 changed by weyrick

  • version changed from 1.6.x to HEAD.
  • type set to defect.
  • description changed.