aboutsummaryrefslogtreecommitdiff
path: root/src/IconBar.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-11-27 21:52:34 (GMT)
committerfluxgen <fluxgen>2002-11-27 21:52:34 (GMT)
commitf604debc9feb28affd8e9108f4fd897017f704bd (patch)
tree830ab111e13935d1d7a907f43ae33f311490226f /src/IconBar.cc
parentc9e62e7aee97862ec0e0527b4a963bc9d244e41c (diff)
downloadfluxbox_pavel-f604debc9feb28affd8e9108f4fd897017f704bd.zip
fluxbox_pavel-f604debc9feb28affd8e9108f4fd897017f704bd.tar.bz2
texture passed as const referens to BImageControl's renderImage
Diffstat (limited to 'src/IconBar.cc')
-rw-r--r--src/IconBar.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/IconBar.cc b/src/IconBar.cc
index d49b60d..ad18468 100644
--- a/src/IconBar.cc
+++ b/src/IconBar.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: IconBar.cc,v 1.18 2002/10/29 15:53:45 fluxgen Exp $ 22// $Id: IconBar.cc,v 1.19 2002/11/27 21:46:14 fluxgen Exp $
23 23
24#include "IconBar.hh" 24#include "IconBar.hh"
25#include "i18n.hh" 25#include "i18n.hh"
@@ -118,7 +118,7 @@ Window IconBar::delIcon(FluxboxWindow *fluxboxwin) {
118void IconBar::loadTheme(unsigned int width, unsigned int height) { 118void IconBar::loadTheme(unsigned int width, unsigned int height) {
119 BImageControl *image_ctrl = m_screen->getImageControl(); 119 BImageControl *image_ctrl = m_screen->getImageControl();
120 Pixmap tmp = m_focus_pm; 120 Pixmap tmp = m_focus_pm;
121 FbTk::Texture *texture = &(m_screen->getWindowStyle()->tab.l_focus); 121 const FbTk::Texture *texture = &(m_screen->getWindowStyle()->tab.l_focus);
122 122
123 //If we are working on a PARENTRELATIVE, change to right focus value 123 //If we are working on a PARENTRELATIVE, change to right focus value
124 if (texture->type() & FbTk::Texture::PARENTRELATIVE ) { 124 if (texture->type() & FbTk::Texture::PARENTRELATIVE ) {
@@ -130,7 +130,7 @@ void IconBar::loadTheme(unsigned int width, unsigned int height) {
130 m_focus_pixel = texture->color().pixel(); 130 m_focus_pixel = texture->color().pixel();
131 } else { 131 } else {
132 m_focus_pm = 132 m_focus_pm =
133 image_ctrl->renderImage(width, height, texture); 133 image_ctrl->renderImage(width, height, *texture);
134 } 134 }
135 135
136 if (tmp) 136 if (tmp)