From 861d667ef6322e31a3c6491713104e701b0c625e Mon Sep 17 00:00:00 2001 From: Karol Szwed Date: Tue, 25 Jun 2002 13:14:19 +0000 Subject: [PATCH] "Make it work"(tm) on theme change svn path=/trunk/kdebase/kwin/; revision=163071 --- clients/kwmtheme/kwmthemeclient.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/clients/kwmtheme/kwmthemeclient.cpp b/clients/kwmtheme/kwmthemeclient.cpp index 28a7f294c6..42c123e8af 100644 --- a/clients/kwmtheme/kwmthemeclient.cpp +++ b/clients/kwmtheme/kwmthemeclient.cpp @@ -17,7 +17,7 @@ using namespace KWinInternal; -static QPixmap stretchPixmap(QPixmap& src, bool stretchVert){ +/* static QPixmap stretchPixmap(QPixmap& src, bool stretchVert){ QPixmap dest; QBitmap *srcMask, *destMask; int w, h, w2, h2; @@ -55,7 +55,7 @@ static QPixmap stretchPixmap(QPixmap& src, bool stretchVert){ p.end(); } return dest; -} +} */ @@ -222,11 +222,6 @@ static void delete_pixmaps() titleSunken = false; } -void KWMThemeClient::slotReset() -{ - -} - void MyButton::drawButtonLabel(QPainter *p) { if(pixmap()){ @@ -252,7 +247,6 @@ KWMThemeClient::KWMThemeClient( Workspace *ws, WId w, QWidget *parent, : Client( ws, w, parent, name, WResizeNoErase | WStaticContents ) { stickyBtn = maxBtn = mnuBtn = 0; - connect(options, SIGNAL(resetClients()), this, SLOT(slotReset())); layout = new QGridLayout(this); layout->addColSpacing(0, maxExtent); layout->addColSpacing(2, maxExtent); @@ -836,6 +830,7 @@ extern "C" { delete_pixmaps(); create_pixmaps(); + Workspace::self()->slotResetAllClientsDelayed(); } void deinit() {