Re: Re: Some missing things

From: Date: Thu, 28 Apr 2005 05:50:22 +0000
Subject: Re: Re: Some missing things
References: 1 2 3  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-1204@lists.php.net to get a copy of this message
new GtkButton("_Click me", true)
IMO it should be consistent over classes, and requiring a second parameter for the GtkButton constructor to achieve the same as GtkCheckButton does without is not consistent.
I just checked and GtkCheckButton does the same thing as GtkButton. static PHP_METHOD(GtkButton, __construct) { ..
    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|sb", &text, &use_underline)) {
        PHPG_THROW_CONSTRUCT_EXCEPTION(GtkButton);
    }
.. } static PHP_METHOD(GtkCheckButton, __construct) { ..
    if (!php_gtk_parse_args(ZEND_NUM_ARGS(), "|sb", &text, &use_underline)) {
        PHPG_THROW_CONSTRUCT_EXCEPTION(GtkCheckButton);
    }
.. } Are you saying it doesn't work? -Andrei

« previous php.gtk.dev (#1204) next »