-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The notifications for incoming messages don't timeout. This forces the user 
to react to any messages (either reply or ignore) to make it go away. The 
following patch makes all incoming messages timeout. The application icon 
animates with it, but I'm not that familiar with KNotification that well and 
something more might have to be done to get it to persist after the bubble 
disappears (not sure how tightly linked they are).

- --Ben
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmBJdIACgkQiPi+MRHG3qRRhwCfW1OXROWA4ZGXWTQu/eG9Yo2S
lvkAoL0Abk1+vOgziwu5NJBVw15L0sXz
=gXBM
-----END PGP SIGNATURE-----
Index: libkopete/private/kopeteviewmanager.cpp
===================================================================
--- libkopete/private/kopeteviewmanager.cpp	(revision 918053)
+++ libkopete/private/kopeteviewmanager.cpp	(working copy)
@@ -329,7 +329,7 @@
 					}
 			}
 
-			KNotification *notify=new KNotification(eventId, viewWidget, isActiveWindow ? KNotification::CloseOnTimeout : KNotification::Persistent);
+			KNotification *notify=new KNotification(eventId, KNotification::CloseOnTimeout);
 			notify->setText(body.subs( Qt::escape(msgFrom) ).subs( squashedMessage ).toString());
 			notify->setPixmap( QPixmap::fromImage(msg.from()->metaContact()->picture().image()) );
 			notify->setActions(( QStringList() <<  i18nc("@action", "View" )  <<   i18nc("@action", "Ignore" )) );

_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to