Version: (using KDE KDE 3.3.0) Installed from: Compiled From Sources The latest kmail and akregator have systray icons that have an overly with the number of unread items. It would be really useful if knode also adopted this feature because then you wouldn't have to open any windows to know if there are things waiting for you.
*** This bug has been confirmed by popular vote. ***
You can apply that patches, to get system tray with static icon (you can minimalize knode without closing) [22:52 vip@dzibutti:...BUILD/kdepim-3.4.3/knode]% diff -uN knode.cpp /tmp/knode.cpp --- knode.cpp 2005-10-05 15:35:42.000000000 +0200 +++ /tmp/knode.cpp 2005-11-06 22:50:11.375871750 +0100 @@ -42,6 +42,15 @@ KNMainWindow::KNMainWindow( QWidget* pWidget ) : KMainWindow(pWidget,"mainWindow") { + //create static tray icon + QPixmap icon; + tray = new KSystemTray(this, "knode"); + KIconLoader *loader = KGlobal::iconLoader(); + icon = loader->loadIcon("knode", KIcon::MainToolbar); + tray->setPixmap(icon); + tray->show(); + tray->setCaption(QString("knode")); + //setupStatusBar(); createStandardStatusBarAction(); setStandardToolBarMenuEnabled(true); and [22:52 vip@dzibutti:...BUILD/kdepim-3.4.3/knode]% diff -uN knode.h /tmp/knode.h --- knode.h 2005-10-05 15:35:42.000000000 +0200 +++ /tmp/knode.h 2005-11-06 22:50:11.375871750 +0100 @@ -23,6 +23,7 @@ #include <kmainwindow.h> #include <kdialogbase.h> +#include <ksystemtray.h> #include "resource.h" #include <qglobal.h> @@ -63,6 +64,8 @@ StatusbarProgressWidget *mLittleProgress; ProgressDialog *mProgressDialog; KRSqueezedTextLabel *mStatusMsgLabel; + KSystemTray *tray; + private slots: void slotShowStatusMsg( const QString& ); };
When will this patch make through the latest knode?
No progress on this issue? Perhaps for KDE 4 ?
Hey, people! It is really annoying bug. Can you fix it in KDE-4.4?
just fixed this for the latest kde4 trunk: diff --git a/knode/knode.cpp b/knode/knode.cpp index 55fddf7..b7e6e55 100644 --- a/knode/knode.cpp +++ b/knode/knode.cpp @@ -39,6 +39,11 @@ KNMainWindow::KNMainWindow( QWidget* parent ) : KXmlGuiWindow( parent ) { + //create static tray icon + QPixmap icon; + tray = new KSystemTrayIcon("knode", this); + tray->show(); + //setupStatusBar(); createStandardStatusBarAction(); setStandardToolBarMenuEnabled(true); diff --git a/knode/knode.h b/knode/knode.h index 22f9408..5a398ab 100644 --- a/knode/knode.h +++ b/knode/knode.h @@ -17,6 +17,7 @@ #include <kxmlguiwindow.h> #include <kdialog.h> +#include <ksystemtrayicon.h> #include "resource.h" #include <qglobal.h> @@ -57,6 +58,7 @@ private: StatusbarProgressWidget *mLittleProgress; ProgressDialog *mProgressDialog; KSqueezedTextLabel *mStatusMsgLabel; + KSystemTrayIcon *tray; private slots: void slotShowStatusMsg( const QString& ); };
oops, missed one line there... diff --git a/knode/knode.cpp b/knode/knode.cpp index 55fddf7..7d34795 100644 --- a/knode/knode.cpp +++ b/knode/knode.cpp @@ -39,6 +39,10 @@ KNMainWindow::KNMainWindow( QWidget* parent ) : KXmlGuiWindow( parent ) { + //create static tray icon + tray = new KSystemTrayIcon("knode", this); + tray->show(); + //setupStatusBar(); createStandardStatusBarAction(); setStandardToolBarMenuEnabled(true); diff --git a/knode/knode.h b/knode/knode.h index 22f9408..5a398ab 100644 --- a/knode/knode.h +++ b/knode/knode.h @@ -17,6 +17,7 @@ #include <kxmlguiwindow.h> #include <kdialog.h> +#include <ksystemtrayicon.h> #include "resource.h" #include <qglobal.h> @@ -57,6 +58,7 @@ private: StatusbarProgressWidget *mLittleProgress; ProgressDialog *mProgressDialog; KSqueezedTextLabel *mStatusMsgLabel; + KSystemTrayIcon *tray; private slots: void slotShowStatusMsg( const QString& ); };
Created attachment 70006 [details] Patch against 4.8.1 Up. Please upload patches as attachments.
This patch just add a systray not show number of unread item :) So ok an systray but not usefull. Please create a patch which is usefull :) Sorry for the moment there is not active developper for knode.
I didn't create any patch, it's just the patch previously posted inline (which is a pain to copy paste because it doesn't recognize newline characters) bumped to 4.8.1 :)
Hello! Sorry to be the bearer of bad news, but this project has been unmaintained for many years so I am closing this bug.