aboutsummaryrefslogtreecommitdiff
path: root/src/ToolFactory.cc
diff options
context:
space:
mode:
authorThomas Lübking <thomas.luebking@gmail.com>2016-06-29 15:27:28 (GMT)
committerMathias Gumz <akira@fluxbox.org>2016-08-26 06:18:48 (GMT)
commitfbb2d16639491fdb0c49e388278fabcc4b0800f3 (patch)
treeb216515b1265dd6164722ebd77ff580738dfc9a0 /src/ToolFactory.cc
parent393ba45f91480bb10f510248837c6051b7ff6a03 (diff)
downloadfluxbox-fbb2d16639491fdb0c49e388278fabcc4b0800f3.zip
fluxbox-fbb2d16639491fdb0c49e388278fabcc4b0800f3.tar.bz2
allow to alter button labels via fluxbox-remote
Command is "RelabelButton button.foo $LABEL" This is useful to eg. hint the amount of unread mails in a button to start your MUA, reflect the $USER in a session menu button etc.
Diffstat (limited to 'src/ToolFactory.cc')
-rw-r--r--src/ToolFactory.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ToolFactory.cc b/src/ToolFactory.cc
index 4a932ea..d1d3581 100644
--- a/src/ToolFactory.cc
+++ b/src/ToolFactory.cc
@@ -119,6 +119,7 @@ ToolbarItem *ToolFactory::create(const std::string &name, const FbTk::FbWindow &
119 if (label.empty()) 119 if (label.empty())
120 return 0; 120 return 0;
121 FbTk::TextButton *btn = new FbTk::TextButton(parent, m_button_theme->font(), label); 121 FbTk::TextButton *btn = new FbTk::TextButton(parent, m_button_theme->font(), label);
122 screen().mapToolButton(name, btn);
122 123
123 std::string cmd_str = FbTk::Resource<std::string> 124 std::string cmd_str = FbTk::Resource<std::string>
124 (m_screen.resourceManager(), "", 125 (m_screen.resourceManager(), "",