|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37500 Patches for GtkContainer::get/set_focus_chain, GtkWindow::g/s_default_icons
Submitted: 2006-05-18 14:32 UTC Modified: 2006-06-09 17:44 UTC
From: Assigned:
Status: Closed Package: PHP-GTK related
PHP Version: 5.1.4 OS: any
Private report: No CVE-ID: None
 [2006-05-18 14:32 UTC]
Attached are patches for the following methods:

The patch files can be found at


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-03 19:39 UTC]
A couple of notes:

1. You should prepend the widgets to the focus chain, instead of appending. Also, use better error messages:

+        if (php_gtk_check_class(*php_widget, gtkwidget_ce)) {
+            GtkWidget *widget = GTK_WIDGET(PHPG_GOBJECT(*php_widget));
+            widgets = g_list_prepend(widgets, widget);
+        } else {
+            php_error(E_WARNING, "%s::%s() requires the focus chain elements to be objects of class GtkWidget", get_active_class_name(NULL TSRMLS_CC), get_active_function_name(TSRMLS_C));
+        }

2. Why do you have this in gtk.defs:

+(define-function gtk_tree_model_filter_new

3. See #1 for set_(default)_icon_list() also.
 [2006-06-09 17:44 UTC]
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 23:01:27 2024 UTC