Re: GDK set_cursor
| From: | Markus Fischer | Date: | Thu, 19 May 2005 20:14:32 +0000 |
| Subject: | Re: GDK set_cursor | ||
| References: | 1 2 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-1300@lists.php.net to get a copy of this message | ||
Hi,
Tom Rogers wrote:
This is what I do on a double click ctree window to show a watch: if ($event->type == GDK_2BUTTON_PRESS){ $ctree->freeze(); $c = 150; //watch $c = $c & 0xfe; $cursor = gdk::cursor_new($c); $window = $ctree->window; $window->set_cursor($cursor); //give it a chance to paint new cursor while(gtk::events_pending()) gtk::main_iteration(); //do file loading stuff here . . . $window = $ctree->window; $window->set_cursor(); //default $ctree->thaw(); }I'm working with php-gtk2, not 1. - Markus