|
|
@ -496,7 +496,7 @@ void ThemeHandler::freePixmapGroup( TQPixmap* p[] )
|
|
|
|
p[Active] = NULL;
|
|
|
|
p[Active] = NULL;
|
|
|
|
p[InActive] = NULL;
|
|
|
|
p[InActive] = NULL;
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
qWarning("twin-icewm: freePixmapGroup - invalid TQPixmap** 'p'\n");
|
|
|
|
tqWarning("twin-icewm: freePixmapGroup - invalid TQPixmap** 'p'\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -583,9 +583,9 @@ static void draw3DRect(TQPainter &pnt, TQColor &col, int x, int y, int w, int h,
|
|
|
|
void ThemeHandler::setPixmapButton( TQPixmap* p[], TQString s1, TQString s2)
|
|
|
|
void ThemeHandler::setPixmapButton( TQPixmap* p[], TQString s1, TQString s2)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( p[Active] )
|
|
|
|
if ( p[Active] )
|
|
|
|
qWarning("twin-icewm: setPixmap - should be null (1)\n");
|
|
|
|
tqWarning("twin-icewm: setPixmap - should be null (1)\n");
|
|
|
|
if ( p[InActive] )
|
|
|
|
if ( p[InActive] )
|
|
|
|
qWarning("twin-icewm: setPixmap - should be null (2)\n");
|
|
|
|
tqWarning("twin-icewm: setPixmap - should be null (2)\n");
|
|
|
|
|
|
|
|
|
|
|
|
TQString str = locate("appdata", TQString("icewm-themes/")
|
|
|
|
TQString str = locate("appdata", TQString("icewm-themes/")
|
|
|
|
+ themeName + s1 + "A" + s2);
|
|
|
|
+ themeName + s1 + "A" + s2);
|
|
|
@ -682,9 +682,9 @@ void ThemeHandler::setPixmap( TQPixmap* p[], TQString s1, TQString s2,
|
|
|
|
bool stretch, bool stretchHoriz )
|
|
|
|
bool stretch, bool stretchHoriz )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if ( p[Active] )
|
|
|
|
if ( p[Active] )
|
|
|
|
qWarning("twin-icewm: setPixmap - should be null (1)\n");
|
|
|
|
tqWarning("twin-icewm: setPixmap - should be null (1)\n");
|
|
|
|
if ( p[InActive] )
|
|
|
|
if ( p[InActive] )
|
|
|
|
qWarning("twin-icewm: setPixmap - should be null (2)\n");
|
|
|
|
tqWarning("twin-icewm: setPixmap - should be null (2)\n");
|
|
|
|
|
|
|
|
|
|
|
|
p[Active] = new TQPixmap( locate("data", TQString("twin/icewm-themes/")
|
|
|
|
p[Active] = new TQPixmap( locate("data", TQString("twin/icewm-themes/")
|
|
|
|
+ themeName + s1 + "A" + s2) );
|
|
|
|
+ themeName + s1 + "A" + s2) );
|
|
|
@ -825,7 +825,7 @@ void IceWMButton::drawButton(TQPainter *pnt)
|
|
|
|
pnt->drawPixmap(0, 0, *p, 0, 0, width, titleBarHeight);
|
|
|
|
pnt->drawPixmap(0, 0, *p, 0, 0, width, titleBarHeight);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
qWarning("twin-icewm: Can't paint a null pixmap button");
|
|
|
|
tqWarning("twin-icewm: Can't paint a null pixmap button");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|