aboutsummaryrefslogtreecommitdiff
path: root/src/Iconmenu.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Iconmenu.cc')
-rw-r--r--src/Iconmenu.cc28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Iconmenu.cc b/src/Iconmenu.cc
index 3368363..265a53c 100644
--- a/src/Iconmenu.cc
+++ b/src/Iconmenu.cc
@@ -29,26 +29,26 @@
29#include "i18n.hh" 29#include "i18n.hh"
30 30
31Iconmenu::Iconmenu(BScreen *scrn) : Basemenu(scrn) { 31Iconmenu::Iconmenu(BScreen *scrn) : Basemenu(scrn) {
32 setInternalMenu(); 32 setInternalMenu();
33 33
34 setLabel(I18n::instance()->getMessage( 34 setLabel(I18n::instance()->getMessage(
35 FBNLS::IconSet, FBNLS::IconIcons, 35 FBNLS::IconSet, FBNLS::IconIcons,
36 "Icons")); 36 "Icons"));
37 update(); 37 update();
38} 38}
39 39
40 40
41void Iconmenu::itemSelected(int button, unsigned int index) { 41void Iconmenu::itemSelected(int button, unsigned int index) {
42 if (button == 1) { 42 if (button == 1) {
43 if (index < screen()->getIconCount()) { 43 if (index < screen()->getIconCount()) {
44 FluxboxWindow *win = screen()->getIcon(index); 44 FluxboxWindow *win = screen()->getIcon(index);
45 45
46 if (win) 46 if (win)
47 win->deiconify(); 47 win->deiconify();
48 48
49 } 49 }
50 50
51 if (! (screen()->getWorkspacemenu()->isTorn() || isTorn())) 51 if (! (screen()->getWorkspacemenu()->isTorn() || isTorn()))
52 hide(); 52 hide();
53 } 53 }
54} 54}