Re: GTK_CAN_FOCUS(done);how to force the display of a gtk error

From: Date: Thu, 13 Jan 2005 15:25:25 +0000
Subject: Re: GTK_CAN_FOCUS(done);how to force the display of a gtk error
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-5436@lists.php.net to get a copy of this message
I have just solved the problem: it was a $window->realize() before the $entry->grab_focus(); When I have called realize() after the grab_focus() call, it worked fine. I still don't know how to display a GTK related error. I have in php.ini E~ALL , but it did not warned my somehow that he can not grab_focus() [actually I see is rather difficult to warn me, hmmm] ------------------------------ Dragos GROSU Subject: GTK_CAN_FOCUS (Thursday, January 13, 2005) Content: > To set widget focused you need to set the flag GTK_CAN_FOCUS, trye doing this: > $entry = new GtkEntry(); $entry->>set_flags(GTK_CAN_FOCUS); $entry->>grab_focus(); $entry->>show(); > Regards

« previous php.gtk.general (#5436) next »