all repos — fluxbox @ b872c2e0c03c60c875095a405715d747d20a5e96

custom fork of the fluxbox windowmanager

minor fix for layer menu title
fluxgen fluxgen
commit

b872c2e0c03c60c875095a405715d747d20a5e96

parent

805f58193208bf65676bad624f83716c57109ace

1 files changed, 10 insertions(+), 7 deletions(-)

jump to
M src/MenuCreator.ccsrc/MenuCreator.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: MenuCreator.cc,v 1.2 2004/05/02 22:17:00 fluxgen Exp $ +// $Id: MenuCreator.cc,v 1.3 2004/05/02 22:28:45 fluxgen Exp $ #include "MenuCreator.hh"

@@ -406,12 +406,15 @@ WINDOWNLS(WindowmenuLayer, "Layer ...");

BScreen *screen = Fluxbox::instance()->findScreen(menu.screenNumber()); if (screen == 0) return false; - menu.insert(real_label.c_str(), - new LayerMenu<FluxboxWindow>(screen->menuTheme(), - screen->imageControl(), - *screen->layerManager().getLayer(Fluxbox::instance()->getMenuLayer()), - &win, - false)); + FbTk::Menu *submenu = new LayerMenu<FluxboxWindow>(screen->menuTheme(), + screen->imageControl(), + *screen->layerManager(). + getLayer(Fluxbox::instance()->getMenuLayer()), + &win, + false); + submenu->disableTitle(); + menu.insert(real_label.c_str(), submenu); + } else if (type == "separator") { menu.insert("---");