From 1346f6898707e6a4d95abee07c3d1608fc056998 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 12 Oct 2014 17:50:49 -0500 Subject: Bring stop, lock, exit, and run icons into XDG compliance --- kicker/kicker/core/panelextension.cpp | 4 ++-- kicker/kicker/ui/k_mnu.cpp | 8 ++++---- kicker/kicker/ui/k_new_mnu.cpp | 10 +++++----- kicker/kicker/ui/service_mnu.cpp | 2 +- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'kicker/kicker') diff --git a/kicker/kicker/core/panelextension.cpp b/kicker/kicker/core/panelextension.cpp index cf91da256..93bd2356b 100644 --- a/kicker/kicker/core/panelextension.cpp +++ b/kicker/kicker/core/panelextension.cpp @@ -361,13 +361,13 @@ void PanelExtension::slotBuildOpMenu() _opMnu->insertSeparator(); } - _opMnu->insertItem(SmallIconSet("lock"), i18n("&Lock Panels"), + _opMnu->insertItem(SmallIconSet("system-lock-screen"), i18n("&Lock Panels"), Kicker::the(), TQT_SLOT(toggleLock())); } else if (!Kicker::the()->isKioskImmutable()) { _opMnu->insertItem(kickerImmutable? SmallIconSet("unlock") : - SmallIconSet("lock"), + SmallIconSet("system-lock-screen"), kickerImmutable ? i18n("Un&lock Panels") : i18n("&Lock Panels"), Kicker::the(), TQT_SLOT(toggleLock())); diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp index 6f8ddc4aa..9d1d70f87 100644 --- a/kicker/kicker/ui/k_mnu.cpp +++ b/kicker/kicker/ui/k_mnu.cpp @@ -366,7 +366,7 @@ void PanelKMenu::initialize() // run command if (kapp->authorize("run_command")) { - insertItem(KickerLib::menuIconSet("run"), + insertItem(KickerLib::menuIconSet("system-run"), i18n("Run Command..."), this, TQT_SLOT( slotRunCommand())); @@ -393,12 +393,12 @@ void PanelKMenu::initialize() if (kapp->authorize("lock_screen")) { - insertItem(KickerLib::menuIconSet("lock"), i18n("Lock Session"), this, TQT_SLOT(slotLock())); + insertItem(KickerLib::menuIconSet("system-lock-screen"), i18n("Lock Session"), this, TQT_SLOT(slotLock())); } if (kapp->authorize("logout")) { - insertItem(KickerLib::menuIconSet("exit"), i18n("Log Out..."), this, TQT_SLOT(slotLogout())); + insertItem(KickerLib::menuIconSet("system-log-out"), i18n("Log Out..."), this, TQT_SLOT(slotLogout())); } #if 0 @@ -474,7 +474,7 @@ void PanelKMenu::slotPopulateSessions() if (kapp->authorize("start_new_session") && (p = dm.numReserve()) >= 0) { if (kapp->authorize("lock_screen")) { - sessionsMenu->insertItem(SmallIconSet("lock"), i18n("Lock Current && Start New Session"), 100 ); + sessionsMenu->insertItem(SmallIconSet("system-lock-screen"), i18n("Lock Current && Start New Session"), 100 ); } sessionsMenu->insertItem(SmallIconSet("switchuser"), i18n("Start New Session"), 101 ); if (!p) { diff --git a/kicker/kicker/ui/k_new_mnu.cpp b/kicker/kicker/ui/k_new_mnu.cpp index 500bc5485..886ae7011 100644 --- a/kicker/kicker/ui/k_new_mnu.cpp +++ b/kicker/kicker/ui/k_new_mnu.cpp @@ -936,7 +936,7 @@ void KMenu::slotGoExitSubMenu(const TQString& url) m_exitView->rightView()->insertItem( "switchuser", i18n( "Start New Session" ), i18n( "Start a parallel session" ), "kicker:/switchuser", nId++, index++ ); - m_exitView->rightView()->insertItem( "lock", i18n( "Lock Current && Start New Session").replace("&&","&"), + m_exitView->rightView()->insertItem( "system-lock-screen", i18n( "Lock Current && Start New Session").replace("&&","&"), i18n( "Lock screen and start a parallel session" ), "kicker:/switchuserafterlock", nId++, index++ ); SessList sess; @@ -1340,7 +1340,7 @@ void KMenu::insertStaticExitItems() m_exitView->leftView()->insertItem( "undo", i18n( "Logout" ), i18n( "End session" ), "kicker:/logout", nId++, index++ ); if (kapp->authorize("lock_screen")) - m_exitView->leftView()->insertItem( "lock", i18n( "Lock" ), + m_exitView->leftView()->insertItem( "system-lock-screen", i18n( "Lock" ), i18n( "Lock screen" ), "kicker:/lock", nId++, index++ ); TDEConfig ksmserver("ksmserverrc", false, false); @@ -1372,7 +1372,7 @@ void KMenu::insertStaticExitItems() if ( maysd ) { m_exitView->leftView()->insertSeparator( nId++, i18n("System"), index++ ); - m_exitView->leftView()->insertItem( "exit", i18n( "Shutdown Computer" ), + m_exitView->leftView()->insertItem( "system-log-out", i18n( "Shutdown Computer" ), i18n( "Turn off computer" ), "kicker:/shutdown", nId++, index++ ); m_exitView->leftView()->insertItem( "reload", i18n( "&Restart Computer" ).replace("&",""), @@ -1418,7 +1418,7 @@ void KMenu::insertStaticItems() // run command if (kapp->authorize("run_command")) { - m_systemView->insertItem( "run", i18n("Run Command..."), + m_systemView->insertItem( "system-run", i18n("Run Command..."), "", "kicker:/runusercommand", nId++, index++ ); } @@ -2906,7 +2906,7 @@ void KMenu::slotContextMenuRequested( TQListViewItem * item, const TQPoint & pos if (kapp->authorize("run_command") && (m_popupService || (!m_popupPath.menuPath.isEmpty() && !m_popupPath.menuPath.endsWith("/")))) { hasEntries = true; - m_popupMenu->insertItem(SmallIconSet("run"), + m_popupMenu->insertItem(SmallIconSet("system-run"), i18n("Put Into Run Dialog"), PutIntoRunDialog); } } diff --git a/kicker/kicker/ui/service_mnu.cpp b/kicker/kicker/ui/service_mnu.cpp index c85c71312..8d7949470 100644 --- a/kicker/kicker/ui/service_mnu.cpp +++ b/kicker/kicker/ui/service_mnu.cpp @@ -617,7 +617,7 @@ void PanelServiceMenu::mouseReleaseEvent(TQMouseEvent * ev) if (kapp->authorize("run_command")) { hasEntries = true; - popupMenu_->insertItem(SmallIconSet("run"), + popupMenu_->insertItem(SmallIconSet("system-run"), i18n("Put Into Run Dialog"), PutIntoRunDialog); } break; -- cgit v1.2.3