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

List:       kde-commits
Subject:    kdebase/kicker
From:       Ralf Hoelzer <ralf () well ! com>
Date:       2003-06-27 23:40:39
[Download RAW message or body]

CVS commit by rhoezler: 

added DCOP call to clear QuickStart a.k.a. RecentApps menu via privacy module


  M +5 -0      core/kicker.cpp   1.32
  M +1 -0      core/kicker.h   1.12
  M +5 -0      ui/recentapps.cpp   1.6
  M +1 -0      ui/recentapps.h   1.6
  M +9 -0      ui/service_mnu.cpp   1.58
  M +1 -0      ui/service_mnu.h   1.23


--- kdebase/kicker/core/kicker.cpp  #1.31:1.32
@@ -229,2 +229,7 @@ void Kicker::slotDesktopResized()
 }
 
+void Kicker::clearQuickStartMenu()
+{
+    kMenu->clearRecentMenuItems();
+}
+

--- kdebase/kicker/core/kicker.h  #1.11:1.12
@@ -44,4 +44,5 @@ k_dcop:
     void addExtension( const QString &desktopFile );
     void popupKMenu( const QPoint &globalPos );
+    void clearQuickStartMenu();
 
 public:

--- kdebase/kicker/ui/recentapps.cpp  #1.5:1.6
@@ -151,2 +151,7 @@ void RecentlyLaunchedApps::removeItem( c
     }
 }
+
+void RecentlyLaunchedApps::clearRecentApps()
+{
+    clear();
+}

--- kdebase/kicker/ui/recentapps.h  #1.5:1.6
@@ -61,4 +61,5 @@ public:
     void configChanged();
     void save();
+    void clearRecentApps();
     void appLaunched(const QString & strApp);
     void getRecentApps(QStringList & RecentApps);

--- kdebase/kicker/ui/service_mnu.cpp  #1.57:1.58
@@ -175,4 +175,13 @@ void PanelServiceMenu::updateRecent()
 }
 
+void PanelServiceMenu::clearRecentMenuItems()
+{
+  s_RecentApps.clear();
+  s_RecentApps.save();
+  s_RecentApps.m_bNeedToUpdate = true;
+  updateRecent();
+}
+
+
 void PanelServiceMenu::setExcludeNoDisplay( bool flag )
 {

--- kdebase/kicker/ui/service_mnu.h  #1.22:1.23
@@ -58,4 +58,5 @@ public:
     void createRecentMenuItems();
     void updateRecentMenuItems(KService::Ptr & s);
+    void clearRecentMenuItems();
     void setExcludeNoDisplay( bool flag );
 


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

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