PHP-GTK News #7
Not too much going on this week. The biggest item this week is that the PHP-GTK 2 documentation is now online!
Development
GdkPixbuf::draw_rgb_image() Override:
Andrei made overrides for draw_rgb_image() and draw_rgb_32_image(). The _dithalign versions are no more. This should work now.
$pixels = $frame->get_pixels() + $rowstride * $event->area->y + $event->area->x * 3;
To quote Andrei, “And you can’t treat PHP as C. It doesn’t have pointers. The correct way to do what you want it is to use substr().”
GtkIconView::get_selected_items() Patch:
The GtkIconView patch that Christian supplied last week has been applied. If you want to use this function you will have to compile the latest CVS version.
GtkFileChooserButton bug:
While working on PEAR_PackageFileManager_GUI_Gtk2 this week, I came across an issue with GtkFileChooserButton when setting the action to Gtk::FILE_CHOOSER_ACTION_SELECT_FOLDER. Several “Gtk-CRITICAL” messages appear. These errors don’t show up for everyone and they don’t show up in simple test scripts written in PyGtk or C. The cause and a solution is still under investigation. The bug report can be found in the tests/ directory of CVS.
Documentation
PHP-GTK 2 docs on gtk.php.net!
Thanks to the amazing work by Steph, the PHP-GTK 2 docs are now available online at http://gtk.php.net/manual/en/ The PHP-GTK 1 docs are still available under manaual1/ and are the default docs at the moment. While the build system is stable, the controller scripts that build the docs on a regular basis are not. Once they have been more thoroughly tested, the new docs will be automatically updated on a regular basis.
Updated Docs: (Note: not all updates are available online quite yet, see above.)
- New tutorial on Object Oriented Programming (Anant)
- GtkWindow (Scott)
- GtkAccessible (Scott)
- Short descriptions for all Gtk* classes (Scott & Anant)
General
Server attacked:
The gtk.php.net server was attacked this week. I don’t know many details except for the fact that it had something to do with the Wiki (which will be replaced or moved soon) and that the site had to be move to a new temporary location.
New Unofficial Windows Binary:
Gnope.org has release an updated version of php_gtk2.dll for Windows users.
“For all those people that don’t want to wait until the new Gnope version is out: You can have the new php-gtk2.dll by simply installing a Gnope package now!
The package is “Gnope_PHPGtk2_dll” and can be found at
http://gnope.org/pearfront/index.php?package=Gnope_PHPGtk2_dll“
PHP Quebec:
Andrei gave a talk about PHP-GTK 2 this week at the PHP Quebec conference. His talk focused on the changes from PHP-GTK 1 to PHP-GTK 2 including the new text widgets and the model/view structure. The slides from the talk are available at Andrei’s website: gravitonic.com.
PEAR
New Releases:
Gtk2_IndexedComboBox-0.1.0(beta):
- NULL values can be used to unset the value
- get_array() method
- unit tests
