using GLib; using Gtk; public class TestWindow : Window { public void do_test () { var pixmap = new Gdk.Pixmap (window, 1, 1, 1); Gdk.Color color; color.pixel = 0; color.red = (ushort) 0; color.green = (ushort) 0; color.blue = (ushort) 0; Gdk.Cursor cursor = new Gdk.Cursor.from_pixmap (pixmap, pixmap, out color, out color, 0, 0); window.set_cursor (cursor); } public static int main (string[] args) { Gtk.init (out args); var win = new TestWindow (); win.show (); win.do_test (); win.destroy += Gtk.main_quit; Gtk.main (); return 0; } }