com gtk/php-gtk: Regular methods shouldn't throw exceptions.: ext/gtk+/gtktreeview.overrides

[email protected] (David Soria Parra)
Newsgroups php.gtk.cvs
Message-ID <[email protected]>
Commit:    a624f8076a7434ec7a4042c4cb0226302548488f
Author:    Andrei Zmievski <[email protected]>         Sat, 8 Jul 2006 18:08:43 +0000
Parents:   8af75de42b4705f12454af8ece95bfe36092b4cb
Branches:  master

Link:       http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=a624f8076a7434ec7a4042c4cb0226302548488f

Log:
Regular methods shouldn't throw exceptions.

Changed paths:
  M  ext/gtk+/gtktreeview.overrides


Diff:
a624f8076a7434ec7a4042c4cb0226302548488f
diff --git a/ext/gtk+/gtktreeview.overrides b/ext/gtk+/gtktreeview.overrides
index aafe928..291bdc4 100644
--- a/ext/gtk+/gtktreeview.overrides
+++ b/ext/gtk+/gtktreeview.overrides
@@ -82,7 +82,7 @@ PHP_METHOD
     if ((argc-1)% 2) {
         php_error(E_WARNING, "%s::%s() requires arguments 3-n to be attribute/column pairs",
                   get_active_class_name(NULL TSRMLS_CC), get_active_function_name(TSRMLS_C));
-        PHPG_THROW_CONSTRUCT_EXCEPTION(GtkTreeViewColumn);
+        return;
     }
 
     layout = GTK_CELL_LAYOUT(PHPG_GOBJECT(this_ptr));
@@ -98,14 +98,14 @@ PHP_METHOD
                       get_active_class_name(NULL TSRMLS_CC), get_active_function_name(TSRMLS_C),
                       i, zend_zval_type_name(attr));
             efree(args);
-            PHPG_THROW_CONSTRUCT_EXCEPTION(GtkTreeViewColumn);
+            return;
         }
         if (Z_TYPE_P(column) != IS_LONG) {
             php_error(E_WARNING, "%s::%s() requires argument %d to be an integer, %s given",
                       get_active_class_name(NULL TSRMLS_CC), get_active_function_name(TSRMLS_C),
                       i, zend_zval_type_name(column));
             efree(args);
-            PHPG_THROW_CONSTRUCT_EXCEPTION(GtkTreeViewColumn);
+            return;
         }
 
         gtk_cell_layout_add_attribute(layout, cell, Z_STRVAL_P(attr), Z_LVAL_P(column));
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.