cgtkmouse-cursor

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


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.


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)