[konversation] added patch to fix scrolling background
thomasj
thomasj at fedoraproject.org
Mon Oct 18 17:44:09 UTC 2010
commit 2c4f5980752bdc4adf03f85fb1a69c7895c7604e
Author: Thomas Janssen <thomasj at fedoraproject.org>
Date: Mon Oct 18 19:44:03 2010 +0200
added patch to fix scrolling background
konversation.spec | 9 +++++-
konvi-1.3.1_fix-scroll_background.patch | 41 +++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 2 deletions(-)
---
diff --git a/konversation.spec b/konversation.spec
index dea124e..f096662 100644
--- a/konversation.spec
+++ b/konversation.spec
@@ -1,7 +1,7 @@
Name: konversation
Version: 1.3.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A user friendly IRC client
Group: Applications/Internet
@@ -10,6 +10,8 @@ URL: http://konversation.kde.org/
Source0: ftp://ftp.kde.org/pub/kde/%{?pre:un}stable/konversation/%{version}%{?pre:-%{pre}}/src/konversation-%{version}%{?pre:-%{pre}}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch10: konvi-1.3.1_fix-scroll_background.patch
+
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: kdelibs4-devel
@@ -31,7 +33,7 @@ to chat windows; configurable background colors and much more
%prep
%setup -q -n %{name}-%{version}%{?pre:-%{pre}}
-
+%patch10 -p1
%build
mkdir -p %{_target_platform}
@@ -83,6 +85,9 @@ fi
%changelog
+* Mon Oct 18 2010 Thomas Janssen <thomasj at fedoraproject.org> 1.3.1-2
+- added patch to fix scrolling background
+
* Thu Jul 01 2010 Rex Dieter <rdieter at fedoraproject.org> - 1.3.1-1
- konversation-1.3.1
diff --git a/konvi-1.3.1_fix-scroll_background.patch b/konvi-1.3.1_fix-scroll_background.patch
new file mode 100644
index 0000000..10a5fd5
--- /dev/null
+++ b/konvi-1.3.1_fix-scroll_background.patch
@@ -0,0 +1,41 @@
+diff --git a/src/viewer/ircview.cpp b/src/viewer/ircview.cpp
+index 43a4004..5d67a7d 100644
+--- a/src/viewer/ircview.cpp
++++ b/src/viewer/ircview.cpp
+@@ -625,27 +625,27 @@ void IRCView::updateAppearance()
+
+ setVerticalScrollBarPolicy(Preferences::self()->showIRCViewScrollBar() ? Qt::ScrollBarAlwaysOn : Qt::ScrollBarAlwaysOff);
+
+- QPalette p;
+-
+- p.setColor(QPalette::Base, Preferences::self()->color(Preferences::TextViewBackground));
+-
+ if (Preferences::self()->showBackgroundImage())
+ {
+ KUrl url = Preferences::self()->backgroundImage();
+
+- if (!url.isEmpty())
++ if (url.hasPath())
+ {
+- QBrush brush;
+-
+- brush.setTexture(QPixmap(url.path()));
++ viewport()->setStyleSheet("QWidget { background-image: url("+url.path()+"); background-attachment:fixed; }");
+
+- p.setBrush(QPalette::Base, brush);
++ return;
+ }
+ }
+
++ if (!viewport()->styleSheet().isEmpty())
++ viewport()->setStyleSheet("");
++
++ QPalette p;
++ p.setColor(QPalette::Base, Preferences::self()->color(Preferences::TextViewBackground));
+ setPalette(p);
+ }
+
++
+ // Data insertion
+
+ void IRCView::append(const QString& nick, const QString& message)
More information about the scm-commits
mailing list