Re: Difference between connect and connect_objcet ?

From: Date: Sat, 14 Apr 2001 17:06:27 +0000
Subject: Re: Difference between connect and connect_objcet ?
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1390@lists.php.net to get a copy of this message
At 06:51 PM 4/14/01 +0200, Markus Fischer wrote:
Andrei, Is there any real difference between connect and object_connect ? I've looked at wrap_gtk_signal_connect_impl() and I see you pass a '1' if the user calls _object, but so far I've only used connect() to connect objects and had no problem yet.
Yes, connect_object() is useful when you want to call existing PHP-GTK class methods, for example, if you used connect('destroy', array('gtk', 'main_quit')) it would try to pass the destructed window as the argument to that method, and that method doesn't expect any arguments. So, connect_object() does not pass the main object as the first argument. -Andrei

« previous php.gtk (#1390) next »