--- icewm-1.3.0/src/base.h.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/base.h 2007-05-18 12:17:26.000000000 +0200 @@ -48,6 +48,7 @@ char *newstr(char const *str, int len); char *newstr(char const *str, char const *delim); char *cstrJoin(char const *str, ...); +#define strJoin cstrJoin #endif #if 0 --- icewm-1.3.0/src/wmclient.cc.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/wmclient.cc 2007-05-18 12:17:26.000000000 +0200 @@ -492,7 +492,9 @@ msg("change: net wm icon"); if (new_prop) prop.net_wm_icon = true; if (getFrame()) +#ifndef LITE getFrame()->updateIcon(); +#endif prop.net_wm_icon = new_prop; #endif #ifdef GNOME1_HINTS --- icewm-1.3.0/src/wmtaskbar.cc.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/wmtaskbar.cc 2007-05-18 12:17:26.000000000 +0200 @@ -1038,7 +1038,7 @@ if (taskPane()) taskPane()->relayout(); } - +#ifdef CONFIG_TRAY void TaskBar::removeTrayApp(YFrameWindow *w) { if (windowTrayPane()) windowTrayPane()->removeApp(w); @@ -1055,12 +1055,15 @@ if (windowTrayPane()) windowTrayPane()->relayout(); } +#endif +#ifdef CONFIG_ADDRESSBAR void TaskBar::showAddressBar() { popOut(); if (fAddressBar != 0) fAddressBar->showNow(); } +#endif void TaskBar::setWorkspaceActive(long workspace, int active) { if (fWorkspaces != 0 && --- icewm-1.3.0/src/wmapp.cc.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/wmapp.cc 2007-05-18 12:21:39.000000000 +0200 @@ -38,6 +38,7 @@ #include "yrect.h" #include "yprefs.h" #include "yicon.h" +#include "ylistbox.h" #include "prefs.h" #include "upath.h" --- icewm-1.3.0/src/Makefile.pix 2007-05-18 12:19:08.000000000 +0200 +++ icewm-1.3.0/src/Makefile 2007-05-18 12:24:08.000000000 +0200 @@ -210,7 +210,7 @@ genpref $(BINARIES): @echo " LD " $@ - @$(LD) -o $@$(EXEEXT) $($@_OBJS) $(LFLAGS) $($@_LFLAGS) $(LIBS) $($@_LIBS) + $(LD) -o $@$(EXEEXT) $($@_OBJS) $(LFLAGS) $($@_LFLAGS) $(LIBS) $($@_LIBS) ################################################################################ --- icewm-1.3.0/src/wmbutton.cc.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/wmbutton.cc 2007-05-18 12:26:35.000000000 +0200 @@ -148,10 +148,10 @@ } } - int iconSize = YIcon::smallSize(); #ifdef LITE ref<YIcon> icon; #else + int iconSize = YIcon::smallSize(); ref<YIcon> icon = (fAction == 0) ? getFrame()->clientIcon() : null; #endif @@ -170,11 +170,13 @@ g.fillRect(1, 1, width() - 2, height() - 2); +#ifndef LITE if (icon != null && showFrameIcon) icon->draw(g, (width() - iconSize) / 2, (height() - iconSize) / 2, iconSize); +#endif } else { g.fillRect(0, 0, width(), height()); @@ -221,11 +223,13 @@ if (fAction == 0) { g.fillRect(xPos, yPos, w, h); +#ifndef LITE if (icon != null && showFrameIcon) icon->draw(g, xPos + (w - iconSize) / 2, yPos + (h - iconSize) / 2, iconSize); +#endif } else { if (pixmap != null) g.drawCenteredPixmap(xPos, yPos, w, h, pixmap); @@ -246,11 +250,13 @@ g.fillRect(0, 0, width(), height()); +#ifndef LITE if (icon != null && showFrameIcon) icon->draw(g, (width() - iconSize) / 2, (height() - iconSize) / 2, iconSize); +#endif } else { g.drawBorderW(0, 0, width() - 1, height() - 1, !armed); @@ -286,12 +292,13 @@ } else g.fillRect(0, 0, width(), height()); +#ifndef LITE if (fAction == 0 && icon != null && showFrameIcon) icon->draw(g, ((int)width() - (int)iconSize) / 2, ((int)height() - (int)iconSize) / 2, iconSize); - +#endif break; #endif default: --- icewm-1.3.0/src/ymenu.cc.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/ymenu.cc 2007-05-18 12:27:13.000000000 +0200 @@ -151,9 +151,11 @@ int fontHeight = menuFont->height() + 1; int h = fontHeight; +#ifndef LITE if (getItem(selItem)->getIcon() != null && YIcon::smallSize() > h) h = YIcon::smallSize(); +#endif if (x <= int(width() - h - 4)) return 1; @@ -1015,12 +1017,14 @@ points[3].y = 5; g.fillPolygon(points, 4, Convex, CoordModePrevious); +#ifndef LITE } else if (mitem->getIcon() != null) { mitem->getIcon()->draw(g, l + 1 + delta, t + delta + top + pad + (eh - top - pad * 2 - bottom - YIcon::smallSize()) / 2, YIcon::smallSize()); +#endif } if (name != null) { --- icewm-1.3.0/src/ymenuitem.cc.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/ymenuitem.cc 2007-05-18 12:27:46.000000000 +0200 @@ -85,8 +85,10 @@ int fontHeight = max(16, menuFont->height() + 1); int ih = fontHeight; +#ifndef LITE if (YIcon::smallSize() > ih) ih = YIcon::smallSize(); +#endif if (wmLook == lookWarp4 || wmLook == lookWin95) { top = bottom = 0; @@ -118,7 +120,11 @@ int YMenuItem::getIconWidth() const { ref<YIcon> icon = getIcon(); +#ifndef LITE return icon != null ? YIcon::smallSize(): 0; +#else + return 0; +#endif } int YMenuItem::getNameWidth() const { --- icewm-1.3.0/src/ybutton.cc.pix 2007-01-21 19:52:17.000000000 +0100 +++ icewm-1.3.0/src/ybutton.cc 2007-05-18 12:28:12.000000000 +0200 @@ -80,12 +80,15 @@ YSurface surface(getSurface()); g.drawSurface(surface, x, y, w, h); +#ifndef LITE if (fIcon != null) fIcon->draw(g, x + (w - fIconSize) / 2, y + (h - fIconSize) / 2, fIconSize); - else if (fImage != null) + else +#endif + if (fImage != null) g.drawImage(fImage, x + (w - fImage->width()) / 2, y + (h - fImage->height()) / 2); --- icewm-1.3.1/src/aworkspaces.cc.pix 2007-08-07 07:19:19.000000000 +0200 +++ icewm-1.3.1/src/aworkspaces.cc 2007-08-10 23:54:06.000000000 +0200 @@ -249,19 +249,26 @@ YSurface WorkspaceButton::getSurface() { } void WorkspacesPane::repaint() { +#ifdef LITE + return; +#else if (!pagerShowPreview) return; for (int w = 0; w < workspaceCount; w++) { fWorkspaceButton[w]->repaint(); } +#endif } void WorkspaceButton::paint(Graphics &g, const YRect &/*r*/) { - if (!pagerShowPreview) { +#ifdef LITE + if (!pagerShowPreview) +#endif + { YButton::paint(g, YRect(0,0,0,0)); return; } - +#ifndef LITE int x(0), y(0), w(width()), h(height()); if (w > 1 && h > 1) { @@ -351,6 +358,7 @@ void WorkspaceButton::paint(Graphics &g, g.drawChars(label, 0, strlen(label), wx, wy); } } +#endif } #endif