GtkEntry Mystery

From: Date: Mon, 06 Nov 2006 03:20:48 +0000
Subject: GtkEntry Mystery
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3517@lists.php.net to get a copy of this message
Hi all, Problem: No character shows up on first call to GtkEntry::get_chars() Operating system: Windows, Linux, FreeBSD Code: <?php function preProcess($widget, $event) { $position = $widget->get_position(); $char = $widget->get_chars(0, -1); echo("position = $position, char = $char\n"); } // preProcess() $entry = new GtkEntry(); $entry->connect("key-press-event", "preProcess"); $window = new GtkWindow(); $window->add($entry); $window->connect_simple("destroy", array("gtk", "main_quit")); $window->show_all(); gtk::main(); ?> Is this a bug, or is there some other value I should be passing as the zeroth argument? I tried '-1' and it core dumped (which makes sense, of course). Please advise. -Ron T. -- View this message in context: http://www.nabble.com/GtkEntry-Mystery-tf2580187.html#a7192739 Sent from the Php - GTK - Dev mailing list archive at Nabble.com.

« previous php.gtk.dev (#3517) next »