how to display busy cursor

interesting post on mailing list

void busy_stuff ()
GdkDisplay *display;
GdkCursor *cursor;
GdkWindow *window;
gint x, y;

cursor = gdk_cursor_new(GDK_WATCH);

display = gdk_display_get_default();
window = gdk_display_get_window_at_pointer(disp, &x, &y);

gdk_window_set_cursor(window, cursor);

/* do time-consuming stuff here */

gdk_window_set_cursor(window, NULL);

gdk_cursor_unref() prevent memory leak

Mailing list archive


Published by


Different. In a good way

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s