aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-02-16 15:03:22 (GMT)
committerfluxgen <fluxgen>2003-02-16 15:03:22 (GMT)
commite24348aedb99bb52f350e617de469f7809a49201 (patch)
tree18505e7655797a570ecf9dbc9236a4d8c95ffb00 /src/FbTk
parent2a80ac63ef03fa183e9bd688aae2cdf5424d6514 (diff)
downloadfluxbox_paul-e24348aedb99bb52f350e617de469f7809a49201.zip
fluxbox_paul-e24348aedb99bb52f350e617de469f7809a49201.tar.bz2
fixed return statment
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Menu.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/FbTk/Menu.cc b/src/FbTk/Menu.cc
index d0267cb..94561e3 100644
--- a/src/FbTk/Menu.cc
+++ b/src/FbTk/Menu.cc
@@ -22,7 +22,7 @@
22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23// DEALINGS IN THE SOFTWARE. 23// DEALINGS IN THE SOFTWARE.
24 24
25// $Id: Menu.cc,v 1.9 2003/02/15 01:48:16 fluxgen Exp $ 25// $Id: Menu.cc,v 1.10 2003/02/16 15:03:22 fluxgen Exp $
26 26
27//use GNU extensions 27//use GNU extensions
28#ifndef _GNU_SOURCE 28#ifndef _GNU_SOURCE
@@ -178,7 +178,6 @@ int Menu::insert(const char *label, RefCount<Command> &cmd, int pos) {
178 178
179int Menu::insert(const char *label, int pos) { 179int Menu::insert(const char *label, int pos) {
180 return insert(new MenuItem(label), pos); 180 return insert(new MenuItem(label), pos);
181 return menuitems.size();
182} 181}
183 182
184int Menu::insert(const char *label, Menu *submenu, int pos) { 183int Menu::insert(const char *label, Menu *submenu, int pos) {
@@ -191,7 +190,8 @@ int Menu::insert(MenuItem *item, int pos) {
191 menuitems.push_back(item); 190 menuitems.push_back(item);
192 } else { 191 } else {
193 menuitems.insert(menuitems.begin() + pos, item); 192 menuitems.insert(menuitems.begin() + pos, item);
194 } 193 }
194 return menuitems.size();
195} 195}
196 196
197int Menu::remove(unsigned int index) { 197int Menu::remove(unsigned int index) {