| View previous topic :: View next topic |
| Author |
Message |
Bols Tux's lil' helper


Joined: 15 May 2004 Posts: 112
|
Posted: Sat Jan 07, 2006 5:02 pm Post subject: [GTK+] cursor size is changing |
|
|
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 |
|
 |
thomasvk Guru

Joined: 19 Mar 2005 Posts: 597
|
Posted: Sat Jan 07, 2006 6:07 pm Post subject: |
|
|
| 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 |
|
 |
Bols Tux's lil' helper


Joined: 15 May 2004 Posts: 112
|
Posted: Sun Jan 08, 2006 3:27 pm Post subject: |
|
|
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 |
|
 |
fb l33t


Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Sun Jan 08, 2006 8:59 pm Post subject: |
|
|
| 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 |
|
 |
thomasvk Guru

Joined: 19 Mar 2005 Posts: 597
|
Posted: Sun Jan 08, 2006 9:17 pm Post subject: |
|
|
| 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 |
|
 |
Bols Tux's lil' helper


Joined: 15 May 2004 Posts: 112
|
Posted: Sun Jan 08, 2006 10:40 pm Post subject: |
|
|
| 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 |
|
 |
fb l33t


Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Mon Jan 09, 2006 12:56 am Post subject: |
|
|
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 |
|
 |
Bols Tux's lil' helper


Joined: 15 May 2004 Posts: 112
|
|
| Back to top |
|
 |
fb l33t


Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Wed Jan 11, 2006 12:17 am Post subject: |
|
|
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 |
|
 |
fb l33t


Joined: 08 Dec 2003 Posts: 636 Location: New Zealand
|
Posted: Thu Jan 12, 2006 8:33 pm Post subject: |
|
|
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 |
|
 |
|