summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-08-02 19:26:42 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-08-04 19:01:00 +0900
commitc57ea5f28b963407717f62385cdd1d0df4740a9f (patch)
tree9c6d82c0bf198c0046e5b275646deb5c8fdbc5c7 /kicker
parent72fce97c2e965335bbd53ebe0af86386d0524204 (diff)
downloadtdebase-c57ea5f28b963407717f62385cdd1d0df4740a9f.tar.gz
tdebase-c57ea5f28b963407717f62385cdd1d0df4740a9f.zip
TWin, Kicker: Add icons for tiling menus
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com> (cherry picked from commit 66ebe21d5ef4cbeb0983d2456833f3e24fe44f0a)
Diffstat (limited to 'kicker')
-rw-r--r--kicker/taskmanager/taskrmbmenu.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/kicker/taskmanager/taskrmbmenu.cpp b/kicker/taskmanager/taskrmbmenu.cpp
index 85522357d..57109ba2d 100644
--- a/kicker/taskmanager/taskrmbmenu.cpp
+++ b/kicker/taskmanager/taskrmbmenu.cpp
@@ -24,6 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <assert.h>
+#include <tdeglobal.h>
#include <kiconloader.h>
#include <tdelocale.h>
@@ -44,6 +45,8 @@ TaskRMBMenu::TaskRMBMenu(const Task::List& theTasks, bool show, TQPopupMenu* mov
, showAll( show )
, taskMoveMenu( moveMenu )
{
+ TDEGlobal::iconLoader()->addAppDir("twin");
+
assert(tasks.count() > 0);
if (tasks.count() == 1)
{
@@ -290,23 +293,23 @@ TQPopupMenu* TaskRMBMenu::makeTileMenu(Task::Ptr t)
TQPopupMenu *m = new TQPopupMenu( this );
// Tile to side (the menu id matched the ActiveBorder index used for tiling)
- int id = m->insertItem( i18n("&Left"), this, TQ_SLOT( slotTileTo(int) ) );
+ int id = m->insertItem( UserIconSet("tile_left"), i18n("&Left"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 6 );
- id = m->insertItem( i18n("&Right"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_right"), i18n("&Right"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 2 );
- id = m->insertItem( i18n("&Top"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_top"), i18n("&Top"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 0 );
- id = m->insertItem( i18n("&Bottom"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_bottom"), i18n("&Bottom"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 4 );
// Tile to corner (the menu id matched the ActiveBorder index used for tiling)
- id = m->insertItem( i18n("Top &Left"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_topleft"), i18n("Top &Left"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 7 );
- id = m->insertItem( i18n("Top &Right"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_topright"), i18n("Top &Right"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 1 );
- id = m->insertItem( i18n("Bottom L&eft"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_bottomleft"), i18n("Bottom L&eft"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 5 );
- id = m->insertItem( i18n("&Bottom R&ight"), this, TQ_SLOT( slotTileTo(int) ) );
+ id = m->insertItem( UserIconSet("tile_bottomright"), i18n("&Bottom R&ight"), this, TQ_SLOT( slotTileTo(int) ) );
m->setItemParameter( id, 3 );
return m;