[kdebase-workspace] Notification size increases randomly and cant be restored (#688967)
Rex Dieter
rdieter at fedoraproject.org
Thu Mar 24 17:19:08 UTC 2011
commit cfb7c6ee7a16436246594727ec3187d80a5c65a5
Author: Rex Dieter <rdieter at fedoraproject.org>
Date: Thu Mar 24 12:18:57 2011 -0500
Notification size increases randomly and cant be restored (#688967)
...ase-workspace-4.6.1-notification_resizing.patch | 28 ++++++++++++++++++++
kdebase-workspace.spec | 8 +++++-
2 files changed, 35 insertions(+), 1 deletions(-)
---
diff --git a/kdebase-workspace-4.6.1-notification_resizing.patch b/kdebase-workspace-4.6.1-notification_resizing.patch
new file mode 100644
index 0000000..4877ff0
--- /dev/null
+++ b/kdebase-workspace-4.6.1-notification_resizing.patch
@@ -0,0 +1,28 @@
+commit c3b28d90cf2c5f9efb57bdc764361c6a596f1749
+Author: Alex Fiestas <afiestas at kde.org>
+Date: Fri Mar 4 23:26:12 2011 +0100
+
+ adjustSize of the Stack Widget once the StackDialog is hidden
+
+ Right now a notification with a long title will create a very long
+ NotificationWidget and that widget will resize the stackdialog to
+ its size. The problem is that once the large notification group is
+ closed, the StackDialog will continue having the notification width
+ and it won't resize to a normal size.
+
+ This patch calls to "adjustSize" when the stackdialog doesn't
+ have any notification, so it will be resized to the right size.
+
+diff --git a/plasma/generic/applets/notifications/ui/stackdialog.cpp b/plasma/generic/applets/notifications/ui/stackdialog.cpp
+index 41b7cb9..1eb28b6 100644
+--- a/plasma/generic/applets/notifications/ui/stackdialog.cpp
++++ b/plasma/generic/applets/notifications/ui/stackdialog.cpp
+@@ -227,6 +227,8 @@ void StackDialog::hideEvent(QHideEvent *event)
+ m_hideTimer->stop();
+
+ adjustWindowToTilePos();
++
++ m_notificationStack->adjustSize();
+ Plasma::Dialog::hideEvent(event);
+ }
+
diff --git a/kdebase-workspace.spec b/kdebase-workspace.spec
index b697290..d95ba6c 100644
--- a/kdebase-workspace.spec
+++ b/kdebase-workspace.spec
@@ -8,7 +8,7 @@ Version: 4.6.1
# for .0 releases we have to use '00' as '0' is treated as null by cmake, dont' forget to update
%define kde4workspace_version 4.6.1
-Release: 3%{?dist}
+Release: 4%{?dist}
License: GPLv2
Group: User Interface/Desktops
@@ -68,6 +68,8 @@ Patch50: kdebase-workspace-4.3.3-kde#171685.patch
## 4.6 patches
# https://projects.kde.org/projects/kde/kdebase/kde-workspace/repository/revisions/2ec6533494a23164ee9c2de4ab65d5fa372aff5c
Patch100: kdebase-workspace-4.6.1-solid_nm_emit.patch
+# https://projects.kde.org/projects/kde/kdebase/kde-workspace/repository/revisions/c3b28d90cf2c5f9efb57bdc764361c6a596f1749
+Patch101: kdebase-workspace-4.6.1-notification_resizing.patch
## Fedora specific patches
# HALsectomy
@@ -309,6 +311,7 @@ Requires: akonadi
# 4.6 patches
%patch100 -p1 -b .solid_nm_emit
+%patch101 -p1 -b .notification_resizing
# trunk patches
@@ -730,6 +733,9 @@ fi
%changelog
+* Thu Mar 24 2011 Rex Dieter <rdieter at fedoraproject.org> 4.6.1-4
+- Notification size increases randomly and cant be restored (#688967)
+
* Mon Mar 07 2011 Rex Dieter <rdieter at fedoraproject.org> 4.6.1-3
- solid_nm_emit patch
More information about the scm-commits
mailing list