Closed Bug 310924 Opened 19 years ago Closed 10 years ago

use X cursor theme for more cursors

Categories

(Core :: Widget: Gtk, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30

People

(Reporter: chpe, Assigned: flying-sheep)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file, 2 obsolete files)

While the gtk2 widget code makes use of some themeable cursors (those available
in stock gtk2 with gdk_cursor_new), it only uses its builtin images for some
other cursors, like "help" and "copy", which may be available in the X cursor
theme and be used with gdk_cursor_new_from_name.
Attached patch first patch (obsolete) — Splinter Review
The patch still has some shortcoming:
- themed gdkcursors automatically update themselves when the theme changes.
However in case the previous theme didn't have the cursor and therefore we used
our builtin pixmap, this update does not happen (until the next start, of
course)
- gdk_cursor_new_from_name is only available in gdk 2.8 and the patch uses it
unconditionally. Probably needs to resort to the usual dynamic lib stuff :(
Status: UNCONFIRMED → NEW
Ever confirmed: true
*** Bug 336665 has been marked as a duplicate of this bug. ***
check out my patch idea on https://bugzilla.mozilla.org/show_bug.cgi?id=609889#c11
people, what’s going on? GTK 2.8 is now several years old, time to simply unconditionally depend on it and fix this.
Attached patch cursors.patch (obsolete) — Splinter Review
so, i hope someone sees this.

i did it. all cursors (except the zoom ones) now work with GNOME’s default theme DMZ, and all cursors except the crosshair work in KDE (which is a bug there: https://github.com/ruphy/oxy-cursors/issues/2 and https://bugs.kde.org/show_bug.cgi?id=290356)
Attachment #8377517 - Flags: review?(karlt)
Attachment #8377517 - Flags: review?(karlt) → review+
Keywords: checkin-needed
Attached patch cursors.patchSplinter Review
updated patch with author and stuff
Attachment #8377517 - Attachment is obsolete: true
Attachment #198308 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/068ed8d0e7c2
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Assignee: blizzard → flying-sheep
Depends on: 1025616
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: