Re: Changing cursors
- From: Marco Quezada <mquezada nlxcorp com>
- To: kirk waters noaa gov
- Cc: gtk <gtk-app-devel-list gnome org>
- Subject: Re: Changing cursors
- Date: Tue, 12 Jun 2001 12:41:08 -0400
You can use something like this:
gdk_window_set_cursor(GTK_WIDGET(window)->window,
gdk_cursor_new(GDK_WATCH));
gdk_flush();
This will use the default cursors defined in gdkcursors.h
If you want the cursor to revert to the WM default just use NULL as the
argument in gdk_cursor_new().
Kirk Waters wrote:
Maybe I've just missed it in all the documentation and the FAQ, but I
haven't come across anything about how to change the cursor.
Specifically, I'm looking to change the arrow cursor to an hourglass
during a long calculation. Is this something that needs to be done
using X calls (or Windows calls when porting)? My apologies if the
documentation on this is in some painfully obvious place that I missed.
Thanks,
Kirk
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
Marco Quezada
Aerospaceo Engineero
NLX Corporation
22626 Sally Ride Dr.
Sterling, VA, 20164
mquezada nlxcorp com
703-234-2100 x1028
http://www.nlxcorp.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]