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

List:       kde-commits
Subject:    KDE/kdeexamples/plasma/javascript/generic/usingAddons/contents/code
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-12 2:08:31
Message-ID: 20110112020831.E3313AC8B3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1213899 by aseigo:

minor improvements that were laying about


 M  +5 -1      main.js  


--- trunk/KDE/kdeexamples/plasma/javascript/generic/usingAddons/contents/code/main.js \
#1213898:1213899 @@ -4,6 +4,7 @@
     // now we'll access a custom function in the addon, proving it worked!
     textArea.append(i18n("Addon says: %1", addon.toString()))
     if (addon.svg) {
+        textArea.append(i18n("    and we got an svg => " + addon.svg.imagePath))
         var svg = new SvgWidget
         svg.svg = addon.svg
         layout.addItem(svg)
@@ -38,7 +39,8 @@
     // uh-oh, something didn't work!
     textArea.append(i18n("You probably need to run `plasmapkg -t \
Plasma/JavascriptAddon -i exampleAddon && kbuildsycoca4`"))  } else {
-    textArea.append(i18np("number of addons: 1", "number of addons: %1", \
addons.length)) +    var message = i18np("number of addons: 1", "number of addons: \
%1", addons.length) +    textArea.append(message)
     for (i in addons) {
         // an addon has a user visible name and an id; the id is used to load the \
addon  textArea.append(i18n("Addon: ") + addons[i].name)
@@ -46,3 +48,5 @@
     }
 }
 
+plasmoid.include("include.js")
+


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

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