Re: AW: [PHP-GTK] cvs: php-gtk /test fileselection.php

From: Date: Tue, 06 Mar 2001 18:02:10 +0000
Subject: Re: AW: [PHP-GTK] cvs: php-gtk /test fileselection.php
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-419@lists.php.net to get a copy of this message
I think you are using an old version of php-gtk. You need to get the latest version. If you are on Win32, I'll be happy to send you new binaries. On the other hand, if you have the sample you should also have the latest cvs, so just recompile php-gtk. - Frank > Stupid question from Newbie, > I tried the code and I always receive that error: > > <br> > <b>Fatal error</b>: Call to undefined function: connect_object() in > <b>fs.php< > /b> on line <b>30</b><br> > > What wrong?? > > Thanks, > Andre > > > -----Ursprüngliche Nachricht----- > Von: Frank M. Kromann [mailto:frank@frontbase.com] > Gesendet: Dienstag, 6. März 2001 19:03 > An: php-gtk@lists.php.net > Betreff: [PHP-GTK] cvs: php-gtk /test fileselection.php > > > fmk Tue Mar 6 10:02:36 2001 EDT > > Added files: > /php-gtk/test fileselection.php > Log: > Adding sample code for GtkFileSelection > > > Index: php-gtk/test/fileselection.php > +++ php-gtk/test/fileselection.php > <?php > > /* $Id: fileselection.php,v 1.1 2001/03/06 18:02:36 fmk Exp $ */ > > if (!class_exists("gtk")) { > if (strtoupper(substr(PHP_OS, 0,3) == "WIN")) > dl("php_gtk.dll"); > else > dl("php_gtk.so"); > } > > function shutdown() { > print("Shutting down.\n"); > Gtk::main_quit(); > return true; > } > > function EndDialog() { > print("ok_button clicked\n"); > return true; > } > > function CancelDialog() { > print("cansel_button clicked\n"); > return true; > } > > function FileDialog() { > $fs = &new GtkFileSelection("Save Result to file"); > $ok_button = $fs->ok_button; > $ok_button->connect("clicked", "enddialog"); > $ok_button->connect_object("clicked", "destroy", $fs); > $cancel_button = $fs->cancel_button; > $cancel_button->connect("clicked", "canceldialog"); > $cancel_button->connect_object("clicked", "destroy", $fs); > $fs->show(); > } > > $window = &new GtkWindow(GDK_WINDOW_TOPLEVEL); > $window->connect("destroy", "shutdown"); > > $button = &new GtkButton("Open File Dialog"); > $button->connect("clicked", "FileDialog"); > $window->add($button); > > $window->show_all(); > Gtk::main(); > > ?> > > > -- > 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 > > > -- > 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 (#419) next »