After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 652085 - CSS cursor support
CSS cursor support
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.24.x
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on: 749177 749178
Blocks:
 
 
Reported: 2011-06-07 21:52 UTC by Ruslan Kabatsayev
Modified: 2015-07-26 05:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use standard cursor names (14.87 KB, patch)
2015-05-10 03:21 UTC, Matthias Clasen
committed Details | Review

Description Ruslan Kabatsayev 2011-06-07 21:52:02 UTC
GDK lacks at least these two cursors: col-resize and row-resize.
This makes GTK use wrong cursors for some widgets, e.g. GtkPaned (splitter hover) and GtkTreeView (column resize cursor). It uses GDK_SB_H_DOUBLE_ARROW and GDK_SB_V_DOUBLE_ARROW instead.
Comment 1 Matthias Clasen 2011-06-08 12:01:34 UTC
not sure what you mean here exactly - you don't like the look of the cursors we use ? In that case, choose a cursor theme that you like better.

Or do you mean we should be using a different, widely available cursor for these cases ? I don't see col-resize and row-resize in the cursor themes I have available around here...
Comment 2 Ruslan Kabatsayev 2011-06-08 12:19:07 UTC
Compare these cursors:
sb-h-double-arrow http://www.rw-designer.com/cursor-detail/345
col-resize: http://webdesign.about.com/od/styleproperties/ig/CSS-Cursors-Gallery/col-resize.htm

col-resize is what is used in e.g. Qt for the things i named in original report, while GTK uses sb-h-double-arrow, which doesn't look like correct cursor choice.
You can find col-resize cursor in e.g. oxy-white cursor theme. Also, it should exist in X default (fallback) theme.
Comment 3 Matthias Clasen 2011-06-08 16:21:40 UTC
Ok, this is useful information there.
Putting a reference here and retitling:

http://dev.w3.org/csswg/css3-ui/#cursor
Comment 4 Matthias Clasen 2015-05-10 03:21:19 UTC
Created attachment 303168 [details] [review]
Use standard cursor names

This changes GTK+ to use gdk_cursor_new_from_name() with the
'standard' css names, instead of GdkCursorType.
Comment 5 Matthias Clasen 2015-05-10 03:22:25 UTC
This needs to wait until all backends support the css cursor names.
Comment 6 Matthias Clasen 2015-07-26 05:55:06 UTC
Attachment 303168 [details] pushed as 5c2759a - Use standard cursor names