GNOME Bugzilla – Bug 128852
Gdk cursors don't look good on win32
Last modified: 2007-04-26 05:38:24 UTC
I will attach a patch that causes gdk_cursor_new to use the builtin win32 cursors where there is a good win32 equivalent for the X cursor. I don't think that my patch is a very good solution for this bug, but it's easy to do right now. The ideal solution may depend on bug #69436 being done first.
Created attachment 22235 [details] [review] Patch against gtk+-2.2.4
Can a theme engine replace cursors? If so, it probably makes more sense to just rely on people using the gtk-wimp theme engine if they want a more Windows-like appearance.
As far as I can tell, no. Cursor theming is what bug #69436 is talking about, and it hasn't been implemented yet. My patch is just a hack that works right now.
It would be nice to get this into Gdk (minus the g_print). It seems pretty natural to map these directly back onto the Win32 builtin cursors when available. The theme engine shouldn't have to worry about remapping cursors.
Makes sense to me. Tor, what do you think ?
Will an application look odd if some cursors are the builtin ones and others are the X11 ones? Maybe not a big deal. I'll check what it looks like and apply the patch unless it looks really horrible... Or maybe it should be user-overridable through .gtkrc?
Committed to trunk and gtk-2-10. I did change two of the arrows, though. I set "sb_h_double_arrow" to IDC_SIZEWE and "sb_v_double_arrow" to IDC_SIZENS (they were set to NULL in Tim's patch). I did this because paned widgets use these Gdk cursors and these two look much better than what was being used by default.