diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-06-08 15:50:58 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-06-08 15:50:58 -0500 |
commit | ca58f70d61344cd47c353814e28e8d24fcadb99c (patch) | |
tree | b690e14714083720b086bc8db3d2ec31d300ec0c /kviewshell | |
parent | 14b75e943ab94f87e0361800ef61a637294d85e5 (diff) | |
download | tdegraphics-ca58f70d61344cd47c353814e28e8d24fcadb99c.tar.gz tdegraphics-ca58f70d61344cd47c353814e28e8d24fcadb99c.zip |
Update XDG information in support of bug report 892.
Diffstat (limited to 'kviewshell')
-rw-r--r-- | kviewshell/emptymultipage.desktop | 6 | ||||
-rw-r--r-- | kviewshell/kmultipage.desktop | 8 | ||||
-rw-r--r-- | kviewshell/kviewpart.cpp | 20 | ||||
-rw-r--r-- | kviewshell/plugins/djvu/djvumultipage.desktop | 6 |
4 files changed, 20 insertions, 20 deletions
diff --git a/kviewshell/emptymultipage.desktop b/kviewshell/emptymultipage.desktop index c2fef0e8..b31a512e 100644 --- a/kviewshell/emptymultipage.desktop +++ b/kviewshell/emptymultipage.desktop @@ -24,6 +24,6 @@ Name[ta]=காலியான பலபக்கம் Name[tr]=BoşÇokluSayfa Name[zh_HK]=空的多頁 ServiceTypes=KViewShell/MultiPage -X-KDE-Library=emptymultipagepart -X-KDE-EmptyMultiPage=1 -X-KDE-MultiPageVersion=2 +X-TDE-Library=emptymultipagepart +X-TDE-EmptyMultiPage=1 +X-TDE-MultiPageVersion=2 diff --git a/kviewshell/kmultipage.desktop b/kviewshell/kmultipage.desktop index 2cbdcd4c..0ef915a9 100644 --- a/kviewshell/kmultipage.desktop +++ b/kviewshell/kmultipage.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Type=Service -X-KDE-ServiceType=KViewShell/MultiPage +X-TDE-ServiceType=KViewShell/MultiPage Name=KViewShell MultiPage Name[da]=KViewShell Multiside Name[de]=KViewShell Mehrfachseiten @@ -31,11 +31,11 @@ Name[tr]=KViewShell ÇokluSayfa Name[zh_CN]=KViewShell 多页 Name[zh_HK]=KViewShell 多頁 -[PropertyDef::X-KDE-MimeTypes] +[PropertyDef::X-TDE-MimeTypes] Type=TQString -[PropertyDef::X-KDE-MultiPageVersion] +[PropertyDef::X-TDE-MultiPageVersion] Type=int -[PropertyDef::X-KDE-EmptyMultiPage] +[PropertyDef::X-TDE-EmptyMultiPage] Type=int diff --git a/kviewshell/kviewpart.cpp b/kviewshell/kviewpart.cpp index d9c4fb38..6afcee50 100644 --- a/kviewshell/kviewpart.cpp +++ b/kviewshell/kviewpart.cpp @@ -97,8 +97,8 @@ KViewPart::KViewPart(TQWidget *parentWidget, const char *widgetName, TQObject *p TQString defaultMimeType = args.first(); offers = KTrader::self()->query( TQString::fromLatin1("KViewShell/MultiPage" ), - TQString("([X-KDE-MultiPageVersion] == %1) and " - "([X-KDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(defaultMimeType)); + TQString("([X-TDE-MultiPageVersion] == %1) and " + "([X-TDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(defaultMimeType)); } // If no default MimeType is given or no MultiPage has been found, try to load the Empty MultiPage. @@ -106,8 +106,8 @@ KViewPart::KViewPart(TQWidget *parentWidget, const char *widgetName, TQObject *p { offers = KTrader::self()->query( TQString::fromLatin1("KViewShell/MultiPage" ), - TQString("([X-KDE-MultiPageVersion] == %1) and " - "([X-KDE-EmptyMultiPage] == 1)").arg(MULTIPAGE_VERSION)); + TQString("([X-TDE-MultiPageVersion] == %1) and " + "([X-TDE-EmptyMultiPage] == 1)").arg(MULTIPAGE_VERSION)); } // If still no MultiPage has been found, report an error and abort. @@ -472,7 +472,7 @@ TQStringList KViewPart::supportedMimeTypes() // Search for service KTrader::OfferList offers = KTrader::self()->query( TQString::fromLatin1("KViewShell/MultiPage"), - TQString("([X-KDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION) + TQString("([X-TDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION) ); if (!offers.isEmpty()) @@ -483,7 +483,7 @@ TQStringList KViewPart::supportedMimeTypes() for (; iterator != end; ++iterator) { KService::Ptr service = *iterator; - TQString mimeType = service->property("X-KDE-MimeTypes").toString(); + TQString mimeType = service->property("X-TDE-MimeTypes").toString(); supportedMimeTypes << mimeType; } @@ -517,7 +517,7 @@ TQStringList KViewPart::fileFormats() const // Search for service KTrader::OfferList offers = KTrader::self()->query( TQString::fromLatin1("KViewShell/MultiPage"), - TQString("([X-KDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION) + TQString("([X-TDE-MultiPageVersion] == %1)").arg(MULTIPAGE_VERSION) ); if (!offers.isEmpty()) @@ -528,7 +528,7 @@ TQStringList KViewPart::fileFormats() const for (; iterator != end; ++iterator) { KService::Ptr service = *iterator; - TQString mimeType = service->property("X-KDE-MimeTypes").toString(); + TQString mimeType = service->property("X-TDE-MimeTypes").toString(); supportedMimeTypes << mimeType; TQStringList pattern = KMimeType::mimeType(mimeType)->patterns(); @@ -769,8 +769,8 @@ bool KViewPart::openFile() // Search for service KTrader::OfferList offers = KTrader::self()->query( TQString::fromLatin1("KViewShell/MultiPage" ), - TQString("([X-KDE-MultiPageVersion] == %1) and " - "([X-KDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(mimetype->name())); + TQString("([X-TDE-MultiPageVersion] == %1) and " + "([X-TDE-MimeTypes] == '%2')").arg(MULTIPAGE_VERSION).arg(mimetype->name())); if (offers.isEmpty()) { KMessageBox::detailedError(mainWidget, i18n("<qt>The document <b>%1</b> cannot be shown because " diff --git a/kviewshell/plugins/djvu/djvumultipage.desktop b/kviewshell/plugins/djvu/djvumultipage.desktop index 1de46b47..c97e32a3 100644 --- a/kviewshell/plugins/djvu/djvumultipage.desktop +++ b/kviewshell/plugins/djvu/djvumultipage.desktop @@ -52,6 +52,6 @@ Comment[zh_CN]=DjVu 文件的 KViewShell 插件 Comment[zh_HK]=用於 DjVu 檔案的 KViewShell 插件 Comment[zh_TW]=DjVu 檔的 KViewShell 外掛程式 ServiceTypes=KViewShell/MultiPage -X-KDE-MimeTypes=image/x-djvu -X-KDE-Library=djvuviewpart -X-KDE-MultiPageVersion=2 +X-TDE-MimeTypes=image/x-djvu +X-TDE-Library=djvuviewpart +X-TDE-MultiPageVersion=2 |