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

List:       kde-devel
Subject:    Re: KConfigBase changes (isDesktopFile() and getConfigState())
From:       Navindra Umanee <navindra () cs ! mcgill ! ca>
Date:       1999-07-14 11:36:45
[Download RAW message or body]

Pietro Iglio <iglio@fub.it> wrote:
> I would like to remove the code from kpanel to test whether a file
> is a desktop file or not, and move everything in KConfigBase.
> 
> I propose to add a new method:
> 
>   static bool KConfig::isDesktopFile(QString path);
> 
> that returns true if the extension is either .kdelnk or .desktop

Please make the test extension independent if possible.  I hope that's
in the standard.

(the .desktop extension doesn't seem to apply very well to KDE
although it might be accurate for GNOME)

-N.

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

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