PHP-GTK News #18

This week’s PHP-GTK News is again full of development patches as the push toward an alpha release continues. In addition, there is the announcement of an upcoming PHP-GTK 2 talk and a new 2D graphics package written in PHP-GTK 2.

Here’s the news in brief:

  • Gtk::timeout_add() memory leak fixed
  • TreeModel delete row crash will not be fixed
  • A slew of patches
  • A couple of documentation updates
  • A PHP-GTK 2 talk is scheduled for php|works
  • A 2D graphics package for PHP-GTK 2 is now available

Read on for details of the PHP-GTK news for June 14th through the 21st.

Development

GtkTreeModel Delete Row Crash:
The previously reported crash that occurs when trying to delete GtkTreeModel rows while in a foreach() callback, will not be fixed. This is because it is a known issue with Gtk+. During the callbacks called by some methods, such as foreach(), you may not delete rows of a model. Doing so causes a double free memory corruption.
To get around this, you can create an array of iters for the rows that are to be deleted during the foreach call and then delete them later.

Memory Leak Fixed:
The previously reported memory leak (bug #37787) which occured when Gtk::timeout_add() was used within a class, has been fixed. It is now safe to use Gtk::timeout_add() anywhere.

More Patches:
This weeks patches have pushed the development coverage up to 88%!
GtkColorSelection::get_color()
GtkColorSelection::set_color()
GtkEntryCompletion::get_text_column()
GtkEntryCompletion::set_match_func()
GtkFileFilter::list_filters()
GtkFileFilter::list_shortcut_folders()
GtkFileFilter::list_shortcut_folder_uris()
GtkSourceView::get_mime_types()
GtkSourceView::get_tags()
GtkTextTagTable::foreach()
GtkTreeSelection::selected_foreach()
GtkTreeSelection::set_select_function()
GtkTreeView::set_search_equal_func()
GtkTreeView::set_column_drag_function()

Documentation

Documentation Updates: (coverage)
GtkEntryCompletion (Pablo)
GtkMessageDialog (Scott)

General

PHP|Works:
Andrei has been selected to give a talk at PHP|Works in Toronto this September. His talk, simply titled “PHP-GTK 2″ will take place on the last day of the conference. Anyone interested in learning about PHP-GTK 2 from the creator himself, should definitely try to attend.

IRC

GxLib 2D Graphics Package:
Marc Quinton from the PHP-GTK IRC channel (#php-gtk on freenode) has created a 2d graphics package, called GxLib, for PHP-GTK 2. The package allows for transformations of lines and simple shapes. It is a very interesting example of what can be done with PHP-GTK 2.

Leave a Reply

You must be logged in to post a comment.