]> git.lyx.org Git - features.git/commitdiff
* InsetBranch.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Apr 2009 07:11:37 +0000 (07:11 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sat, 11 Apr 2009 07:11:37 +0000 (07:11 +0000)
- indicate branch status in the tooltip.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29197 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBranch.cpp

index 649fcf603a5242cfc53a9852392ff65ac3964846..1f7f38a97054a70c53f95aa802d7ffcefb347303 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "support/debug.h"
 #include "support/gettext.h"
+#include "support/lstrings.h"
 
 #include "frontends/Application.h"
 
@@ -72,7 +73,11 @@ void InsetBranch::read(Lexer & lex)
 
 docstring InsetBranch::toolTip(BufferView const &, int, int) const
 {
-       return _("Branch: ") + params_.branch;
+       docstring const status = isBranchSelected() ? 
+               _("active") : _("non-active");
+       return support::bformat(_("Branch (%1$s): %2$s"),
+                                 status,
+                                 params_.branch);
 }