[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kate
From: Christoph Cullmann <cullmann () kde ! org>
Date: 2005-03-14 21:59:12
Message-ID: 20050314215912.51B6B1487F () office ! kde ! org
[Download RAW message or body]
CVS commit by cullmann:
use right debug area, now that we have it ;)
M +23 -8 part/katejscript.cpp 1.17
M +0 -1 scripts/jstest.js 1.2
--- kdelibs/kate/part/katejscript.cpp #1.16:1.17
@@ -477,5 +477,19 @@ void KateJScriptManager::collectScripts
else
{
- kdDebug (13010) << "add script: " << *it << endl;
+ kdDebug (13050) << "add script: " << *it << endl;
+
+ QString desktopFile = (*it).left((*it).length()-2).append ("desktop");
+
+ kdDebug (13050) << "add script (desktop file): " << desktopFile << endl;
+
+ QFileInfo dfi (desktopFile);
+
+ if (dfi.exists())
+ {
+
+ }
+ else // no desktop file around, fall back to scriptfilename == commandname
+ {
+ kdDebug (13050) << "add script: fallback, no desktop file around!" << endl;
QFileInfo fi (*it);
@@ -492,4 +506,5 @@ void KateJScriptManager::collectScripts
}
}
+ }
// Syncronize with the file katesyntax...rc
--- kdelibs/kate/scripts/jstest.js #1.1:1.2
@@ -26,3 +26,2 @@
document.insertText( line, document.lineLength( line ), " Selection is " + \
view.selStartLine() + "," + view.selStartCol() + " - " + view.selEndLine() + "," + \
view.selEndCol() );
-
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic