com gtk/php-gtk: Bug script I sent to php-gtk-dev: test/bug_g tkentry_activate.phpw
[email protected] (David Soria Parra) Fri, 13 Jan 2006 09:03:06 +0000
| Newsgroups | php.gtk.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: a591c52605284181cd127ca300e264c93f4f4bdf Author: Christian Weiske <[email protected]> Fri, 13 Jan 2006 09:03:06 +0000 Parents: c1261042db4553e4e050c055f2db66b8ed6797f7 Branches: master Link: http://git.php.net/?p=gtk/php-gtk.git;a=commitdiff;h=a591c52605284181cd127ca300e264c93f4f4bdf Log: Bug script I sent to php-gtk-dev Changed paths: A test/bug_gtkentry_activate.phpw Diff: a591c52605284181cd127ca300e264c93f4f4bdf diff --git a/test/bug_gtkentry_activate.phpw b/test/bug_gtkentry_activate.phpw new file mode 100644 index 0000000..e3bc590 --- /dev/null +++ b/test/bug_gtkentry_activate.phpw @@ -0,0 +1,13 @@ +<?php +//Start it and press return. Warning will come +$wnd = new GtkWindow(); +$wnd->connect_simple('destroy', array('gtk', 'main_quit')); + +$entry = new GtkEntry(); +function echoit($value) { echo $value . "\r\n";} +$entry->connect_simple('activate', 'echoit', 'test'); + +$wnd->add($entry); +$wnd->show_all(); +Gtk::main(); +?> \ No newline at end of file