Re: setting the wait mouse cursor during a longer load operation
- From: Allin Cottrell <cottrell wfu edu>
- To: Stefan Kost <kost imn htwk-leipzig de>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: setting the wait mouse cursor during a longer load operation
- Date: Fri, 24 Sep 2004 22:13:47 -0400 (EDT)
On Sat, 25 Sep 2004, Stefan Kost wrote:
when loading a long file I would like to disabled events for the
main-window and set a wait mouse-coursor for it.
Here's what I do:
if (whatever) {
GdkCursor *plswait;
plswait = gdk_cursor_new(GDK_WATCH);
gdk_pointer_grab(mywindow, TRUE,
GDK_POINTER_MOTION_MASK | GDK_BUTTON_PRESS_MASK |
GDK_BUTTON_RELEASE_MASK,
NULL, plswait,
GDK_CURRENT_TIME);
gdk_cursor_destroy(plswait);
/* do whatever needs to be done, then... */
gdk_pointer_ungrab(GDK_CURRENT_TIME);
}
Allin Cottrell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]