aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/ImageControl.hh
diff options
context:
space:
mode:
authorHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-14 19:36:16 (GMT)
committerHenrik Kinnunen <fluxgen@fluxbox.org>2008-09-14 19:36:16 (GMT)
commit91408776f0b04dbc5a5da99f555b33f9abc5a905 (patch)
tree6173a78017f7981ae1ad17825461907973a08777 /src/FbTk/ImageControl.hh
parent9f519ec0fcb7cd0dec61a4c31d246800f9a73cb3 (diff)
downloadfluxbox-91408776f0b04dbc5a5da99f555b33f9abc5a905.zip
fluxbox-91408776f0b04dbc5a5da99f555b33f9abc5a905.tar.bz2
Fixed a pixmap resource leak with selected pixmap in menus.
menu.hilite.selected.pixmap and menu.selected.pixmap was not deleted while switching between non-pixmap styles and pixmap styles.
Diffstat (limited to 'src/FbTk/ImageControl.hh')
-rw-r--r--src/FbTk/ImageControl.hh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/FbTk/ImageControl.hh b/src/FbTk/ImageControl.hh
index a9c2eb7..b7b90f7 100644
--- a/src/FbTk/ImageControl.hh
+++ b/src/FbTk/ImageControl.hh
@@ -54,11 +54,14 @@ public:
54 @param width width of pixmap 54 @param width width of pixmap
55 @param height height of pixmap 55 @param height height of pixmap
56 @param src_texture texture type to render 56 @param src_texture texture type to render
57 @param orient Orientation of the texture.
58 @param use_cache whether or not to use cache
57 @return pixmap of the rendered image, on failure None 59 @return pixmap of the rendered image, on failure None
58 */ 60 */
59 Pixmap renderImage(unsigned int width, unsigned int height, 61 Pixmap renderImage(unsigned int width, unsigned int height,
60 const FbTk::Texture &src_texture, 62 const FbTk::Texture &src_texture,
61 Orientation orient = ROT0); 63 Orientation orient = ROT0,
64 bool use_cache = true);
62 65
63 void installRootColormap(); 66 void installRootColormap();
64 void removeImage(Pixmap thepix); 67 void removeImage(Pixmap thepix);