Fix icons not showing up on desktop and popup menu entries not appearing

pull/2/head
Timothy Pearson 12 years ago
parent dc60162d6a
commit 60a25a0fe5

@ -1,4 +1,4 @@
/* This file is part of the KDE project /* This file is part of the TDE project
Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
Copyright (C) 2000, 2001 David Faure <faure@kde.org> Copyright (C) 2000, 2001 David Faure <faure@kde.org>
@ -835,12 +835,12 @@ bool KDIconView::deleteGlobalDesktopFiles()
// Ignore these special files // Ignore these special files
// Name URL Type OnlyShowIn // Name URL Type OnlyShowIn
// My Documents kxdglauncher --xdgname DOCUMENTS Application KDE; // My Documents kxdglauncher --xdgname DOCUMENTS Application TDE;
// My Computer media:/ Link KDE; // My Computer media:/ Link TDE;
// My Network Places remote:/ Link KDE; // My Network Places remote:/ Link TDE;
// Printers [exec] kjobviewer --all --show %i %m Application KDE; // Printers [exec] kjobviewer --all --show %i %m Application TDE;
// Trash trash:/ Link KDE; // Trash trash:/ Link TDE;
// Web Browser kfmclient openBrowser %u Application KDE; // Web Browser kfmclient openBrowser %u Application TDE;
if ( isDesktopFile(fItem) ) { if ( isDesktopFile(fItem) ) {
KSimpleConfig cfg( fItem->url().path(), true ); KSimpleConfig cfg( fItem->url().path(), true );
@ -1009,12 +1009,12 @@ bool KDIconView::makeFriendlyText( KFileIVI *fileIVI )
TQStringList tmpList; TQStringList tmpList;
if (cfg.hasKey("OnlyShowIn")) if (cfg.hasKey("OnlyShowIn"))
{ {
if (!cfg.readListEntry("OnlyShowIn", ';').contains("KDE")) if (!cfg.readListEntry("OnlyShowIn", ';').contains("TDE"))
return false; return false;
} }
if (cfg.hasKey("NotShowIn")) if (cfg.hasKey("NotShowIn"))
{ {
if (cfg.readListEntry("NotShowIn", ';').contains("KDE")) if (cfg.readListEntry("NotShowIn", ';').contains("TDE"))
return false; return false;
} }
if (cfg.hasKey("TryExec")) if (cfg.hasKey("TryExec"))

@ -876,20 +876,20 @@ void KonqPopupMenu::setup(KonqPopupFlags kpf)
{ {
KService::Ptr service = (*it); KService::Ptr service = (*it);
// Skip OnlyShowIn=Foo and NotShowIn=KDE entries, // Skip OnlyShowIn=Foo and NotShowIn=TDE entries,
// but still offer NoDisplay=true entries, that's the // but still offer NoDisplay=true entries, that's the
// whole point of such desktop files. This is why we don't // whole point of such desktop files. This is why we don't
// use service->noDisplay() here. // use service->noDisplay() here.
const TQString onlyShowIn = service->property("OnlyShowIn", TQVariant::String).toString(); const TQString onlyShowIn = service->property("OnlyShowIn", TQVariant::String).toString();
if ( !onlyShowIn.isEmpty() ) { if ( !onlyShowIn.isEmpty() ) {
const TQStringList aList = TQStringList::split(';', onlyShowIn); const TQStringList aList = TQStringList::split(';', onlyShowIn);
if (!aList.contains("KDE")) if (!aList.contains("TDE"))
continue; continue;
} }
const TQString notShowIn = service->property("NotShowIn", TQVariant::String).toString(); const TQString notShowIn = service->property("NotShowIn", TQVariant::String).toString();
if ( !notShowIn.isEmpty() ) { if ( !notShowIn.isEmpty() ) {
const TQStringList aList = TQStringList::split(';', notShowIn); const TQStringList aList = TQStringList::split(';', notShowIn);
if (aList.contains("KDE")) if (aList.contains("TDE"))
continue; continue;
} }

Loading…
Cancel
Save