+void ePixmap::setPixmap(ePtr<gPixmap> &pixmap)
+{
+ m_pixmap = pixmap;
+ event(evtChangedPixmap);
+}
+
+void ePixmap::setPixmapFromFile(const char *filename)
+{
+ loadPNG(m_pixmap, filename);
+
+ if (!m_pixmap)
+ {
+ eDebug("ePixmap::setPixmapFromFile: loadPNG failed");
+ return;
+ }
+
+ // TODO: This only works for desktop 0
+ getDesktop(0)->makeCompatiblePixmap(*m_pixmap);
+ event(evtChangedPixmap);
+}
+
+void ePixmap::checkSize()
+{
+ /* when we have no pixmap, or a pixmap of different size, we need
+ to enable transparency in any case. */
+ if (m_pixmap && m_pixmap->size() == size() && !m_alphatest)
+ setTransparent(0);
+ else
+ setTransparent(1);
+ /* fall trough. */
+}
+