]> git.lyx.org Git - features.git/commitdiff
Mark status of branches in the Button. This uses two dingbat symbols (check
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 Mar 2009 10:31:28 +0000 (10:31 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 31 Mar 2009 10:31:28 +0000 (10:31 +0000)
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

src/insets/InsetBranch.cpp

index 2878a4772b6e2a51c7bbcca82c4088dc1ce45c66..45e4ebe72f9b813efb2f05d9b09d9cc3cf8523b5 100644 (file)
@@ -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