GDK set_cursor

From: Date: Thu, 19 May 2005 10:13:19 +0000
Subject: GDK set_cursor
Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-1297@lists.php.net to get a copy of this message
Hi, I'm trying to set a custom cursor on a window, the operation should be the following in C: cursor = gdk_cursor_new (GDK_WATCH); gdk_window_set_cursor (GTK_WIDGET (mainwindow)->window, cursor); gdk_cursor_unref (cursor); I can create a new cursor with $c = new GdkCursor(Gdk::WATCH); but I can't find a way to call gdk_window_set_cursor correctly. It's defined as GdkWindow::set_cursor but refers to 'this_ptr' in the source, when there's no object context to call it from; calling it statically fails: gdk_window_set_cursor(GDK_WINDOW(PHPG_OBJECT(this_ptr)), cursor); any ideas? - Markus

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