all repos — fluxbox @ 291f74fa3a127dd535b0515492c222c03a55349c

custom fork of the fluxbox windowmanager

separator line, thanks ciaranm
fluxgen fluxgen
commit

291f74fa3a127dd535b0515492c222c03a55349c

parent

94747da13c608b598dc9a50f54b80002bafe443a

1 files changed, 14 insertions(+), 6 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.44 2003/12/10 23:08:06 fluxgen Exp $ +// $Id: Menu.cc,v 1.45 2003/12/10 23:33:15 fluxgen Exp $ //use GNU extensions #ifndef _GNU_SOURCE

@@ -884,11 +884,19 @@ None);

} if (dotext && text) { - m_theme.frameFont().drawText(m_frame_pm.drawable(), // drawable - screenNumber(), - tgc.gc(), - text, len, // text string and lenght - text_x, text_y); // position + //!! TODO: this is just temporarly and will be removed + // once we've cleaned up the menu code this will be somewhere else... + if (strcmp(text, "---") == 0){ // draw separator + m_frame_pm.drawRectangle(tgc.gc(), + item_x + menu.bevel_w + menu.item_h + 1, item_y + (menu.item_h / 2), + menu.item_w - ((menu.bevel_w + menu.item_h) * 2) - 1, 0); + } else { // draw normal text + m_theme.frameFont().drawText(m_frame_pm.drawable(), // drawable + screenNumber(), + tgc.gc(), + text, len, // text string and lenght + text_x, text_y); // position + } } if (dosel && item->submenu()) {