Re: [gtkmm] Removing a menu entry
- From: "Andreas B. Thun" <abt gmx de>
- To: "gtkmm-list gnome org" <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Removing a menu entry
- Date: Thu, 25 Mar 2004 10:39:13 +0100
Solved. I delete the object:
> void TopMenuBar::removeDataBaseMenu(const int& itemNr)
> {
> cout << " removing #" << itemNr << endl;
>
> MenuList& ml = m_dataBase_menu->items();
> int i = 0;
> MenuList::iterator itr_ml;
> for (itr_ml = ml.begin(); itr_ml != ml.end(); ++itr_ml) {
> if (i == itemNr) {
> itr_ml->remove();
> delete &*itr_ml;
> }
> i++;
> }
> glTabCnt--;
>
> } // removeDataBaseMenu()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]