[kde-plasma-yawp] fix widget geometry
nucleo
nucleo at fedoraproject.org
Mon Mar 18 22:13:40 UTC 2013
commit 06ebb6d8247d445e54cd9f6f768f73ef1d103e16
Author: nucleo <nucleo at fedoraproject.org>
Date: Tue Mar 19 00:13:35 2013 +0200
fix widget geometry
kde-plasma-yawp-geometry.patch | 55 ++++++++++++++++++++++++++++++++++++++++
kde-plasma-yawp.spec | 7 ++++-
2 files changed, 61 insertions(+), 1 deletions(-)
---
diff --git a/kde-plasma-yawp-geometry.patch b/kde-plasma-yawp-geometry.patch
new file mode 100644
index 0000000..ab19bbf
--- /dev/null
+++ b/kde-plasma-yawp-geometry.patch
@@ -0,0 +1,55 @@
+Index: trunk/applet/yawp.cpp
+===================================================================
+--- trunk/applet/yawp.cpp (revision 568)
++++ trunk/applet/yawp.cpp (revision 569)
+@@ -255,6 +255,8 @@
+ m_aboutData->setTranslator( ki18nc("NAME OF THE TRANSLATORS", "Your names"),
+ ki18nc("EMAIL OF THE TRANSLATORS", "Your emails") );
+ /*** About data end ***/
++
++ resize(273, 255); // set a fixed initial size that fits the desktop mode. We simply suppose we are always in desktop-mode.
+
+ dEndFunct();
+ }
+@@ -347,8 +349,6 @@
+ setPopupIcon(QIcon());
+ setPassivePopup(true);
+
+- resize(273, 255); // set a fixed initial size that fits the desktop mode. We simply suppose we are always in desktop-mode.
+-
+ m_svg.setImagePath("widgets/yawp_theme15");
+ m_svg.setContainsMultipleImages( true );
+
+@@ -378,7 +378,7 @@
+ // Every 5 days, 15 minutes after start of applet, cache directory will be checked to remove old files.
+ if (QDate::currentDate().dayOfYear() % 5 == 0)
+ QTimer::singleShot(15*60*1000, this, SLOT(slotStartCacheCleanUp()) );
+-
++
+ dEndFunct();
+ }
+
+Index: trunk/applet/painter/desktoppainter.cpp
+===================================================================
+--- trunk/applet/painter/desktoppainter.cpp (revision 568)
++++ trunk/applet/painter/desktoppainter.cpp (revision 569)
+@@ -84,18 +84,7 @@
+
+ return qRound((qreal)height * YAWP_ORIGINAL_WIDTH / YAWP_ORIGINAL_HEIGHT);
+ }
+-/*
+-QSize
+-DesktopPainter::getSize(const QSizeF & currentSize) const
+-{
+- if (currentSize.width() > 0)
+- {
+- qreal dScale = currentSize.width() / YAWP_ORIGINAL_WIDTH;
+- return QSize(currentSize.width(), dScale * YAWP_ORIGINAL_HEIGHT);
+- }
+- return QSize(YAWP_ORIGINAL_WIDTH, YAWP_ORIGINAL_HEIGHT);
+-}
+-*/
++
+ QRect
+ DesktopPainter::getContentsRect(const QRect & contentsRect) const
+ {
diff --git a/kde-plasma-yawp.spec b/kde-plasma-yawp.spec
index 33fb6a2..e40f4dc 100644
--- a/kde-plasma-yawp.spec
+++ b/kde-plasma-yawp.spec
@@ -1,11 +1,12 @@
Name: kde-plasma-yawp
Version: 0.4.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Yet Another Weather Plasmoid
Group: User Interface/Desktops
License: GPLv2+
URL: http://www.kde-look.org/content/show.php?content=94106
Source0: http://downloads.sourceforge.net/yawp/yawp-%{version}.tar.bz2
+Patch0: kde-plasma-yawp-geometry.patch
BuildRequires: gettext
BuildRequires: kdebase-workspace-devel
@@ -23,6 +24,7 @@ This colorful plasmoid shows weather maps, reports and forecasts.
%prep
%setup -q -n yawp-%{version}
+%patch0 -p1 -b .geometry
%build
@@ -54,6 +56,9 @@ rm -rvf %{buildroot}%{_kde4_datadir}/doc/plasma-applet-yawp/
%changelog
+* Tue Mar 19 2013 Alexey Kurov <nucleo at fedoraproject.org> - 0.4.4-2
+- fix widget geometry
+
* Sun Mar 17 2013 Alexey Kurov <nucleo at fedoraproject.org> - 0.4.4-1
- update to 0.4.4
More information about the scm-commits
mailing list