cvs: php-gtk /test hello.php
| From: | Frank M. Kromann | Date: | Sat, 03 Mar 2001 18:46:09 +0000 |
| Subject: | cvs: php-gtk /test hello.php | ||
| Groups: | php.gtk | ||
| Request: | Send a blank email to php-gtk+get-197@lists.php.net to get a copy of this message | ||
fmk Sat Mar 3 10:46:09 2001 EDT
Modified files:
/php-gtk/test hello.php
Log:
Removing PHP warnings from Hello World.
Index: php-gtk/test/hello.php
diff -u php-gtk/test/hello.php:1.3 php-gtk/test/hello.php:1.4
--- php-gtk/test/hello.php:1.3 Fri Mar 2 05:18:36 2001
+++ php-gtk/test/hello.php Sat Mar 3 10:46:09 2001
@@ -38,8 +38,8 @@
* functions. Note that all constructors must be assigned by reference.
*/
$window = &new GtkWindow();
-$window->connect('destroy', destroy);
-$window->connect('delete-event', delete_event);
+$window->connect('destroy', 'destroy');
+$window->connect('delete-event', 'delete_event');
$window->set_border_width(10);
/*
@@ -47,7 +47,7 @@
* the button to the window.
*/
$button = &new GtkButton('Hello World!');
-$button->connect('clicked', hello);
+$button->connect('clicked', 'hello');
$window->add($button);
/*