Re: libglade

From: Date: Wed, 14 Mar 2001 12:50:31 +0000
Subject: Re: libglade
References: 1  Groups: php.gtk 
Request: Send a blank email to php-gtk+get-852@lists.php.net to get a copy of this message
Sorry...but how i can make to my php support Libglade? ...i say, this, because i try run your example, and my php say that Don't know the class GladeXML...then i suppose that not is built-in in php gtk or this is wrong? ...thanks, Robert Celestino ----- Original Message ----- From: "Barry Mitchelson" <barrym@theshining.demon.co.uk> To: <php-gtk@lists.php.net> Sent: Wednesday, March 14, 2001 8:09 AM Subject: [PHP-GTK] libglade > hi, > > messing around with libglade, and having a problem. I can't seem to connect a signal handler to a widget .. > > here's my code : > > ---libglade.php--- > #!/usr/local/bin/php -q > <? > > function quit() > { > Gtk::main_quit(); > } > > $foo = &new GladeXML("foo.xml"); > > $foo->signal_autoconnect(); > > Gtk::main(); > ?> > ---end--- > > and my foo.xml : > > ---foo.xml--- > <GTK-Interface> > <widget> > <class>GtkWindow</class> > <name>MainWindow</name> > <x>30</x> > <y>30</y> > <width>300</width> > <height>300</height> > <signal> > <name>destroy</name> > <handler>quit</handler> > </signal> > </widget> > </GTK-Interface> > > ---end--- > > the window is created fine, but i get this error : > > ** WARNING **: could not find signal handler 'quit'. > > any ideas ? > > barry > > > -- > http://www.theshining.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 > >

« previous php.gtk (#852) next »