diff options
Diffstat (limited to 'src/Windowmenu.cc')
-rw-r--r-- | src/Windowmenu.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Windowmenu.cc b/src/Windowmenu.cc index a79c608..5846261 100644 --- a/src/Windowmenu.cc +++ b/src/Windowmenu.cc | |||
@@ -1,3 +1,5 @@ | |||
1 | // Windowmenu.cc for Fluxbox | ||
2 | // Copyright (c) 2001-2002 Henrik Kinnunen (fluxgen@linuxmail.org) | ||
1 | // Windowmenu.cc for Blackbox - an X11 Window manager | 3 | // Windowmenu.cc for Blackbox - an X11 Window manager |
2 | // Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) | 4 | // Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net) |
3 | // | 5 | // |
@@ -19,6 +21,8 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 21 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 22 | // DEALINGS IN THE SOFTWARE. |
21 | 23 | ||
24 | // $Id: Windowmenu.cc,v 1.11 2002/04/08 22:35:16 fluxgen Exp $ | ||
25 | |||
22 | //use GNU extensions | 26 | //use GNU extensions |
23 | #ifndef _GNU_SOURCE | 27 | #ifndef _GNU_SOURCE |
24 | #define _GNU_SOURCE | 28 | #define _GNU_SOURCE |
@@ -228,9 +232,9 @@ void Windowmenu::SendtoWorkspacemenu::itemSelected(int button, unsigned int inde | |||
228 | 232 | ||
229 | 233 | ||
230 | void Windowmenu::SendtoWorkspacemenu::update(void) { | 234 | void Windowmenu::SendtoWorkspacemenu::update(void) { |
231 | unsigned int i, r = getCount(); | 235 | unsigned int i, r = numberOfItems(); |
232 | 236 | ||
233 | if (getCount() != 0) { | 237 | if (numberOfItems() != 0) { |
234 | for (i = 0; i < r; ++i) | 238 | for (i = 0; i < r; ++i) |
235 | remove(0); | 239 | remove(0); |
236 | } | 240 | } |