Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GTK+] cursor size is changing
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Bols
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2004
Posts: 112

PostPosted: Sat Jan 07, 2006 5:02 pm    Post subject: [GTK+] cursor size is changing Reply with quote

Hi everyone,

Since I upgraded to gtk+ 2.8.8, the size of my cursor becomes larger when it rolls over any gtk+ application (the size doesn't change over QT apps). I'm not sure that this odd behaviour is due to gtk+ since portage also upgraded glib, pango, cairo and atk which are also related to gtk I think.

So.. I tried to set the cursor size via gcursor and in my .Xdefaults, didn't work.

Did anybody encounter the same problem (maybe it's a bug)?

EDIT: Removed the [Solved] flag. I don't think this issue is really solved as we have to add the SAME parameters in different files to have the same cursor size/theme over every applications (gtk+ / others).


Last edited by Bols on Sun Jan 08, 2006 10:46 pm; edited 4 times in total
Back to top
View user's profile Send private message
thomasvk
Guru
Guru


Joined: 19 Mar 2005
Posts: 597

PostPosted: Sat Jan 07, 2006 6:07 pm    Post subject: Reply with quote

I upgraded to gtk+-2.8.8 also today and I noticed that when I hover over some GTK apps (firefox, but not pan, azureus, etc) the cursor changed (to the boring default X one). I think this is related to your problem. Also, I tried downgrading GTK+ to one older version (gtk+-2.6.10-r1) and the problem went away.
Back to top
View user's profile Send private message
Bols
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2004
Posts: 112

PostPosted: Sun Jan 08, 2006 3:27 pm    Post subject: Reply with quote

Ok, I've just found the solution in another thread. Sorry.
Just add this to your ~/.gtkrc-2.0

Code:
gtk-cursor-theme-size = 16 (or the cursor size you want)

https://forums.gentoo.org/viewtopic-p-2961821.html
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Sun Jan 08, 2006 8:59 pm    Post subject: Reply with quote

t0maz wrote:
I upgraded to gtk+-2.8.8 also today and I noticed that when I hover over some GTK apps (firefox, but not pan, azureus, etc) the cursor changed (to the boring default X one). I think this is related to your problem. Also, I tried downgrading GTK+ to one older version (gtk+-2.6.10-r1) and the problem went away.


My wife noticed the problem immediately in firefox. You said it happens
with other GTK apps but I wasn't abble to find any myself (probably
didn't search long enough) can you make a list for info?
I think this should be considered as a bug.

Also for Bols, sure it probably change the size but what about the "cursor theme"?
Normally my wife's cursor is purple and mine is white, they go to black in firefox
I doubt what you mention fixes this.
Back to top
View user's profile Send private message
thomasvk
Guru
Guru


Joined: 19 Mar 2005
Posts: 597

PostPosted: Sun Jan 08, 2006 9:17 pm    Post subject: Reply with quote

Until now it's only firefox. I will upgrade GTK+ again and see what other applications it also happens in. My guess is: all Mozilla based applications. I will also see if that 'fix' fixes it, but I also doubt it.
Back to top
View user's profile Send private message
Bols
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2004
Posts: 112

PostPosted: Sun Jan 08, 2006 10:40 pm    Post subject: Reply with quote

fb wrote:
Also for Bols, sure it probably change the size but what about the "cursor theme"?
Normally my wife's cursor is purple and mine is white, they go to black in firefox
I doubt what you mention fixes this.

I think my cursor theme never changed because I defined it globally for the system and not only in my home directory (.Xdefaults or gcursor).

So.. if you want to define a cursor theme globally, you have to modify/create this file:
Code:
/usr/local/share/cursors/xorg-x11/default/index.theme

don't forget the local part in that path, since any manually added themes in /usr/share/cursors/xorg-x11 (the directory containing the system-installed themes) will automatically be deleted whenever the xorg-x11 package is updated through portage.

Then add these lines in the file:
Code:
[Icon Theme]
Inherits=your_cursor_theme

In the other hand, I don't think it's possible to define the cursor globally in that file that's why only the size of my cursor was changing.

So.. yes, this issue should be considered as bug. If the cursor size/theme is defined in ~/.Xdefaults, I think that gtk+ applications should use them whithout RE-adding the same parameters in another file (~/.gtkrc-2.0) just for some applications. Maybe someone has a rational explanation for this and we should not report this as a bug?
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Mon Jan 09, 2006 12:56 am    Post subject: Reply with quote

I have installed several cursors themes in /usr/share/cursors/xorg-x11. I shouldn't have
to overide the default one in the way you describe.

The second obvious problem with your method is it affects all users. On a multi user
system were different people want different looks it is just not acceptable.

Now I changed the cursor setting through the KDE control centre and I have trouble
finding where the setting is saved right now. It is possible that this is not propagated
the right way to all applications.

However only firefox seem to be suffering from this problem which is very strange.
Back to top
View user's profile Send private message
Bols
Tux's lil' helper
Tux's lil' helper


Joined: 15 May 2004
Posts: 112

PostPosted: Mon Jan 09, 2006 11:35 pm    Post subject: Reply with quote

If someone wants to contribute further to solve this issue, several bug reports have been posted on bugzilla related to this issue.

https://bugs.gentoo.org/show_bug.cgi?id=118439
https://bugs.gentoo.org/show_bug.cgi?id=118443

Temporary fix until this bug is fixed.
Just add these lines to your ~/.gtkrc-2.0 file:
Code:
gtk-cursor-theme-size = 16 (or the size you want)
gtk-cursor-theme-name = "gentoo-blue" (or the theme you want)
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Wed Jan 11, 2006 12:17 am    Post subject: Reply with quote

Do you have to fix the size? Some themes should have a defined size already
(I am thinking about the handheld cursor theme).
If you have to set the size as well for them, I would qualify that as broken
behavior.
I will check if I have time.
Back to top
View user's profile Send private message
fb
l33t
l33t


Joined: 08 Dec 2003
Posts: 636
Location: New Zealand

PostPosted: Thu Jan 12, 2006 8:33 pm    Post subject: Reply with quote

I finally checked the size thing.
The theme size seems to be respected so unless you really
want a different size from the theme you don't need to do
anything about it.
After testing I found some areas of the gimp are affected too.
But they are only small bit of the application. See my blurb
about it in bug 118439.

https://bugs.gentoo.org/show_bug.cgi?id=118439

There are probably some other gtk applications with problems
out there but I don't have them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum