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

List:       kde-commits
Subject:    KDE/kdenetwork/kopete/kopete/contactlist
From:       Will Stephenson <wstephenson () kde ! org>
Date:       2008-05-28 13:48:53
Message-ID: 1211982533.039368.4654.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 813688 by wstephens:

Placing notifications on the mainwindow since the system tray icon is no longer a widget seems to be the \
done thing (see KMail) and is better than random placement you get by passing 0

 M  +3 -4      kopetemetacontactlvi.cpp  


--- trunk/KDE/kdenetwork/kopete/kopete/contactlist/kopetemetacontactlvi.cpp #813687:813688
@@ -454,16 +454,15 @@
 				case noChange:
 					break;
 				case signedIn:
-					notify=new KNotification( QString("kopete_contact_online") , 0l /*KopeteSystemTray::systemTray()*/ \
); +					notify=new KNotification( QString("kopete_contact_online"), Kopete::UI::Global::mainWidget() );
 					notify->setActions(QStringList(i18n( "Chat" )));
 					break;
 				case changedStatus:
-					notify=new KNotification( QString("kopete_contact_status_change") , 0l \
/*KopeteSystemTray::systemTray()*/ ); +					notify=new KNotification( \
QString("kopete_contact_status_change"), Kopete::UI::Global::mainWidget() );  \
notify->setActions(QStringList(i18n( "Chat" )));  break;
 				case signedOut:
-					notify=new KNotification( QString("kopete_contact_offline") , 0l /*KopeteSystemTray::systemTray()*/ \
                );
-					//notify->setActions(QStringList(i18n( "Chat" )));
+					notify=new KNotification( QString("kopete_contact_offline"), Kopete::UI::Global::mainWidget() );
 					break;
 			}
 


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

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