Re: libglade
| From: | Iuri Fiedoruk | Date: | Thu, 15 Mar 2001 20:58:06 +0000 |
| Subject: | Re: libglade | ||
| References: | 1 2 3 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-942@lists.php.net to get a copy of this message | ||
Em Qui 15 Mar 2001 17:42, Andrei Zmievski escreveu:
> On Thu, 15 Mar 2001, Iuri Fiedoruk wrote:
> > In the meanwhile is there some way to connect signals, at last for when I
> > close the window, main-loop dies?
> >
> > This:
> > $window = &new GladeXML('/home/bart/Projects/project1/project1.glade');
> > $window->connect_object('destroy', array('gtk',
> > 'main_quit'));
> > $window->connect_object('delete-event', array('gtk',
> > 'false'));
> > Dosen't work, and more, delete-event gives a error:
>
> Try:
> $window->signal_connect('handler_name', 'signal_handler');
>
> You defined 'handler_name' in libglade when you build the interface.
> This will connect 'handler_name' to 'signal_handler' function..
I already had this:
<name>destroy</name>
<handler>main_quit</handler>
$window->connect_object('destroy', 'main_quit');
(without array now)
But it still dosen't work.
> -Andrei
> * Black holes are where God divided by zero. *
--
Iuri Fiedoruk
Santa Maria, RS, Brazil