Re: GtkEntry Mystery

From: Date: Mon, 06 Nov 2006 03:46:36 +0000
Subject: Re: GtkEntry Mystery
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-3519@lists.php.net to get a copy of this message
I forgot to mention the versions of php-gtk2: Windows: Gnope 1.5.1 (date stamp: July 18, 2006) Linux: 2006-09-14 FreeBSD: 2006-09-14 -Ron T. someGuy wrote: > > 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#a7192923 Sent from the Php - GTK - Dev mailing list archive at Nabble.com.

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