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

List:       kde-devel
Subject:    Re: can't rename my desktop icons
From:       Kurt Granroth <granroth () suse ! com>
Date:       2001-07-31 16:30:13
[Download RAW message or body]

On Tuesday 31 July 2001 02:16 am, Thomas Strauss wrote:
> After updating kde* from cvs, I found my cdrom-symbol renamed
> "Dateisystem". Trying to rename it to "Plextor" failed.
>
> When checking the internals of the desktop file, I found the following
>
> [Desktop Entry]
> Dev=/dev/scd1
> FSType=Default
> Icon=cdrom_mount.xpm
> MountPoint=/cdrom/plextor
> Name=Plextor
> Name[de]=Dateisystem
> ReadOnly=0
> Type=FSDevice
> UnmountIcon=cdrom_unmount.xpm
>
> It displays [de]-name. The desktop file has the new name (is renamed every
> time), but the displayed entry is not the renamed one.

*grumble*.. I forgot that 'KConfig::readEntry' takes locale into account by 
default but 'KConfig::writeEntry' does NOT.  Can you try the attached patch 
and see if it fixes things?

Actually, anybody running a non-English language should try it.  If it's 
correct, this needs to get into 2.2.
-- 
Kurt Granroth            | http://www.granroth.org
KDE Developer/Evangelist | SuSE Labs Open Source Developer
granroth@kde.org         | granroth@suse.com
            KDE -- Conquer Your Desktop

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

Index: kdiconview.cc
===================================================================
RCS file: /home/kde/kdebase/kdesktop/kdiconview.cc,v
retrieving revision 1.2
diff -b -u -r1.2 kdiconview.cc
--- kdiconview.cc	2001/07/19 20:33:09	1.2
+++ kdiconview.cc	2001/07/31 16:23:43
@@ -703,7 +703,7 @@
     if ( oldName == _item->text() )
       return;
 
-    cfg.writeEntry( "Name", _item->text() );
+    cfg.writeEntry( "Name", _item->text(), true, false, true );
     cfg.sync();
 }
 

>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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