diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-04-14 11:37:22 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-04-14 11:37:22 +0000 |
| commit | 351f1d03315b84887b7532c35bdd8a49bdce1d43 (patch) | |
| tree | fe1b7051d28b77d9934ace86881261099ec532f7 /src/Iconmenu.cc | |
| parent | d00ef145828941dc15c31bd7c3fc2f69f29c2955 (diff) | |
Using some references instead of pointers for the menus.
Diffstat (limited to 'src/Iconmenu.cc')
| -rw-r--r-- | src/Iconmenu.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/Iconmenu.cc b/src/Iconmenu.cc index 32ae67a4..cf29c193 100644 --- a/src/Iconmenu.cc +++ b/src/Iconmenu.cc @@ -36,11 +36,9 @@ #include "Window.h" -Iconmenu::Iconmenu(BScreen *scrn) : Basemenu(scrn) { +Iconmenu::Iconmenu(BScreen &scrn) : Basemenu(scrn), screen(scrn) { setInternalMenu(); - screen = scrn; - setLabel(i18n->getMessage(IconSet, IconIcons, "Icons")); update(); } @@ -50,8 +48,8 @@ void Iconmenu::itemSelected(int button, int index) { if (button != 1) return; - if (index >= 0 && index < screen->getIconCount()) { - OpenboxWindow *win = screen->getIcon(index); + if (index >= 0 && index < screen.getIconCount()) { + OpenboxWindow *win = screen.getIcon(index); if (win) { win->deiconify(); @@ -59,6 +57,6 @@ void Iconmenu::itemSelected(int button, int index) { } } - if (! (screen->getWorkspacemenu()->isTorn() || isTorn())) + if (! (screen.getWorkspacemenu()->isTorn() || isTorn())) hide(); } |
