Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
compiz
compiz-kde4-decorator-update.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File compiz-kde4-decorator-update.patch of Package compiz
From: Danny Baumann <dannybaumann@web.de> Date: Thu, 8 Jan 2009 13:20:01 +0000 (+0100) Subject: Plasma::PanelSvg was renamed to Plasma::FrameSvg in KDE 4.2. X-Git-Url: http://gitweb.compiz-fusion.org/?p=compiz;a=commitdiff_plain;h=ed79849955ca43dda6e142f7abccd3bf5dbd4fc8 Plasma::PanelSvg was renamed to Plasma::FrameSvg in KDE 4.2. --- diff --git a/configure.ac b/configure.ac index 4532099..7a11f4c 100644 --- a/configure.ac +++ b/configure.ac @@ -487,7 +487,7 @@ if test "x$use_kde4" = "xyes"; then kde4libs=`kde4-config --install lib --expandvars 2>/dev/null` kde4incs=`kde4-config --install include --expandvars 2>/dev/null` - kde4_test_includes="kdecoration.h kcommondecoration.h kdecorationbridge.h plasma/panelsvg.h" + kde4_test_includes="kdecoration.h kcommondecoration.h kdecorationbridge.h plasma/framesvg.h" dnl Check for KWin headers AC_MSG_CHECKING([for KWin headers]) diff --git a/kde/window-decorator-kde4/switcher.cpp b/kde/window-decorator-kde4/switcher.cpp index 2978e69..83e5c40 100644 --- a/kde/window-decorator-kde4/switcher.cpp +++ b/kde/window-decorator-kde4/switcher.cpp @@ -30,7 +30,7 @@ #include <fixx11h.h> -#include <KDE/Plasma/PanelSvg> +#include <KDE/Plasma/FrameSvg> #include <KDE/Plasma/Theme> #include <kwindowsystem.h> @@ -46,9 +46,9 @@ mId (id) QColor color; color = Plasma::Theme::defaultTheme ()->color (Plasma::Theme::TextColor); - mBackground = new Plasma::PanelSvg(); + mBackground = new Plasma::FrameSvg(); mBackground->setImagePath ("dialogs/background"); - mBackground->setEnabledBorders(Plasma::PanelSvg::AllBorders); + mBackground->setEnabledBorders(Plasma::FrameSvg::AllBorders); mBorder.left = mBackground->marginSize(Plasma::LeftMargin); mBorder.right = mBackground->marginSize(Plasma::RightMargin); @@ -131,9 +131,8 @@ KWD::Switcher::redrawPixmap () p.setCompositionMode (QPainter::CompositionMode_Source); p.setRenderHint (QPainter::SmoothPixmapTransform); - mBackground->resizePanel (QSizeF (contentWidth, contentHeight)); - mBackground->paintPanel (&p, QRect (0, 0, contentWidth, - contentHeight)); + mBackground->resizeFrame (QSizeF (contentWidth, contentHeight)); + mBackground->paintFrame (&p, QRect (0, 0, contentWidth, contentHeight)); mBackgroundPixmap = mPixmap.copy (mBorder.left, mBorder.top, mGeometry.width (), @@ -167,10 +166,11 @@ KWD::Switcher::update () p.setCompositionMode (QPainter::CompositionMode_Source); - - mBackground->paintPanel (&p, QRect (mBorder.left, mBorder.top + - mGeometry.height () + 5, mGeometry.width (), - fm.height ())); + mBackground->paintFrame (&p, QRect (mBorder.left, + mBorder.top + + mGeometry.height () + 5, + mGeometry.width (), + fm.height ())); p.setFont (font); p.setPen (Plasma::Theme::defaultTheme ()->color(Plasma::Theme::TextColor)); diff --git a/kde/window-decorator-kde4/switcher.h b/kde/window-decorator-kde4/switcher.h index 2451c7a..bc969d7 100644 --- a/kde/window-decorator-kde4/switcher.h +++ b/kde/window-decorator-kde4/switcher.h @@ -30,7 +30,7 @@ namespace Plasma { -class PanelSvg; +class FrameSvg; } class QSpacerItem; @@ -70,7 +70,7 @@ class Switcher QRect mGeometry; - Plasma::PanelSvg *mBackground; + Plasma::FrameSvg *mBackground; QPixmap mPixmap; QPixmap mBackgroundPixmap;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor