Re: [PHP-GTK] GtkDialog Part 2

[email protected] (Rich Payne)
Newsgroups php.gtk
Message-ID <[email protected]>
If I do that then I get:

<br>
<b>Fatal error</b>:  Class 'compose_window' does not support overloaded
method calls in <b>/home/rdp/rdp_projects/teak/compose_class.php</b> on
line <b>61</b><br>

which comes from this line:

	$this->send_button->add($send_box);

$send_box is just a GtkHbox.

--rdp

On Sun, 22 Jul 2001, Andrei Zmievski wrote:

> 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
> >[email protected]                   www.alphalinux.org
> >
> >
> >--
> >PHP GTK Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [email protected]
> >For additional commands, e-mail: [email protected]
> >To contact the list administrators, e-mail: [email protected]
> 
> -Andrei
> 

-- 
Rich Payne
[email protected]			www.alphalinux.org
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.