[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Desktop icons auto-placement back...
From:       David Faure <david () mandrakesoft ! com>
Date:       2001-08-28 9:46:06
[Download RAW message or body]

On Mardi 28 Août 2001 12:23, Michael Goffioul wrote:
> > If this is when upgrading to KDE-2.2. for the first time, it's a known bug and it's fixed
> > (the "new release" code was copying over an almost empty .directory file).
> > Otherwise, it's indeed a remaining bug. How is it triggered ? (what event makes it happen?).
> > Are the coordinates in the .directory file sensible ?
> 
> It's CVS code (from last night). And as I said, I emove any coordinate from the
> .directory, but it didn't change anything:
>  - logout
>  - edit .directory in a console and remove any coordinate info
>  - login
> => problem still occurs.

What if you actually _modify_ a coordinate (like, set one icon's X to 800),
is that used on the next startup ?

If you completely remove the .directory file, and then start KDE, can you move 
icons around ?

If you grep KDEVersion ~/.kde/share/config/kdesktoprc, do you get 2, 9 and 0 ?

> > Ouch. I can't see how this happens (icons are moved upon listing or renaming,
> > but when the user moves them the program doesn't interfer.....).
> > Hmm, unless some sort of "auto-arrange" gets triggered, but... well there's no
> > such feature yet (and the QIconView one is disabled).

I just committed some debug output for this case.

> > I need either a way to reproduce this, or debug output....
> 
> Here's the debug output from .xsession-errors when trying to move an icon.
> Tell me what to do to produce more useful debug output if needed.

Please update, then uncomment all the kdDebug calls in KDIconView::slotNewItems,
and apply the attached patch (to libkonq).

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://perso.mandrakesoft.com/~david/ , http://www.konqueror.org/
KDE, Making The Future of Computing Available Today


["diff" (text/x-diff)]

Index: konq_iconviewwidget.cc
===================================================================
RCS file: /home/kde/kdebase/libkonq/konq_iconviewwidget.cc,v
retrieving revision 1.154
diff -u -p -r1.154 konq_iconviewwidget.cc
--- konq_iconviewwidget.cc	2001/08/19 20:05:45	1.154
+++ konq_iconviewwidget.cc	2001/08/28 10:44:29
@@ -755,7 +755,7 @@ void KonqIconViewWidget::slotSaveIconPos
 {
   if ( m_dotDirectoryPath.isEmpty() )
     return;
-  //kdDebug(1203) << "KonqIconViewWidget::slotSaveIconPositions" << endl;
+  kdDebug(1203) << "KonqIconViewWidget::slotSaveIconPositions" << endl;
   KSimpleConfig dotDirectory( m_dotDirectoryPath );
   QIconViewItem *it = firstItem();
   while ( it )
@@ -764,7 +764,7 @@ void KonqIconViewWidget::slotSaveIconPos
     KonqFileItem *item = ivi->item();
 
     dotDirectory.setGroup( QString( m_iconPositionGroupPrefix ).append( \
                item->url().fileName() ) );
-    //kdDebug(1203) << "KonqIconViewWidget::slotSaveIconPositions " << \
item->url().fileName() << " " << it->x() << " " << it->y() << endl; +    \
kdDebug(1203) << "KonqIconViewWidget::slotSaveIconPositions " << \
item->url().fileName() << " " << it->x() << " " << it->y() << endl;  \
dotDirectory.writeEntry( "X", it->x() );  dotDirectory.writeEntry( "Y", it->y() );
     dotDirectory.writeEntry( "Exists", true );



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic