LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File kdebase-trinity-launch-ksysguard-optionr1107589.diff of Package kdebase3 (Project openSUSE:Factory)

Index: kdebase/kicker/kicker/core/panelextension.h
===================================================================
--- kdebase/kicker/kicker/core/panelextension.h	(revision 1107588)
+++ kdebase/kicker/kicker/core/panelextension.h	(revision 1107589)
@@ -94,6 +94,7 @@
     void immutabilityChanged(bool);
     void slotBuildOpMenu();
     void showConfig();
+    void showProcessManager();
     virtual void populateContainerArea();
 
 private:
Index: kdebase/kicker/kicker/core/panelextension.cpp
===================================================================
--- kdebase/kicker/kicker/core/panelextension.cpp	(revision 1107588)
+++ kdebase/kicker/kicker/core/panelextension.cpp	(revision 1107589)
@@ -380,7 +380,12 @@
                             this, SLOT(showConfig()));
         _opMnu->insertSeparator();
     }
-    
+
+    _opMnu->insertItem(SmallIconSet("ksysguard"),
+                            i18n("KDE System Guard"),
+                            this, SLOT(showProcessManager()));
+    _opMnu->insertSeparator();
+
     if (kapp->authorize("action/help"))
     {
         KHelpMenu* help = new KHelpMenu( this, KGlobal::instance()->aboutData(), false);
@@ -394,6 +399,11 @@
     Kicker::the()->showConfig(_configFile);
 }
 
+void PanelExtension::showProcessManager()
+{
+    system("ksysguard &");
+}
+
 MenubarExtension::MenubarExtension(const AppletInfo& info)
     : PanelExtension(info.configFile()),
       m_menubar(0)