diff options
author | mathias <mathias> | 2005-06-07 09:01:29 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-06-07 09:01:29 (GMT) |
commit | a663db8fd369fb04ad55cfb599e8c7fdecca6d1e (patch) | |
tree | c8bbd13a92f2244b72539890051e36fa66c891ae /src/WorkspaceNameTool.cc | |
parent | 99a7f9a11084525e15407bdf7372728dadd7be98 (diff) | |
download | fluxbox_pavel-a663db8fd369fb04ad55cfb599e8c7fdecca6d1e.zip fluxbox_pavel-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.cc | 10 |
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 | ||
129 | void WorkspaceNameTool::renderTheme(unsigned char alpha) { | 129 | void 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 | } |