forked from AuroraMiddleware/gtk
26c24328d5
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 |
||
---|---|---|
.. | ||
images | ||
broadway.xml | ||
broadwayd.xml | ||
building.sgml | ||
compiling.sgml | ||
drawing-model.xml | ||
getting_started.xml | ||
glossary.xml | ||
gtk3-demo-application.xml | ||
gtk3-demo.xml | ||
gtk3-icon-browser.xml | ||
gtk3-overrides.txt | ||
gtk3-sections.txt | ||
gtk3-widget-factory.xml | ||
gtk3.types.in | ||
gtk-builder-tool.xml | ||
gtk-docs.sgml | ||
gtk-encode-symbolic-svg.xml | ||
gtk-launch.xml | ||
gtk-query-immodules-3.0.xml | ||
gtk-update-icon-cache.xml | ||
input-handling.xml | ||
Makefile.am | ||
migrating-2to3.xml | ||
migrating-checklist.sgml | ||
migrating-GtkGrid.xml | ||
migrating-GtkStyleContext.xml | ||
migrating-smclient-GtkApplication.xml | ||
migrating-unique-GtkApplication.xml | ||
mir.xml | ||
osx.sgml | ||
other_software.sgml | ||
overview.xml | ||
question_index.sgml | ||
resources.sgml | ||
running.sgml | ||
text_widget.sgml | ||
tree_widget.sgml | ||
version.xml.in | ||
visual_index.xml | ||
wayland.xml | ||
windows.sgml | ||
x11.sgml |