Re: more cleaning up...
| From: | Christian Weiske | Date: | Mon, 19 Jun 2006 04:51:32 +0000 |
| Subject: | Re: more cleaning up... | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-3085@lists.php.net to get a copy of this message | ||
> Where do we throw exceptions on wrong arguments?
ext/gtk+/gtk.overrides:
#1099: gtk_button_new
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|ub", &text, &free_text,
&use_underline)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkButton);
}
#1135: gtk_button_new_from_stock
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "u", &stock_id,
&free_stock_id)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkButton);
}
#1245: gtk_check_button_new
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|ub", &text, &free_text,
&use_underline)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkCheckButton);
}
#1282: gtk_check_menu_item_new
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|ub", &text, &free_text,
&use_underline)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkMenuItem);
}
#1523: gtk_combo_box_new
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|N", &php_model,
gtktreemodel_ce)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkComboBox);
}
#1614: gtk_dialog_new_with_buttons
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|uNVa", &title,
&free_title, &php_parent, gtkwindow_ce, &php_flags, &buttons)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkDialog);
}
#2275: gtk_file_chooser_dialog_new_with_backend
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|uNVau", &title,
&free_title, &php_parent,
gtkwindow_ce, &php_action, &buttons,
&backend, &free_backend)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkFileChooserDialog);
}
#2242: gtk_icon_view_new
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|N", &php_model,
gtktreemodel_ce)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkIconView);
}
#2570: gtk_image_menu_item_new
if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|uO", &stock_id,
&free_stock_id, &php_accel_group, gtkaccelgroup_ce)) {
PHPG_THROW_CONSTRUCT_EXCEPTION(GtkImageMenuItem);
}
.. and more
>> 2) We still have the gtk and gdk overrides from PHP-GTK 1 in the
>> source. Are these still useful to anyone or can we lose them now?
ext/gtk+/v1.gdk.overrides
ext/gtk+/v1.gtk.overrides
--
Regards/MfG,
Christian Weiske
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc