all repos — fluxbox @ bbaca5b43b1ef51c516f4fd1a75f5659767649c5

custom fork of the fluxbox windowmanager

mark a bunch of menus as internal
rathnor rathnor
commit

bbaca5b43b1ef51c516f4fd1a75f5659767649c5

parent

292f5c550f2286ef89530ba376b12b25d71338b3

4 files changed, 11 insertions(+), 9 deletions(-)

jump to
M src/Screen.ccsrc/Screen.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: Screen.cc,v 1.177 2003/05/24 05:49:31 rathnor Exp $ +// $Id: Screen.cc,v 1.178 2003/05/24 13:13:22 rathnor Exp $ #include "Screen.hh"

@@ -520,7 +520,6 @@ m_root_window(scrn),

resource(rm, screenname, altscreenname), m_toolbarhandler(0) { - Display *disp = FbTk::App::instance()->display(); initXinerama();

@@ -626,6 +625,7 @@ }

} workspacemenu.reset(createMenuFromScreen(*this)); + workspacemenu->setInternalMenu(); if (*resource.workspaces != 0) { for (int i = 0; i < *resource.workspaces; ++i) {
M src/Slit.ccsrc/Slit.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: Slit.cc,v 1.57 2003/05/19 15:32:47 rathnor Exp $ +// $Id: Slit.cc,v 1.58 2003/05/24 13:13:22 rathnor Exp $ #include "Slit.hh"

@@ -1253,7 +1253,8 @@ m_placement_menu.setLabel(i18n->getMessage(

SlitSet, SlitSlitPlacement, "Slit Placement")); m_placement_menu.setMinimumSublevels(3); - m_placement_menu.setInternalMenu(); + m_layermenu->setInternalMenu(); + m_clientlist_menu.setInternalMenu(); // setup items in sub menu
M src/Toolbar.ccsrc/Toolbar.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: Toolbar.cc,v 1.87 2003/05/24 05:49:31 rathnor Exp $ +// $Id: Toolbar.cc,v 1.88 2003/05/24 13:13:22 rathnor Exp $ #include "Toolbar.hh"

@@ -131,8 +131,6 @@ menu.insert(new BoolMenuItem(i18n->getMessage(FBNLS::CommonSet, FBNLS::CommonAutoHide,

"Auto hide"), tbar.screen().doToolbarAutoHide(), reconfig_toolbar_and_save_resource)); - - menu.setInternalMenu(); menu.insert("Layer...", &tbar.layermenu());

@@ -286,6 +284,8 @@

// we need to get notified when the theme is reloaded m_theme.addListener(m_themelistener); + m_layermenu.setInternalMenu(); + m_placementmenu.setInternalMenu(); setupMenus(*this); // geometry settings
M src/ToolbarHandler.ccsrc/ToolbarHandler.cc

@@ -20,7 +20,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: ToolbarHandler.cc,v 1.13 2003/05/15 23:30:05 fluxgen Exp $ +// $Id: ToolbarHandler.cc,v 1.14 2003/05/24 13:13:22 rathnor Exp $ /** * The ToolbarHandler class acts as a rough interface to the toolbar.

@@ -96,6 +96,7 @@ m_toolbarmenu(*screen.menuTheme(),

screen.screenNumber(), screen.imageControl()) { m_modemenu.setInternalMenu(); + m_toolbarmenu.setInternalMenu(); setupModeMenu(m_modemenu, *this); setMode(mode, false); // the atomhandler part will initialise it shortly }

@@ -116,9 +117,9 @@

return; } else if (!m_toolbar.get()) { m_toolbarmenu.removeAll(); - m_toolbar.reset(new Toolbar(m_screen, *m_screen.layerManager().getLayer(m_screen.getToolbarLayerNum()), m_toolbarmenu)); + m_toolbarmenu.insert("Mode...", &m_modemenu); m_toolbarmenu.update(); }