AW: [PHP-GTK] cvs: php-gtk /test fileselection.php
| From: | André Basse | Date: | Tue, 06 Mar 2001 18:11:11 +0000 |
| Subject: | AW: [PHP-GTK] cvs: php-gtk /test fileselection.php | ||
| References: | 1 | Groups: | php.gtk |
| Request: | Send a blank email to php-gtk+get-417@lists.php.net to get a copy of this message | ||
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