Ticket #3551 (closed defect: fixed)

Opened 13 months ago

Last modified 13 months ago

Hand cursor is wrong in GTK+3

Reported by: manuq Owned by: manuq
Priority: Unspecified by Maintainer Milestone: 0.96
Component: sugar-artwork Version: Git as of bugdate
Severity: Major Keywords: 12.1.0
Cc: erikos Distribution/OS: OLPC
Bug Status: New

Description

A really small mouse cursor appears when a link is hovered in Browse or Read. It looks like a really small hand with a pointing finger, not the large friendly Sugar themed hand cursor.

Change History

Changed 13 months ago by manuq

  • cc erikos added
  • owner changed from benzea to manuq
  • status changed from new to assigned

Changed 13 months ago by erikos

  • distribution changed from Unspecified to OLPC
  • status_field changed from Unconfirmed to New
  • severity changed from Unspecified to Major
  • version changed from Unspecified to Git as of bugdate
  • milestone changed from Unspecified by Release Team to 0.96

We need to specify in the gtk3 theme that we want to use the Sugar cursor theme.

diff --git a/gtk3/theme/settings.ini.em b/gtk3/theme/settings.ini.em
index bd2d7cd..2089ad4 100644
--- a/gtk3/theme/settings.ini.em
+++ b/gtk3/theme/settings.ini.em
@@ -14,6 +14,7 @@ icon_large = icon_base * 5
 [Settings]
 gtk-auto-mnemonics = 1
 gtk-toolbar-style = GTK_TOOLBAR_ICONS
+gtk-cursor-theme-name = sugar
 
 ${
 icon_small = icon_base * 3

We do specify that for the shell in  http://git.sugarlabs.org/sugar/mainline/blobs/master/data/gtkrc.em But that does not work for our toolkit-gtk3 activities.

Can be tested on the XO, where with this patch the cursor has the desired size or in jhbuild on a non-xo device where the hover cursor has the correct size and shape (is the host system one in before).

Changed 13 months ago by manuq

I can confirm, adding that setting fixes the cursor.

Changed 13 months ago by erikos

  • status changed from assigned to closed
  • resolution set to fixed

Pushed as a55fb8598e888b5dcc494560614721be039a7dfa, will be in sugar-artwork 0.96.2

Note: See TracTickets for help on using tickets.