aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/MenuItem.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-01-12 17:06:07 (GMT)
committerfluxgen <fluxgen>2003-01-12 17:06:07 (GMT)
commit99692be7062dab68efe45c5377981f3df9f90392 (patch)
tree831700b4d34c7090ec041bd704ca56da8a6fb64a /src/FbTk/MenuItem.cc
parent5dabdacd6f60fee4877e86caf2875087de86bb38 (diff)
downloadfluxbox-99692be7062dab68efe45c5377981f3df9f90392.zip
fluxbox-99692be7062dab68efe45c5377981f3df9f90392.tar.bz2
item in the menu
Diffstat (limited to 'src/FbTk/MenuItem.cc')
-rw-r--r--src/FbTk/MenuItem.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/FbTk/MenuItem.cc b/src/FbTk/MenuItem.cc
new file mode 100644
index 0000000..0dbdc69
--- /dev/null
+++ b/src/FbTk/MenuItem.cc
@@ -0,0 +1,34 @@
1// MenuItem.cc for FbTk - Fluxbox Toolkit
2// Copyright (c) 2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3//
4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"),
6// to deal in the Software without restriction, including without limitation
7// the rights to use, copy, modify, merge, publish, distribute, sublicense,
8// and/or sell copies of the Software, and to permit persons to whom the
9// Software is furnished to do so, subject to the following conditions:
10//
11// The above copyright notice and this permission notice shall be included in
12// all copies or substantial portions of the Software.
13//
14// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE.
21
22// $Id: MenuItem.cc,v 1.1 2003/01/12 17:06:07 fluxgen Exp $
23
24#include "MenuItem.hh"
25#include "Command.hh"
26
27namespace FbTk {
28
29void MenuItem::click(int button, int time) {
30 if (m_command.get() != 0)
31 m_command->execute();
32}
33
34}; // end namespace FbTk