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 1.3.1-2 +- added patch to fix scrolling background + * Thu Jul 01 2010 Rex Dieter - 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)