From: Jean-Marc Lasgouttes Date: Tue, 31 Mar 2009 10:31:28 +0000 (+0000) Subject: Mark status of branches in the Button. This uses two dingbat symbols (check X-Git-Tag: 2.0.0~6979 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=67bafed7bbaa7d39c2fdfa79dc7ecebae2b0c963;p=lyx.git Mark status of branches in the Button. This uses two dingbat symbols (check and cross). I'll revert if people do not like it (otherwise it is candidate for branch). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28988 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetBranch.cpp b/src/insets/InsetBranch.cpp index 2878a4772b..45e4ebe72f 100644 --- a/src/insets/InsetBranch.cpp +++ b/src/insets/InsetBranch.cpp @@ -94,6 +94,7 @@ docstring const InsetBranch::buttonLabel(BufferView const & bv) const if (c == Color_none) s = _("Undef: ") + s; } + s = char_type(isBranchSelected() ? 0x2714 : 0x2716) + s; if (decoration() == InsetLayout::CLASSIC) return isOpen(bv) ? s : getNewLabel(s); else