all repos — fluxbox @ e24348aedb99bb52f350e617de469f7809a49201

custom fork of the fluxbox windowmanager

fixed return statment
fluxgen fluxgen
commit

e24348aedb99bb52f350e617de469f7809a49201

parent

2a80ac63ef03fa183e9bd688aae2cdf5424d6514

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/FbTk/Menu.ccsrc/FbTk/Menu.cc

@@ -22,7 +22,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Menu.cc,v 1.9 2003/02/15 01:48:16 fluxgen Exp $ +// $Id: Menu.cc,v 1.10 2003/02/16 15:03:22 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -178,7 +178,6 @@ }

int Menu::insert(const char *label, int pos) { return insert(new MenuItem(label), pos); - return menuitems.size(); } int Menu::insert(const char *label, Menu *submenu, int pos) {

@@ -191,7 +190,8 @@ if (pos == -1) {

menuitems.push_back(item); } else { menuitems.insert(menuitems.begin() + pos, item); - } + } + return menuitems.size(); } int Menu::remove(unsigned int index) {