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

List:       kde-commits
Subject:    [kde-workspace] plasma/generic/tools/plasmoidviewer: add ability to list themes in plasmoidviewer
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-02-01 4:07:36
Message-ID: 20120201040736.1C798A60A6 () git ! kde ! org
[Download RAW message or body]

Git commit 80d0e41cfa0424d4f7454bdfba816ee425c5e17e by Shaun Reich.
Committed on 01/02/2012 at 05:06.
Pushed by sreich into branch 'master'.

add ability to list themes in plasmoidviewer

now there's list-containments, list-applets, list-themes,
list-wallpapers

M  +7    -0    plasma/generic/tools/plasmoidviewer/main.cpp

http://commits.kde.org/kde-workspace/80d0e41cfa0424d4f7454bdfba816ee425c5e17e

diff --git a/plasma/generic/tools/plasmoidviewer/main.cpp \
b/plasma/generic/tools/plasmoidviewer/main.cpp index b262240..13e6cfa 100644
--- a/plasma/generic/tools/plasmoidviewer/main.cpp
+++ b/plasma/generic/tools/plasmoidviewer/main.cpp
@@ -135,6 +135,8 @@ int main(int argc, char **argv)
     options.add("list-wallpapers", ki18n("Displays a list of known wallpapers"));
     options.add("lc");
     options.add("list-containments", ki18n("Displays a list of known \
containments")); +    options.add("lt");
+    options.add("list-themes", ki18n("Displays a list of known themes"));
     options.add("nosaveconfig", ki18n("Disables save and restore of the config \
between runs"));  options.add("l");
     options.add("location <name>", ki18nc("Do not translate floating, desktop, \
fullscreen, top, bottom, left nor right", "The location constraint to start the \
Containment with (floating, desktop, fullscreen, top, bottom, left, right)"), \
"floating"); @@ -174,6 +176,11 @@ int main(int argc, char **argv)
         return 0;
     }
 
+    if (args->isSet("list-themes")) {
+        listPlugins(Plasma::Theme::listThemeInfo());
+        return 0;
+    }
+
     QString pluginName;
     if (args->count() > 0) {
         pluginName = args->arg(0);


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

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