aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceNameTool.cc
diff options
context:
space:
mode:
authormathias <mathias>2005-06-07 09:01:29 (GMT)
committermathias <mathias>2005-06-07 09:01:29 (GMT)
commita663db8fd369fb04ad55cfb599e8c7fdecca6d1e (patch)
treec8bbd13a92f2244b72539890051e36fa66c891ae /src/WorkspaceNameTool.cc
parent99a7f9a11084525e15407bdf7372728dadd7be98 (diff)
downloadfluxbox-a663db8fd369fb04ad55cfb599e8c7fdecca6d1e.zip
fluxbox-a663db8fd369fb04ad55cfb599e8c7fdecca6d1e.tar.bz2
Fixed justification in WorkspaceNameTool #1213262, values were set after the
render() call was made.
Diffstat (limited to 'src/WorkspaceNameTool.cc')
-rw-r--r--src/WorkspaceNameTool.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/WorkspaceNameTool.cc b/src/WorkspaceNameTool.cc
index fdc4ffe..ee6db7b 100644
--- a/src/WorkspaceNameTool.cc
+++ b/src/WorkspaceNameTool.cc
@@ -127,6 +127,12 @@ void WorkspaceNameTool::reRender() {
127} 127}
128 128
129void WorkspaceNameTool::renderTheme(unsigned char alpha) { 129void WorkspaceNameTool::renderTheme(unsigned char alpha) {
130
131 m_button.setJustify(m_theme.justify());
132 m_button.setBorderWidth(m_theme.border().width());
133 m_button.setBorderColor(m_theme.border().color());
134 m_button.setAlpha(alpha);
135
130 if (!m_theme.texture().usePixmap()) { 136 if (!m_theme.texture().usePixmap()) {
131 if (m_pixmap) 137 if (m_pixmap)
132 m_screen.imageControl().removeImage(m_pixmap); 138 m_screen.imageControl().removeImage(m_pixmap);
@@ -136,9 +142,5 @@ void WorkspaceNameTool::renderTheme(unsigned char alpha) {
136 reRender(); 142 reRender();
137 } 143 }
138 144
139 m_button.setJustify(m_theme.justify());
140 m_button.setBorderWidth(m_theme.border().width());
141 m_button.setBorderColor(m_theme.border().color());
142 m_button.setAlpha(alpha);
143 m_button.clear(); 145 m_button.clear();
144} 146}