! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
More options (spacing/marging, amount of lines for filename, background color...
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
Xfdesktop
Component:
General

Comments

Description Dieter Plaetinck 2007-02-08 21:21:33 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20070207 BonEcho/2.0.0.1
Build Identifier: 

Until now we can configure the desktop icons':
1)icon size
2)font size

I think some additional parameters would be nice
this image will help to understand: http://users.edpnet.be/dieter/files/xfce_desktop_icons.png
1)horizontal spacing between icons
2)vertical spacing between icons
3)filename background.  This is the grey rectangle thing around the filename.
Letting the user enable or disable this would be nice. (when you have a white wallpaper you don't need these rectangles for example).  Maybe even let the user choose which colors he wants to give to the filename background (the rectangle) and the filename itself. (if you have a black wallpaper, you can choose black filenames so you don't need the rectangles either)
4)number of lines.  Some files have large names, others don't.  Some people want to see them, others don't ;-)

Reproducible: Always
Comment 1 Giacomo Lozito 2007-02-11 18:37:48 CET
Created attachment 988 
patch for xfdesktop-icon-view.c that allows further customization via gtkrc
Comment 2 Giacomo Lozito 2007-02-11 18:39:07 CET
Hello.
The newly-introduced support for desktop icons is pretty nice, but it lacks some customization option that I'd like to have. So I modified xfdesktop-icon-view.c and added some new parameters for gtkrc (just like the existing label-alpha).
Usage example follows:

style "xfdesktop-icon-view" {
  XfdesktopIconView::cell-padding = 3
  XfdesktopIconView::cell-spacing = 3
  XfdesktopIconView::cell-text-width-proportion = 1.5
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

I found this pretty handy to obtain the desktop look I like.
Just in case it could be useful to others and approved by developers, I've attached the patch.

http://bugzilla.xfce.org/attachment.cgi?id=988
Comment 3 Daniel Gibson 2008-03-05 19:06:54 CET
Created attachment 1544 
disable cutting of icon-labels on desktop via gtkrc-2.0

I've created a small patch for xfdesktop-icon-view.c that provides a parameter for .gtkrc-2.0 to disable cutting of long names of shortcuts/files/whatever on the desktop. Originally the whole name/label was shown only when an icon was selected, with this patch this behavior can be changed.
Just add the following to ~/.gtkrc-2.0:

style "xfdesktop-icon-view" {
  XfdesktopIconView::cut-icon-label = 0
  # change to 1 for original behavior
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"

Cheers,
- Daniel
Comment 4 Brian J. Tarricone (not reading bugmail) 2008-10-09 00:55:16 CEST
Damn, I didn't know about these patches.  Benny doesn't work on xfdesktop; this is mine.

This is good stuff, let's see if I can get these in before 4.6beta1.
Comment 5 Brian J. Tarricone (not reading bugmail) 2008-10-09 01:23:25 CEST
Ok, both patches checked into trunk (will be in 4.6beta1).  Daniel, I changed the name of your property to 'ellipsize-icon-labels', and it's a boolean property, not an int.

Bug #2886

Reported by:
Dieter Plaetinck
Reported on: 2007-02-08
Last modified on: 2009-07-14

People

Assignee:
Brian J. Tarricone (not reading bugmail)
CC List:
1 user

Version

Attachments

Additional information