From 41e648837a056539f9c918ea328417de2a654fc0 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 23 Nov 2012 16:30:27 +0100 Subject: [PATCH] Show status of branches even when inset is closed --- src/insets/InsetBranch.cpp | 7 ++++--- status.20x | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index 9b06c5ecef..19df7fb4de 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -90,11 +90,12 @@ docstring const InsetBranch::buttonLabel(BufferView const & bv) const if (c == Color_none) s = _("Undef: ") + s; } - s = char_type(isBranchSelected() ? 0x2714 : 0x2716) + s; + + docstring const symb = docstring(1, char_type(isBranchSelected() ? 0x2714 : 0x2716)); if (decoration() == InsetLayout::CLASSIC) - return isOpen(bv) ? s : getNewLabel(s); + return symb + (isOpen(bv) ? s : getNewLabel(s)); else - return params_.branch + ": " + getNewLabel(s); + return symb + params_.branch + ": " + getNewLabel(s); } diff --git a/status.20x b/status.20x index 8c0d0e981e..fca87b0a74 100644 --- a/status.20x +++ b/status.20x @@ -40,6 +40,9 @@ What's new - Categorize paragraph styles of the linguistics module. +- Show a symbol on collapsed branches indicating whether they are + active. + * DOCUMENTATION AND LOCALIZATION -- 2.39.5