]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.cpp
This should be the last of the commits refactoring the InsetLayout code.
[lyx.git] / src / insets / InsetBranch.cpp
index 0eed816e60643efde356f7693ca761b9a018f878..a3eb164d90cebef3d34c27be690e5ab67bdce3ac 100644 (file)
@@ -76,6 +76,12 @@ void InsetBranch::read(Buffer const & buf, Lexer & lex)
 }
 
 
+docstring InsetBranch::toolTip(BufferView const & bv, int x, int y) const
+{
+       return _("Branch: ") + params_.branch;
+}
+
+
 void InsetBranch::setButtonLabel()
 {
        docstring s = _("Branch: ") + params_.branch;
@@ -86,7 +92,7 @@ void InsetBranch::setButtonLabel()
                        s = _("Undef: ") + s;
                }
        }
-       if (decoration() == Classic)
+       if (decoration() == Deco_Classic)
                setLabel(isOpen() ? s : getNewLabel(s) );
        else
                setLabel(params_.branch + ": " + getNewLabel(s));