From 4d739a12ca0e1b9d4d1d5d83bbd24886768a49d8 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Fri, 19 Feb 2021 15:28:10 +0200 Subject: SysTray Context Menu: updated icons for auto-update entries. Signed-off-by: Mavridis Philippe --- src/klamav.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/klamav.cpp b/src/klamav.cpp index 6c191f7..547ab9d 100644 --- a/src/klamav.cpp +++ b/src/klamav.cpp @@ -56,20 +56,20 @@ Klamav::Klamav() connect( tab, SIGNAL(tabClosed(TQString)), this, SLOT(tabClosed(TQString)) ); _tray = new KSystemTray(tdemain, "klamav tray"); - _tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled")); + slotOnAccessTrayPixmap(false); connect(_tray,SIGNAL(quitSelected()),SLOT(shuttingDown())); - + TDEPopupMenu *conf_menu = _tray->contextMenu(); - - EnableFreshklam = new TDEAction(i18n("&Enable Auto-Updates"), "klamav", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable"); - DisableFreshklam = new TDEAction(i18n("&Disable Auto-Updates"),"klamavbw", 0,this, SLOT(contextDisableFK()),actionCollection(),"fk_disable"); + + EnableFreshklam = new TDEAction(i18n("&Enable Auto-Updates"), "system-software-update", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable"); + DisableFreshklam = new TDEAction(i18n("&Disable Auto-Updates"), 0, 0, this, SLOT(contextDisableFK()),actionCollection(),"fk_disable"); EnableFreshklam->plug(conf_menu); DisableFreshklam->plug(conf_menu); - + TQToolTip::add( _tray, i18n( "KlamAV - Virus Protection for TDE" ) ); _tray->show(); - + DisableFreshklam->setEnabled(FALSE); EnableFreshklam->setEnabled(TRUE); -- cgit v1.2.1