How to change the cursor to a watch in GTK for C?

c, gtk, mouse-cursor

Solution

Use `gdk_set_cursor()`

(https://developer.gnome.org/gdk3/stable/gdk3-Windows.html#gdk-window-set-cursor)

on a GdkCursor created by `gdk_cursor_new()`

(https://developer.gnome.org/gdk3/stable/gdk3-Cursors.html)

Problem

I'm using the C-style GTK functions in C++ and I can't figure out how to set the cursor for the main window.

Original source