Bug 54434 - Arrangement of icons and text under icons is broken again
Summary: Arrangement of icons and text under icons is broken again
Status: CLOSED FIXED
Alias: None
Product: kdesktop
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-10 22:12 UTC by Andreas Hartmann
Modified: 2009-01-02 20:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Hartmann 2003-02-10 22:12:12 UTC
Version:           Unbekannt (using KDE 3.1.0)
Installed from:    compiled sources
Compiler:          gcc version 3.2.1
OS:          Linux (i686) release 2.4.20

I'm using the actual CVS KDE 3.1 branch from today (and sunday). 

In three different users, the icons on the desktop are shown vertically arranged and the text is located far from the icons.
When kdesktop starts up, it ignores the .directory-file in the Desktop directory but overwrites it with new values when logging out or killing kdesktop.
If I overwrite afterwards the .directory-file with a backuped file and restart kdesktop, the icons are always arranged wrong. Switching back to the "original" kde 3.1 solves the problem.

Regards,
Andreas Hartmann
Comment 1 Andreas Hartmann 2003-02-13 19:38:18 UTC
Subject: Re:  New: Arrangement of icons and text under icons is
 broken again

There's a debug output from starting and loading the icons. The following 
.directory file resides in the readonly Desktop directory:

[Desktop Entry]
BgImage=
Icon=desktop
Type=Directory

[IconPosition::Home]
X=6
Y=5

[IconPosition::Kontrollzentrum]
X=5
Y=246

[IconPosition::Mülleimer]
X=256
Y=659

[IconPosition::Trash]
X=6
Y=133

When kdesktop is started, the debug output shows, that all position values 
for the icons are loaded correctly (and are used) but the icons are placed 
verticaly arranged and not as they should, especially the icon with the 
position x: 256 y: 659 can't be in the vertical line.


kdesktop (icons): KDIconView::slotNewItems count=4
kdesktop (icons):  slotNewItems: file:/home/test/Desktop/Home text: 
Pers
Comment 2 Andreas Hartmann 2003-02-14 05:17:04 UTC
Subject: Re:  Arrangement of icons and text under icons is broken
 again

Andreas Hartmann wrote:
> The kdesktoprc looks like this:
> 
> [Desktop Icons]
> Preview=imagethumbnail
^^^^^^^^^^^^^^^^^^^^^^^^

That's the problem. It's working fine without this option set. An empty 
prepview is ok:
Preview=

Comment 3 David Faure 2003-02-14 11:21:20 UTC
Subject: Re:  Arrangement of icons and text under icons is broken again

On Friday 14 February 2003 05:17, you wrote:
> That's the problem. It's working fine without this option set. An empty 
> prepview is ok:
> Preview=

Does this help?

Index: konq_iconviewwidget.cc
===================================================================
RCS file: /home/kde/kdebase/libkonq/konq_iconviewwidget.cc,v
retrieving revision 1.224
diff -u -p -r1.224 konq_iconviewwidget.cc
- --- konq_iconviewwidget.cc      8 Feb 2003 12:33:00 -0000       1.224
+++ konq_iconviewwidget.cc      14 Feb 2003 10:20:42 -0000
@@ -647,7 +647,7 @@ void KonqIconViewWidget::slotPreview(con
 void KonqIconViewWidget::slotPreviewResult()
 {
     d->pPreviewJob = 0;
- -    if (autoArrange() && d->updateAfterPreview ) {
+    if (autoArrange() && d->updateAfterPreview && !m_bDesktop ) {
         arrangeItemsInGrid();
         d->updateAfterPreview = false;
     }


Comment 4 nick smethurst 2003-02-22 18:16:37 UTC
I have a very similar issue: I have noticed in 3.1 that when any kind of visual
previewing is switched on in konqueror, text under icons is always spaced as if
they were previews, regardless of whether or not there are any previewable files
displayed.

Could this behaviour be altered so that the large icon/text spacing is used only
when there are one or more files being previewed in the current view? Such a
large spacing being used when displaying normal icons only isn't very
attractive. Quite possibly this was previously the case but something has broken?
Comment 5 elie.charest 2003-02-24 05:34:15 UTC
As far as I can tell, the bug has been fixed for the Desktop, but not in Konq. Right 
now I have to turn off file previewing for file: and ftp: protocols as the konqueror 
file display is quite ugly when previews are on. 
Comment 6 Andreas Hartmann 2003-02-24 15:47:20 UTC
Not quite. The distance between the icons and the text below the icon is still
too big. The problem is fixed only half right now.
Comment 7 Waldo Bastian 2003-05-09 14:19:09 UTC
Fixed in KDE 3.1.1 
Comment 8 FiNeX 2009-01-02 20:21:21 UTC
Bug closed. Kdesktop is no more mantained.