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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/generic/applets/systemtray/ui
From:       Marco Martin <notmart () gmail ! com>
Date:       2010-02-13 11:02:29
Message-ID: 1266058949.048514.15785.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1089460 by mart:

disable showing jobs and notifications by default from the systemtray
add the notifications applet


 M  +7 -4      applet.cpp  


--- trunk/KDE/kdebase/workspace/plasma/generic/applets/systemtray/ui/applet.cpp \
#1089459:1089460 @@ -210,7 +210,7 @@
 
     KConfigGroup globalCg = globalConfig();
     bool createExtenderTask = false;
-    if (globalCg.readEntry("ShowJobs", true)) {
+    if (globalCg.readEntry("ShowJobs", false)) {
         createExtenderTask = true;
         createJobGroups();
 
@@ -227,7 +227,7 @@
                    this, SLOT(finishJob(SystemTray::Job*)));
     }
 
-    if (globalCg.readEntry("ShowNotifications", true)) {
+    if (globalCg.readEntry("ShowNotifications", false)) {
         createExtenderTask = true;
         s_manager->registerNotificationProtocol();
         connect(s_manager, SIGNAL(notificationAdded(SystemTray::Notification*)),
@@ -503,8 +503,8 @@
 
         m_notificationUi.setupUi(m_notificationInterface.data());
 
-        m_notificationUi.showJobs->setChecked(globalCg.readEntry("ShowJobs", true));
-        m_notificationUi.showNotifications->setChecked(globalCg.readEntry("ShowNotifications", \
true)); +        m_notificationUi.showJobs->setChecked(globalCg.readEntry("ShowJobs", \
false)); +        m_notificationUi.showNotifications->setChecked(globalCg.readEntry("ShowNotifications", \
false));  
         m_notificationUi.showApplicationStatus->setChecked(globalCg.readEntry("ShowApplicationStatus", \
                true));
         m_notificationUi.showCommunications->setChecked(globalCg.readEntry("ShowCommunications", \
true)); @@ -654,6 +654,9 @@
     if (!applets.contains("notifier")) {
         s_manager->addApplet("notifier", this);
     }
+    if (!applets.contains("notifications")) {
+        s_manager->addApplet("notifications", this);
+    }
     if (!applets.contains("battery")) {
         Plasma::DataEngineManager *engines = Plasma::DataEngineManager::self();
         Plasma::DataEngine *power = engines->loadEngine("powermanagement");


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

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