Re: patch: GtkRecentChoserDialog::__construct complete
| From: | Andrei Zmievski | Date: | Mon, 05 Nov 2007 20:28:06 +0000 |
| Subject: | Re: patch: GtkRecentChoserDialog::__construct complete | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-4004@lists.php.net to get a copy of this message | ||
Bob should apply for a CVS account first.
A couple of things about the patch:
Let's start using php_error_docref() instead of php_error() since we automatically get class/method name that way.
php_error(
+ E_WARNING, + "%s::%s(): button list has to contain pairs of items", + get_active_class_name(NULL TSRMLS_CC), + get_active_function_name(TSRMLS_C) + );turns into php_error_docref(NULL TSRMLS_CC, E_WARNING, "button list has to contain pairs of items")); Also, the creation of the wrapped object should be delayed until all the other checks are done. That way we avoid gtk_object_destroy() and all that stuff. -Andrei Bob Majdak Jr wrote:
From gen_gtk.log: constructor GtkRecentChooserDialog::__construct: varargs methods not supported This patch completes the GtkRecentChooserDialog::__construct(). Works the same way GtkDialog::new_with_buttons() works except no flags parametre. screenshot of it: http://www.opsat.net/temp/rcdcon.jpg gtk_recent_chooser_dialog_new(const gchar *title, GtkWindow *parent, const gchar *first_button_text, ...); GtkRecentChooserDialog::__construct(string title, GtkWindow parent, array(string label, int response, ...));