Bug 106482 - Activating tray and desktop notifications should take the user to the originating view
Summary: Activating tray and desktop notifications should take the user to the origina...
Status: CONFIRMED
Alias: None
Product: konversation
Classification: Applications
Component: notifications (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konversation Developers
URL:
Keywords:
: 141569 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-30 08:41 UTC by Isaac Clerencia
Modified: 2024-07-09 19:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Patch for this bug (5.41 KB, patch)
2005-05-30 08:47 UTC, Isaac Clerencia
Details
New patch (5.53 KB, patch)
2005-05-30 09:35 UTC, Isaac Clerencia
Details
Popup placement issue fixed (5.57 KB, patch)
2005-05-30 09:46 UTC, Isaac Clerencia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Isaac Clerencia 2005-05-30 08:41:17 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

It would be great to be able to go directly to the right channel when a notification is popped up.

I've already written a working patch that you can find attached.
Comment 1 Isaac Clerencia 2005-05-30 08:47:47 UTC
Created attachment 11257 [details]
Patch for this bug

This patch applies cleanly just now and works correctly here, may be I've
missed some corner cases anyway
Comment 2 Isaac Clerencia 2005-05-30 09:35:26 UTC
Created attachment 11259 [details]
New patch

This patch shows more user friendly links:
Chat in #channel
Chat with nick

It still has a little problem, the notification appears in the middle of kicker
instead of near the systray.
Comment 3 Isaac Clerencia 2005-05-30 09:46:35 UTC
Created attachment 11260 [details]
Popup placement issue fixed
Comment 4 Ismail Donmez 2005-05-30 10:12:31 UTC
SVN commit 419645 by cartman:

Kopete like clickable notifications. Patch by Isaac Clerencia. Might need some polish but good enough for now.
Thanks for the patch!
CCMAIL:isaac@sindominio.net
BUG:106482



 M  +2 -2      Makefile.am  
 M  +7 -3      notificationhandler.cpp  
 A             popup.cpp   [License: GPL (v2+)]
 A             popup.h   [License: GPL (v2+)]


--- trunk/extragear/network/konversation/src/Makefile.am #419644:419645
@@ -43,7 +43,7 @@
 	 watchednicknames_preferences.ui generalbehavior_preferences.ui connectionbehavior_preferences.ui \
 	 prefspageconnectionbehavior.cpp fontappearance_preferences.ui prefspagefontsappearance.cpp \
 	 nicklistbehavior_preferences.ui prefspagenicklistbehavior.cpp \
-	 konvibookmarkhandler.cpp konvibookmarkmenu.cpp
+	 konvibookmarkhandler.cpp konvibookmarkmenu.cpp popup.cpp
 
 konversation_LDADD = $(COMPAT_LIBS) $(LIB_KIO) $(LIB_KABC) $(LIB_KIMIFACE) linkaddressbook/liblinkaddressbookui.la 
 
@@ -77,5 +77,5 @@
 		dcctransferrecv.h dccdetaildialog.h insertchardialog.h editnotifydialog.h serverison.h 		 \
 		servergroupsettings.h serversettings.h	servergroupdialog.h serverdialog.h channeldialog.h 		 \
 		identitydialog.h topiclabel.h channeloptionsdialog.h joinchanneldialog.h \
-		prefspageconnectionbehavior.h prefspagefontsappearance.h prefspagenicklistbehavior.h
+		prefspageconnectionbehavior.h prefspagefontsappearance.h prefspagenicklistbehavior.h popup.h
 
--- trunk/extragear/network/konversation/src/notificationhandler.cpp #419644:419645
@@ -19,6 +19,7 @@
 #include "chatwindow.h"
 #include "konversationapplication.h"
 #include "konversationmainwindow.h"
+#include "popup.h"
 #include "trayicon.h"
 #include "server.h"
 
@@ -47,9 +48,10 @@
   QString cleanedMessage = Konversation::removeIrcMarkup(message);
   QString cutup = addLineBreaks(cleanedMessage);
 
+//  KNotifyClient::event(winId(), "message", QString("<qt>&lt;%1&gt; %2</qt>").arg(fromNick).arg(cutup));
+  Popup *pop = new Popup(m_mainWindow,chatWin,
+    QString("<qt>&lt;%2&gt; %3</qt>").arg(chatWin->getName()).arg(fromNick).arg(cutup));
 
-  KNotifyClient::event(winId(), "message", QString("<qt>&lt;%1&gt; %2</qt>").arg(fromNick).arg(cutup));
-
   if(!KonversationApplication::preferences.trayNotifyOnlyOwnNick()) {
     startTrayNotification(chatWin);
   }
@@ -75,7 +77,9 @@
   QString cleanedMessage = Konversation::removeIrcMarkup(message);
   QString cutup = addLineBreaks(cleanedMessage);
 
-  KNotifyClient::event(winId(), "nick", QString("<qt>&lt;%1&gt; %2</qt>").arg(fromNick).arg(cutup));
+//  KNotifyClient::event(winId(), "nick", QString("<qt>&lt;%1&gt; %2</qt>").arg(fromNick).arg(cutup));
+  Popup *pop = new Popup(m_mainWindow,chatWin,
+    QString("<qt>&lt;%2&gt; %3</qt>").arg(chatWin->getName()).arg(fromNick).arg(cutup));
 
   startTrayNotification(chatWin);
 
Comment 5 Ismail Donmez 2005-06-03 07:47:33 UTC
Reopening as it needs a better solution.
Comment 6 Eike Hein 2009-05-13 02:30:31 UTC
Similar to bug #141569.
Comment 7 Eike Hein 2013-04-14 20:05:19 UTC
*** Bug 141569 has been marked as a duplicate of this bug. ***
Comment 8 soredake 2020-12-17 18:06:57 UTC
Any progress on this?