Re: libglade

From: Date: Thu, 15 Mar 2001 20:42:54 +0000
Subject: Re: libglade
References: 1 2 3  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-941@lists.php.net to get a copy of this message
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.. -Andrei * Black holes are where God divided by zero. *

« previous php.gtk (#941) next »