From 079bd1a4464fd78e8f883c8e5540dac50e7e22d0 Mon Sep 17 00:00:00 2001 From: Stephan Binner Date: Sun, 16 Jan 2005 09:12:28 +0000 Subject: [PATCH] compile svn path=/trunk/kdebase/kwin/; revision=378978 --- useractions.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/useractions.cpp b/useractions.cpp index 4b1d21bab7..bd730f56a8 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -84,7 +84,7 @@ QPopupMenu* Workspace::clientPopup() connect(transSlider, SIGNAL(valueChanged(int)), SLOT(setTransButtonText(int))); connect(transSlider, SIGNAL(sliderMoved(int)), this, SLOT(setPopupClientOpacity(int))); connect(transSlider, SIGNAL(sliderReleased()), trans_popup, SLOT(hide())); - transSlider->setValue(100-popup_client->opacityPercentage()); + transSlider->setValue(100-active_popup_client->opacityPercentage()); trans_popup->insertItem(transBox); popup->insertItem(i18n("&Opacity"), trans_popup ); } @@ -112,9 +112,9 @@ QPopupMenu* Workspace::clientPopup() //sets the transparency of the client to given value(given by slider) void Workspace::setPopupClientOpacity(int value) { - popup_client->setCustomOpacityFlag(true); + active_popup_client->setCustomOpacityFlag(true); value = 100 - value; - value<100?popup_client->setOpacity(true, (uint)((value/100.0)*0xffffffff)):popup_client->setOpacity(false,0xffffffff); + value<100?active_popup_client->setOpacity(true, (uint)((value/100.0)*0xffffffff)):active_popup_client->setOpacity(false,0xffffffff); } void Workspace::setTransButtonText(int value) @@ -132,9 +132,9 @@ void Workspace::setTransButtonText(int value) void Workspace::resetClientOpacity() { - popup_client->setCustomOpacityFlag(false); - popup_client->updateOpacity(); - setTransButtonText(popup_client->opacityPercentage()); + active_popup_client->setCustomOpacityFlag(false); + active_popup_client->updateOpacity(); + setTransButtonText(active_popup_client->opacityPercentage()); } @@ -175,8 +175,8 @@ void Workspace::clientPopupAboutToShow() popup->setItemEnabled( Options::CloseOp, active_popup_client->isCloseable() ); if (options->useTranslucency) { - transSlider->setValue(100-popup_client->opacityPercentage()); - setTransButtonText(popup_client->opacityPercentage()); + transSlider->setValue(100-active_popup_client->opacityPercentage()); + setTransButtonText(active_popup_client->opacityPercentage()); } }