SysTray Context Menu: updated icons for auto-update entries.

Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
pull/24/head
Mavridis Philippe 4 years ago
parent f0d11fb3b7
commit 4d739a12ca
No known key found for this signature in database
GPG Key ID: F8D2D7E2F989A494

@ -56,20 +56,20 @@ Klamav::Klamav()
connect( tab, SIGNAL(tabClosed(TQString)), this, SLOT(tabClosed(TQString)) ); connect( tab, SIGNAL(tabClosed(TQString)), this, SLOT(tabClosed(TQString)) );
_tray = new KSystemTray(tdemain, "klamav tray"); _tray = new KSystemTray(tdemain, "klamav tray");
_tray->setPixmap(KSystemTray::loadIcon("klamav_on_acc_disabled")); slotOnAccessTrayPixmap(false);
connect(_tray,SIGNAL(quitSelected()),SLOT(shuttingDown())); connect(_tray,SIGNAL(quitSelected()),SLOT(shuttingDown()));
TDEPopupMenu *conf_menu = _tray->contextMenu(); TDEPopupMenu *conf_menu = _tray->contextMenu();
EnableFreshklam = new TDEAction(i18n("&Enable Auto-Updates"), "klamav", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable"); EnableFreshklam = new TDEAction(i18n("&Enable Auto-Updates"), "system-software-update", 0,this, SLOT(contextEnableFK()),actionCollection(),"fk_enable");
DisableFreshklam = new TDEAction(i18n("&Disable Auto-Updates"),"klamavbw", 0,this, SLOT(contextDisableFK()),actionCollection(),"fk_disable"); DisableFreshklam = new TDEAction(i18n("&Disable Auto-Updates"), 0, 0, this, SLOT(contextDisableFK()),actionCollection(),"fk_disable");
EnableFreshklam->plug(conf_menu); EnableFreshklam->plug(conf_menu);
DisableFreshklam->plug(conf_menu); DisableFreshklam->plug(conf_menu);
TQToolTip::add( _tray, i18n( "KlamAV - Virus Protection for TDE" ) ); TQToolTip::add( _tray, i18n( "KlamAV - Virus Protection for TDE" ) );
_tray->show(); _tray->show();
DisableFreshklam->setEnabled(FALSE); DisableFreshklam->setEnabled(FALSE);
EnableFreshklam->setEnabled(TRUE); EnableFreshklam->setEnabled(TRUE);

Loading…
Cancel
Save