[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [latte-dock/v0.7] containment/package/contents/code: identify kdeconnect sms applet
From: Michail Vourlakos <null () kde ! org>
Date: 2017-12-14 9:02:29
Message-ID: E1ePPPR-0004E0-LY () code ! kde ! org
[Download RAW message or body]
Git commit d858ca5317e3d854031d30536985e57ade50d8b3 by Michail Vourlakos.
Committed on 14/12/2017 at 09:01.
Pushed by mvourlakos into branch 'v0.7'.
identify kdeconnect sms applet
M +25 -1 containment/package/contents/code/AppletIdentifier.js
https://commits.kde.org/latte-dock/d858ca5317e3d854031d30536985e57ade50d8b3
diff --git a/containment/package/contents/code/AppletIdentifier.js \
b/containment/package/contents/code/AppletIdentifier.js index 85ded4f8..43d9b1d4 \
100644
--- a/containment/package/contents/code/AppletIdentifier.js
+++ b/containment/package/contents/code/AppletIdentifier.js
@@ -22,6 +22,8 @@ function reconsiderAppletIconItem(){
identifySimpleMenu();
} else if (applet.pluginName === "org.kde.plasma.userswitcher"&& \
!root.behaveAsPlasmaPanel && !container.lockZoom) { identifyUserSwitcher();
+ } else if (applet.pluginName === "org.kde.comexpertise.plasma.kdeconnect.sms") {
+ identifyKdeConnectSms();
} else if (applet.pluginName === "org.kde.redshiftControl") {
//blacklist
} else {
@@ -51,6 +53,28 @@ function identifyGeneric() {
}
}
+function identifyKdeConnectSms()
+{
+ if (applet.pluginName !== "org.kde.comexpertise.plasma.kdeconnect.sms")
+ return;
+
+ var level0 = applet.children;
+
+ for(var i=0; i<level0.length; ++i){
+ var level1 = level0[i].children;
+ for(var j=0; j<level1.length; ++j){
+ var level2 = level1[j].children;
+ for(var k=0; k<level2.length; ++k){
+ if (typeOf(level2[k], "IconItem")) {
+ container.appletIconItem = level2[k];
+ return;
+ }
+ }
+ }
+
+ }
+}
+
function identifyKickOff() {
if (applet.pluginName !== "org.kde.plasma.kickoff")
return;
@@ -140,7 +164,7 @@ function identifyKicker() {
}
if (imageIt){
- container.appletImageItem = imageIt;
+ container.appletImageItem = imageIt;
}
return;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic