gtk2/gdk/win32
Руслан Ижбулатов 26c24328d5 GDK: Add cursor theme support to W32 backend
Load themed cursors from the same places they are loaded on freedesktop systems,
but use W32 API functions to do so (works for .cur/.ani cursors instead of X
cursors).

Refactor the code for cursor handling. Prefer loading cursors by name.

Do not load actual cursors when loading the theme. Find the files and remember
the arguments/calls for loading them instead. Keeping HCURSOR instance in the
hashmap would result in multiple GdkCursors using the same HCURSOR. Given that
we use DestroyCursor() to off them, this would cause problems (at the very
least - DestroyCursor() would fail).

Store GdkCursor instances in a cache. Update cached cursors when theme changes.

Recognize "system" theme as a special (and default) case. When it is set,
prefer system cursors and fall back to Adwaita cursors and (as a last resort)
built-in X cursors. Otherwise prefer theme cursors and fall back to system and
X cursors.

Force GTK to use "left_ptr" cursor when no cursor is set. Using NULL makes
it use the system default "arrow", which is not the intended behaviour when
a non-system theme is selected.

Ignore cursor size setting and query the OS for the required cursor size, as
Windows (almost) does not allow setting cursors of arbitrary size.

https://bugzilla.gnome.org/show_bug.cgi?id=749287
2015-05-20 08:42:24 +00:00
..
rc Fix windres invocation 2012-06-19 12:16:15 +08:00
bdfcursor.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
cursor.bdf
gdkcursor-win32.c GDK: Add cursor theme support to W32 backend 2015-05-20 08:42:24 +00:00
gdkdevice-virtual.c GDK: Use GdkCursor objects to keep track of W32 cursors, not HCURSOR 2015-05-20 08:40:43 +00:00
gdkdevice-virtual.h GDK-Win32: Ensure sources use UNIX line endings 2013-12-04 08:57:43 +08:00
gdkdevice-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkdevice-win32.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkdevice-wintab.c Fix various warnings about unused things 2014-08-13 23:38:47 +00:00
gdkdevice-wintab.h win32: Fix up wintab support 2012-04-03 11:37:42 +02:00
gdkdevicemanager-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkdevicemanager-win32.h win32: Fix up wintab support 2012-04-03 11:37:42 +02:00
gdkdisplay-win32.c GDK: Add cursor theme support to W32 backend 2015-05-20 08:42:24 +00:00
gdkdisplay-win32.h GDK: Add cursor theme support to W32 backend 2015-05-20 08:42:24 +00:00
gdkdisplaymanager-win32.c win32: Call windowing init from display_class_init() 2013-05-02 15:36:41 +02:00
gdkdnd-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkevents-win32.c GDK: Use GdkCursor objects to keep track of W32 cursors, not HCURSOR 2015-05-20 08:40:43 +00:00
gdkgeometry-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkglcontext-win32.c gdkglcontext-win32.c: Remove Obsolete Comments 2015-04-30 19:50:30 +08:00
gdkglcontext-win32.h gl: Drop profile for gdk_window_create_gl_context() 2015-02-12 12:34:28 +00:00
gdkglobals-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkinput.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkkeys-win32.c Use GDK_KEY_KP_Decimal instead of GDK_KP_Decimal 2015-05-04 15:32:22 +00:00
gdkmain-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkprivate-win32.h GDK: Add cursor theme support to W32 backend 2015-05-20 08:42:24 +00:00
gdkproperty-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkscreen-win32.c Enable RGBA windows on W32 2015-04-29 21:12:13 +00:00
gdkselection-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdktestutils-win32.c win32: provide an implementation for gdk_test_simulate_key(). 2014-09-22 21:22:33 -04:00
gdkvisual-win32.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32.h GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32cursor.h GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32display.h GDK: Add cursor theme support to W32 backend 2015-05-20 08:42:24 +00:00
gdkwin32displaymanager.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32dnd.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32glcontext.h Add OpenGL Support for the GDK Windows Backend 2014-12-17 16:07:02 +08:00
gdkwin32id.c GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32keys.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkwin32misc.h GDK/GTK on Windows: Fix build 2013-08-26 10:29:23 +08:00
gdkwin32screen.h GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwin32window.h GDK-W32: remove trailing whitespace everywhere 2015-04-29 21:12:14 +00:00
gdkwindow-win32.c GDK: Add cursor theme support to W32 backend 2015-05-20 08:42:24 +00:00
gdkwindow-win32.h GDK: Use GdkCursor objects to keep track of W32 cursors, not HCURSOR 2015-05-20 08:40:43 +00:00
libwntab32x.la
Makefile.am Add OpenGL Support for the GDK Windows Backend 2014-12-17 16:07:02 +08:00
makefile.msc
pktdef.h
wintab.h
xcursors.h