Re: Changing cursors
- From: Havoc Pennington <hp redhat com>
- To: Marco Quezada <mquezada nlxcorp com>
- Cc: kirk waters noaa gov, gtk <gtk-app-devel-list gnome org>
- Subject: Re: Changing cursors
- Date: 12 Jun 2001 17:37:13 -0400
Marco Quezada <mquezada nlxcorp com> writes:
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
This leaks the cursor, you need:
cursor = gdk_cursor_new (GDK_WATCH);
gdk_window_set_cursor (window, cursor);
gdk_cursor_destroy (cursor);
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]