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

List:       kde-commits
Subject:    kdepim/kmail
From:       George Staikos <staikos () kde ! org>
Date:       2004-12-01 19:23:16
Message-ID: 20041201192316.0F0D41B918 () office ! kde ! org
[Download RAW message or body]

CVS commit by staikos: 

raise the kmail part in kontact when the tray icon is clicked.

What should the behaviour be if the tray icon is clicked while kontact is open,
has the foreground, and the kmail part is hidden?  Right now it raises kmail
but minimizes kontact.  aKregator has the same behaviour.  Should this be
changed?


  M +5 -0      kmkernel.cpp   1.318
  M +2 -0      kmkernel.h   1.126
  M +1 -0      kmsystemtray.cpp   1.59


--- kdepim/kmail/kmkernel.cpp  #1.317:1.318
@@ -726,4 +726,9 @@ DCOPRef KMKernel::getFolder( const QStri
 }
 
+void KMKernel::raise()
+{
+  emit showMailCalled();
+}
+
 bool KMKernel::showMail( Q_UINT32 serialNumber, QString /* messageId */ )
 {

--- kdepim/kmail/kmkernel.h  #1.125:1.126
@@ -286,4 +286,6 @@ public:
   QValueList< QGuardedPtr<KMFolder> > allFolders();
 
+  void raise();
+
 public slots:
 

--- kdepim/kmail/kmsystemtray.cpp  #1.58:1.59
@@ -405,4 +405,5 @@ void KMSystemTray::showKMail()
     mParentVisible = true;
   }
+  kmkernel->raise();
 
   //Fake that the folders have changed so that the icon status is correct


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

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