aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-08-11 20:39:05 (GMT)
committerfluxgen <fluxgen>2003-08-11 20:39:05 (GMT)
commit2b63f32449efadf73e2c8200b56a9d1ee9d58c70 (patch)
treed0e50ab416e0c688fbe98d19175acb6f6e9b9f38
parent11643efc674e1da1646a86d981b5f9310ac7262a (diff)
downloadfluxbox_pavel-2b63f32449efadf73e2c8200b56a9d1ee9d58c70.zip
fluxbox_pavel-2b63f32449efadf73e2c8200b56a9d1ee9d58c70.tar.bz2
minor fix
-rw-r--r--src/WorkspaceNameTool.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/WorkspaceNameTool.cc b/src/WorkspaceNameTool.cc
index bc493fa..369ac2d 100644
--- a/src/WorkspaceNameTool.cc
+++ b/src/WorkspaceNameTool.cc
@@ -20,7 +20,7 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: WorkspaceNameTool.cc,v 1.1 2003/08/11 14:32:39 fluxgen Exp $ 23// $Id: WorkspaceNameTool.cc,v 1.2 2003/08/11 20:39:05 fluxgen Exp $
24 24
25#include "WorkspaceNameTool.hh" 25#include "WorkspaceNameTool.hh"
26 26
@@ -38,10 +38,14 @@ WorkspaceNameTool::WorkspaceNameTool(const FbTk::FbWindow &parent,
38 m_screen(screen), 38 m_screen(screen),
39 m_pixmap(0) { 39 m_pixmap(0) {
40 // set text 40 // set text
41 m_button.setGC(m_theme.textGC());
41 m_button.setText(m_screen.currentWorkspace()->name()); 42 m_button.setText(m_screen.currentWorkspace()->name());
43
42 // setup signals 44 // setup signals
43 screen.currentWorkspaceSig().attach(this); 45 screen.currentWorkspaceSig().attach(this);
44 theme.reconfigSig().attach(this); 46 theme.reconfigSig().attach(this);
47
48 renderTheme();
45} 49}
46 50
47WorkspaceNameTool::~WorkspaceNameTool() { 51WorkspaceNameTool::~WorkspaceNameTool() {
@@ -109,7 +113,6 @@ void WorkspaceNameTool::renderTheme() {
109 if (tmp) 113 if (tmp)
110 m_screen.imageControl().removeImage(tmp); 114 m_screen.imageControl().removeImage(tmp);
111 115
112 m_button.setFont(m_theme.font());
113 m_button.setJustify(m_theme.justify()); 116 m_button.setJustify(m_theme.justify());
114 m_button.clear(); 117 m_button.clear();
115} 118}