Re: GtkDialog Part 2

From: Date: Sun, 22 Jul 2001 07:54:09 +0000
Subject: Re: GtkDialog Part 2
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2307@lists.php.net to get a copy of this message
Can you try $this->send_button = new GtkButton()? At 03:43 PM 7/21/01 -0400, Rich Payne wrote:
Rich, you are a treasure source of interesting bugs. ;-) I do my best :) This one was actually in the Zend engine and I've fixed it in CVS. OK, I've updated from CVS all of php, Zend, TSRM and php-gtk, and compiled eveything. Now I'm getting something new...completly unrelated to GtkDialog. There error I'm getting is: <br> <b>Fatal error</b>: Cannot create references to/from string offsets nor overloaded objects in <b>/home/rdp/rdp_projects/teak/compose_class.php</b> on line <b>55</b><br> the offending line looks like this:
        $this->send_button = &new GtkButton();
this is part of a class, looks someting like: Class Compose_Window extends GtkWindow {
        var $send_button;
        .....
        function Compose_Window () {
                        .....
                        $this->send_button = &new GtkButton();
                        .....
        }
} Is this not valid syntax ? This worked fine yesterday with 4.0.6 and current php-gtk. Wonder if a note needs to be made in the FAQ or something about this, since people might get bitten by it before 4.0.7 comes out. That's probably a good idea. thanks, --rdp -- Rich Payne
rpayne@alphalinux.org                   www.alphalinux.org
-- PHP GTK Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-gtk-unsubscribe@lists.php.net For additional commands, e-mail: php-gtk-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net
-Andrei

« previous php.gtk (#2307) next »