Xfce Forum

Sub domains
 

You are not logged in.

#1 2010-08-25 02:06:23

d0_0b
Member
Registered: 2008-10-18
Posts: 8

.gtkrc-2.0 file is ignored

Hello,

I have ~/.gtkrc-2.0 with below code:

style "xfdesktop-icon-view" 
{
XfdesktopIconVIew::cell-spacing = 0
XfdesktopIconView::cell-padding = 0
XfdesktopIconView::cell-text-width-proportion = 0
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
widget "*XfdesktopIconView*" style "xfdesktop-icon-view"
class "*XfdesktopIconView*" style "xfdesktop-icon-view"

but somehow Xfce doesn't apply these entries(I would like to change space between desktops icons and it had worked before I reinstalled system). How to achive this again?

I have gtk-xfce-engine installed. I use Xfce 4.6.2 on Fedora 13.

Offline

#2 2010-08-25 16:56:23

etnlWings
Member
Registered: 2007-10-30
Posts: 218

Re: .gtkrc-2.0 file is ignored

I'm not sure if this will work but you could try running:

export GTK2_RC_FILES=$HOME/.gtkrc-2.0

In a script at startup, either before, or after xfce is loaded. Or append:

include /path/to/.gtkrc-2.0

to the end of your theme file. Neither addresses the root issue but they might fix the problem in the meantime.

Offline

#3 2010-08-25 20:50:10

d0_0b
Member
Registered: 2008-10-18
Posts: 8

Re: .gtkrc-2.0 file is ignored

Thank you for your answer!

It doesn't help. I even add these lines into gtk file of using theme directly. Without success;/

Offline

#4 2010-08-27 05:06:03

etnlWings
Member
Registered: 2007-10-30
Posts: 218

Re: .gtkrc-2.0 file is ignored

Well I've got the exact same window matches in my gtkrc-2.0 file but just try adding something else to the file and see if that works, either. Your env/xfdesktop are possibly just ignoring that entry, for some reason.

Offline

#5 2010-08-29 20:46:04

d0_0b
Member
Registered: 2008-10-18
Posts: 8

Re: .gtkrc-2.0 file is ignored

It seems that other entries in .gtkrc-2.0 are accepted and working without problems.

I have no ideas why:

XfdesktopIconVIew::cell-spacing = 0
XfdesktopIconView::cell-padding = 0
XfdesktopIconView::cell-text-width-proportion = 0

are ignored  :?.

Mayby there is the other way to change space between desktops icons?

Offline

#6 2010-08-30 04:34:43

etnlWings
Member
Registered: 2007-10-30
Posts: 218

Re: .gtkrc-2.0 file is ignored

Just copypasta this to your .gtkrc-2.0 file. I can't see any differences but there still might be some.

style "xfdesktop-icon-view" 
{
font_name="LucidaMacBold"
XfdesktopIconView::ellipsize-icon-labels = 0
XfdesktopIconView::shadow-x-offset = 1
XfdesktopIconView::shadow-y-offset = 1
XfdesktopIconView::selected-shadow-x-offset = 0
XfdesktopIconView::selected-shadow-y-offset = 0
XfdesktopIconView::shadow-color = "#080808"
XfdesktopIconView::selected-shadow-color = "#000000"
XfdesktopIconVIew::cell-spacing = 5
# spacing between each 'cell' in the grid of icons
XfdesktopIconView::cell-padding = 0
# sets extra padding placed around each icon+text
XfdesktopIconView::cell-text-width-proportion = 2.8
# the units are in width (so for 30px icons, '2.5' would leave a 75px wide area underneath for the text)
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
widget "*XfdesktopIconView*" style "xfdesktop-icon-view"
class "*XfdesktopIconView*" style "xfdesktop-icon-view"

Offline

#7 2010-08-31 22:55:31

d0_0b
Member
Registered: 2008-10-18
Posts: 8

Re: .gtkrc-2.0 file is ignored

Everything works, except these properties: XfdesktopIconView::cell-spacing, cell-padding, cell-text-width-proportion tongue .

I have changed these three properies, one at time:

XfdesktopIconVIew::cell-spacing = 5
# spacing between each 'cell' in the grid of icons
XfdesktopIconView::cell-padding = 0
# sets extra padding placed around each icon+text
XfdesktopIconView::cell-text-width-proportion = 2.8

No matter what value I assign to one of these three, it doesn't work - nothing changes. I have tried with -10, 1 and 500  :?....

I attach link to 1:1 print screen with your .gtkrc-2.0 file. http://img185.imageshack.us/img185/4035/printg.png

Strange thing: one day ago I changed XfdesktopIconView::cell-padding in your file, and it seems to work. Today I have time for more tests, and now none of these three proprties works  :?. I completly confused:P.

Offline

#8 2010-09-01 04:44:41

etnlWings
Member
Registered: 2007-10-30
Posts: 218

Re: .gtkrc-2.0 file is ignored

I think we can probably rule out the contents of the file at this point. Perhaps you should try rebuilding/reinstalling xfdesktop.

Offline

#9 2010-09-05 15:34:22

d0_0b
Member
Registered: 2008-10-18
Posts: 8

Re: .gtkrc-2.0 file is ignored

I am giving up... I have installed Ubuntu 10.04 with Xfce and still I am not able to make these settings to work  :-(.

I can live with that  :razz: - this is no a big deal. Mayby later someone will face similar problem and find the solution ;D.

State for now:
I have installed Fedora 13 again and printed screen with open gtkrc-2.0 file. There is also setting for background image for panel, to be sure that gtkrc-2.0 is not ignored (only settings connected with icon cell size, padding). It is here: http://img822.imageshack.us/img822/4904/gtk.png .

Offline

Board footer

Powered by FluxBB