summaryrefslogtreecommitdiff
path: root/extra/oxygen-gtk2
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-02-08 00:08:16 -0800
committerroot <root@rshg054.dnsready.net>2013-02-08 00:08:16 -0800
commit7c92c5fcfb5653f63243842299e413672653d1ad (patch)
tree3487915cdf6e673c8a6dccfbd2a526e341550c87 /extra/oxygen-gtk2
parent8e5a0a990a12a59cadb687cae22a1960fce1660b (diff)
Fri Feb 8 00:08:16 PST 2013
Diffstat (limited to 'extra/oxygen-gtk2')
-rw-r--r--extra/oxygen-gtk2/PKGBUILD14
-rw-r--r--extra/oxygen-gtk2/fix-regression.patch48
2 files changed, 58 insertions, 4 deletions
diff --git a/extra/oxygen-gtk2/PKGBUILD b/extra/oxygen-gtk2/PKGBUILD
index 53f8e7933..4c84a7685 100644
--- a/extra/oxygen-gtk2/PKGBUILD
+++ b/extra/oxygen-gtk2/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 176330 2013-01-30 13:08:58Z andrea $
+# $Id: PKGBUILD 177572 2013-02-07 13:44:31Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: birdflesh <antkoul at gmail dot com>
pkgname=oxygen-gtk2
pkgver=1.3.2
-pkgrel=1
+pkgrel=2
pkgdesc="Port of the default KDE widget theme (Oxygen) to GTK2"
arch=('i686' 'x86_64')
url='https://projects.kde.org/projects/playground/artwork/oxygen-gtk/'
@@ -13,10 +13,16 @@ depends=('gtk2')
conflicts=('oxygen-gtk')
replaces=('oxygen-gtk')
makedepends=('cmake')
-source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2")
-md5sums=('7c4ecfca330102b7ff50e472a62dfc60')
+source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.bz2"
+ 'fix-regression.patch')
+md5sums=('7c4ecfca330102b7ff50e472a62dfc60'
+ 'bced3ab820c3eafbb4e40a279d05bff6')
build() {
+ cd ${pkgname}-${pkgver}/
+ patch -p1 -i "${srcdir}"/fix-regression.patch
+ cd ../
+
mkdir build
cd build
cmake ../${pkgname}-${pkgver} \
diff --git a/extra/oxygen-gtk2/fix-regression.patch b/extra/oxygen-gtk2/fix-regression.patch
new file mode 100644
index 000000000..466b53c17
--- /dev/null
+++ b/extra/oxygen-gtk2/fix-regression.patch
@@ -0,0 +1,48 @@
+diff --git a/src/oxygenqtsettings.cpp b/src/oxygenqtsettings.cpp
+index f2ad1af..9965086 100644
+--- a/src/oxygenqtsettings.cpp
++++ b/src/oxygenqtsettings.cpp
+@@ -102,6 +102,9 @@ namespace Oxygen
+
+ const bool forced( flags&Forced );
+
++ // no attempt at initializing if gtk settings is not yet set
++ if( !gtk_settings_get_default() ) return false;
++
+ if( _initialized && !forced ) return false;
+ else if( !forced ) _initialized = true;
+
+diff --git a/src/oxygenstylewrapper.cpp b/src/oxygenstylewrapper.cpp
+index ff0666b..a2572b0 100644
+--- a/src/oxygenstylewrapper.cpp
++++ b/src/oxygenstylewrapper.cpp
+@@ -3741,6 +3741,10 @@ namespace Oxygen
+ #endif
+
+ // style initialization
++ /*
++ this is normally achieved in theme_init, but is somehow not working with gnome shell
++ so that it is redone here, since duplication is avoided when initialization is called twice without modifications
++ */
+ Style::instance().initialize();
+
+ // hooks
+diff --git a/src/oxygentheme.cpp b/src/oxygentheme.cpp
+index 50b04e2..9bc49e1 100644
+--- a/src/oxygentheme.cpp
++++ b/src/oxygentheme.cpp
+@@ -52,12 +52,8 @@ void theme_init( GTypeModule* module )
+ Oxygen::RCStyle::registerType( module );
+ Oxygen::StyleWrapper::registerType( module );
+
+- // initialize oxygen here, for XUL applications
+- // special care is taken to not initialize everything
+- Oxygen::ApplicationName applicationName;
+- applicationName.initialize();
+- if( applicationName.isXul() )
+- { Oxygen::Style::instance().initialize( Oxygen::QtSettings::Forced | Oxygen::QtSettings::Colors ); }
++ // style initialization
++ Oxygen::Style::instance().initialize();
+
+ }
+