summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2024-08-02 19:26:42 +0300
committerMavridis Philippe <mavridisf@gmail.com>2024-08-02 19:26:42 +0300
commit66ebe21d5ef4cbeb0983d2456833f3e24fe44f0a (patch)
tree9042f1877a40169b5aaab8a263b3aafc4e08d2e3 /kicker
parent4cd5817775a7e3618081bfed788f361307cfef41 (diff)
downloadtdebase-66ebe21d5ef4cbeb0983d2456833f3e24fe44f0a.tar.gz
tdebase-66ebe21d5ef4cbeb0983d2456833f3e24fe44f0a.zip
TWin, Kicker: Add icons for tiling menus
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
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;