summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-17 06:24:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-17 06:25:30 +0000
commit4e682f5c184b1dce98f959283b54da40f0aa2426 (patch)
tree80da2b15072a16e050ae7d41dc3edc5d5e126bbc
parentb13d6899cabcbce9bb202da00ff29c8e641a3ebe (diff)
downloadaports-4e682f5c184b1dce98f959283b54da40f0aa2426.tar.bz2
aports-4e682f5c184b1dce98f959283b54da40f0aa2426.tar.xz
testing/greybird-themes: fix checkboxes and radios in gtk-3.14
https://github.com/shimmerproject/Greybird/pull/70
-rw-r--r--testing/greybird-themes/APKBUILD12
-rw-r--r--testing/greybird-themes/fix-checkboxes-and-radiosin-gtk-3.14.patch212
2 files changed, 220 insertions, 4 deletions
diff --git a/testing/greybird-themes/APKBUILD b/testing/greybird-themes/APKBUILD
index 735e08873..07e29be67 100644
--- a/testing/greybird-themes/APKBUILD
+++ b/testing/greybird-themes/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=greybird-themes
pkgver=1.4
-pkgrel=1
+pkgrel=2
pkgdesc="A clean minimalistic theme for Xfce, GTK+ 2 and 3"
url="http://shimmerproject.org/project/greybird/"
arch="noarch"
@@ -14,6 +14,7 @@ subpackages="$pkgname-gtk2 $pkgname-gtk3 $pkgname-metacity $pkgname-xfwm4
$pkgname-xfce4-notifyd:_notify"
source="greybird-$pkgver.tar.gz::https://github.com/shimmerproject/Greybird/archive/v$pkgver.tar.gz
gtk-3.14-fix.patch
+ fix-checkboxes-and-radiosin-gtk-3.14.patch
"
_builddir="$srcdir"/Greybird-$pkgver
@@ -71,8 +72,11 @@ xfwm4() { _mv "Greybird Xfce4 themes" xfwm4 xfwm4 xfwm4_compact; }
_notify() { _mv "Greybird Xfce4-notifyd themes" xfce4-notifyd xfce-notify-4.0; }
md5sums="da5345a9b253fd9bf5ea101a3ecc2fb5 greybird-1.4.tar.gz
-ef3882cc1ea6c00fb1c372c911b563fe gtk-3.14-fix.patch"
+ef3882cc1ea6c00fb1c372c911b563fe gtk-3.14-fix.patch
+1a7f24979df494f9782e1ceda3163b99 fix-checkboxes-and-radiosin-gtk-3.14.patch"
sha256sums="e4d42de800d32ce4c7670afd546aa3ff37716e05fdff821a3d803b8d0603c571 greybird-1.4.tar.gz
-00d0c58a96c5c1090adcf8ec479d5d608e68d1141e79cebb1112f3430ae7a482 gtk-3.14-fix.patch"
+00d0c58a96c5c1090adcf8ec479d5d608e68d1141e79cebb1112f3430ae7a482 gtk-3.14-fix.patch
+cf36fbded04279858a838acbaa8c73436e601f2f23208b10f5a8f25eeda91269 fix-checkboxes-and-radiosin-gtk-3.14.patch"
sha512sums="8b414373f01655673e29c7454f88ffffade10b8a0883e777b1b5f41706042253d04ff5f886bb70a0e01a869f4ee5cb2dbe50dde4b48df5e4956d6446aaf16621 greybird-1.4.tar.gz
-6cb7912dda0b82065e58a51533ce0b7d6341af5e7e996dd2f2870c8e2db6c439e7c47f12e7bccb24c74021de6516ebbc9a0ac32c5323b048002b7abf87365722 gtk-3.14-fix.patch"
+6cb7912dda0b82065e58a51533ce0b7d6341af5e7e996dd2f2870c8e2db6c439e7c47f12e7bccb24c74021de6516ebbc9a0ac32c5323b048002b7abf87365722 gtk-3.14-fix.patch
+4af34afde65259a9bf26ea3798fbfad5ce0b42a16f5fd0462c29205566739284c3823723eafc3702d8ae8b4ce9e8517ed61fe914a88a55340310421fbe1d852a fix-checkboxes-and-radiosin-gtk-3.14.patch"
diff --git a/testing/greybird-themes/fix-checkboxes-and-radiosin-gtk-3.14.patch b/testing/greybird-themes/fix-checkboxes-and-radiosin-gtk-3.14.patch
new file mode 100644
index 000000000..a1c700e91
--- /dev/null
+++ b/testing/greybird-themes/fix-checkboxes-and-radiosin-gtk-3.14.patch
@@ -0,0 +1,212 @@
+From 6f8013cf293f2484b1896bfaaa0a052c02b1f83b Mon Sep 17 00:00:00 2001
+From: Jiri Horner <laeqten@gmail.com>
+Date: Thu, 16 Oct 2014 17:46:04 +0200
+Subject: [PATCH] fix checkboxes and radios in gtk3.14
+
+* :active is now :checked
+* checkboxes and radios are now using -gtk-icon-source: instead of background-image property
+---
+ gtk-3.0/gtk-widgets-assets.css | 104 ++++++++++++++++++++---------------------
+ 1 file changed, 52 insertions(+), 52 deletions(-)
+
+diff --git a/gtk-3.0/gtk-widgets-assets.css b/gtk-3.0/gtk-widgets-assets.css
+index 48d3012..adfffe0 100644
+--- a/gtk-3.0/gtk-widgets-assets.css
++++ b/gtk-3.0/gtk-widgets-assets.css
+@@ -5,144 +5,144 @@
+ .check,
+ .check row:selected,
+ .check row:selected:focus {
+- background-image: url("assets/checkbox-unchecked.png");
++ -gtk-icon-source: url("assets/checkbox-unchecked.png");
+ }
+
+ .check:insensitive,
+ .check row:selected:insensitive,
+ .check row:selected:focus:insensitive {
+- background-image: url("assets/checkbox-unchecked-insensitive.png");
++ -gtk-icon-source: url("assets/checkbox-unchecked-insensitive.png");
+ }
+
+-.check:active,
+-.check row:selected:active,
+-.check row:selected:focus:active {
+- background-image: url("assets/checkbox-checked.png");
++.check:active, .check:checked,
++.check row:selected:active, .check row:selected:checked,
++.check row:selected:focus:active, .check row:selected:focus:checked {
++ -gtk-icon-source: url("assets/checkbox-checked.png");
+ }
+
+-.check:active:hover,
+-.check row:selected:active:hover,
+-.check row:selected:focus:active:hover {
+- background-image: url("assets/checkbox-checked-hover.png");
++.check:active:hover, .check:checked:hover,
++.check row:selected:active:hover, .check row:selected:checked:hover,
++.check row:selected:focus:active:hover, .check row:selected:focus:checked:hover {
++ -gtk-icon-source: url("assets/checkbox-checked-hover.png");
+ }
+
+-.check:active:insensitive,
+-.check row:selected:active:insensitive,
+-.check row:selected:focus:active:insensitive {
+- background-image: url("assets/checkbox-checked-insensitive.png");
++.check:active:insensitive, .check:checked:insensitive,
++.check row:selected:active:insensitive, .check row:selected:checked:insensitive,
++.check row:selected:focus:active:insensitive, .check row:selected:focus:checked:insensitive {
++ -gtk-icon-source: url("assets/checkbox-checked-insensitive.png");
+ }
+
+ .check:inconsistent,
+ .check row:selected:inconsistent,
+ .check row:selected:focus:inconsistent {
+- background-image: url("assets/checkbox-mixed.png");
++ -gtk-icon-source: url("assets/checkbox-mixed.png");
+ }
+
+ .check:inconsistent:hover,
+ .check row:selected:inconsistent:hover,
+ .check row:selected:focus:inconsistent:hover {
+- background-image: url("assets/checkbox-mixed-hover.png");
++ -gtk-icon-source: url("assets/checkbox-mixed-hover.png");
+ }
+
+ .check:inconsistent:insensitive,
+ .check row:selected:inconsistent:insensitive,
+ .check row:selected:focus:inconsistent:insensitive {
+- background-image: url("assets/checkbox-mixed-insensitive.png");
++ -gtk-icon-source: url("assets/checkbox-mixed-insensitive.png");
+ }
+
+ .radio,
+ .radio row:selected,
+ .radio row:selected:focus {
+- background-image: url("assets/radio-unselected.png");
++ -gtk-icon-source: url("assets/radio-unselected.png");
+ }
+
+ .radio:insensitive,
+ .radio row:selected:insensitive,
+ .radio row:selected:focus:insensitive {
+- background-image: url("assets/radio-unselected-insensitive.png");
++ -gtk-icon-source: url("assets/radio-unselected-insensitive.png");
+ }
+
+-.radio:active,
+-.radio row:selected:active,
+-.radio row:selected:focus:active {
+- background-image: url("assets/radio-selected.png");
++.radio:active, .radio:checked,
++.radio row:selected:active, .radio row:selected:checked,
++.radio row:selected:focus:active, .radio row:selected:focus:checked {
++ -gtk-icon-source: url("assets/radio-selected.png");
+ }
+
+-.radio:active:hover,
+-.radio row:selected:active:hover,
+-.radio row:selected:focus:active:hover {
+- background-image: url("assets/radio-selected-hover.png");
++.radio:active:hover, .radio:checked:hover,
++.radio row:selected:active:hover, .radio row:selected:checked:hover,
++.radio row:selected:focus:active:hover, .radio row:selected:focus:checked:hover {
++ -gtk-icon-source: url("assets/radio-selected-hover.png");
+ }
+
+-.radio:active:insensitive,
+-.radio row:selected:active:insensitive,
+-.radio row:selected:focus:active:insensitive {
+- background-image: url("assets/radio-selected-insensitive.png");
++.radio:active:insensitive, .radio:checked:insensitive,
++.radio row:selected:active:insensitive, .radio row:selected:checked:insensitive,
++.radio row:selected:focus:active:insensitive, .radio row:selected:focus:checked:insensitive {
++ -gtk-icon-source: url("assets/radio-selected-insensitive.png");
+ }
+
+ .radio:inconsistent,
+ .radio row:selected:inconsistent,
+ .radio row:selected:focus:inconsistent {
+- background-image: url("assets/radio-mixed.png");
++ -gtk-icon-source: url("assets/radio-mixed.png");
+ }
+
+ .radio:inconsistent:hover,
+ .radio row:selected:inconsistent:hover,
+ .radio row:selected:focus:inconsistent:hover {
+- background-image: url("assets/radio-mixed-hover.png");
++ -gtk-icon-source: url("assets/radio-mixed-hover.png");
+ }
+
+ .radio:inconsistent:insensitive,
+ .radio row:selected:inconsistent:insensitive,
+ .radio row:selected:focus:inconsistent:insensitive {
+- background-image: url("assets/radio-mixed-insensitive.png");
++ -gtk-icon-source: url("assets/radio-mixed-insensitive.png");
+ }
+
+-.menuitem.check:active {
+- background-image: url("assets/menuitem-checkbox-checked.png");
++.menuitem.check:active, .menuitem.check:checked {
++ -gtk-icon-source: url("assets/menuitem-checkbox-checked.png");
+ }
+
+-.menuitem.check:active:hover {
+- background-image: url("assets/menuitem-checkbox-checked-hover.png");
++.menuitem.check:active:hover, .menuitem.check:checked:hover {
++ -gtk-icon-source: url("assets/menuitem-checkbox-checked-hover.png");
+ }
+
+-.menuitem.check:active:insensitive {
+- background-image: url("assets/menuitem-checkbox-checked-insensitive.png");
++.menuitem.check:active:insensitive, .menuitem.check:checked:insensitive {
++ -gtk-icon-source: url("assets/menuitem-checkbox-checked-insensitive.png");
+ }
+
+ .menuitem.check:inconsistent:hover,
+ .menuitem.radio:inconsistent:hover {
+- background-image: url("assets/menuitem-checkbox-mixed-hover.png");
++ -gtk-icon-source: url("assets/menuitem-checkbox-mixed-hover.png");
+ }
+
+ .menuitem.check:inconsistent,
+ .menuitem.radio:inconsistent {
+- background-image: url("assets/menuitem-checkbox-mixed.png");
++ -gtk-icon-source: url("assets/menuitem-checkbox-mixed.png");
+ }
+
+ .menuitem.check:inconsistent:insensitive,
+ .menuitem.radio:inconsistent:insensitive {
+- background-image: url("assets/menuitem-checkbox-mixed-insensitive.png");
++ -gtk-icon-source: url("assets/menuitem-checkbox-mixed-insensitive.png");
+ }
+
+-.menuitem.radio:active {
+- background-image: url("assets/menuitem-radio-checked.png");
++.menuitem.radio:active, .menuitem.radio:checked {
++ -gtk-icon-source: url("assets/menuitem-radio-checked.png");
+ }
+
+-.menuitem.radio:active:hover {
+- background-image: url("assets/menuitem-radio-checked-hover.png");
++.menuitem.radio:active:hover, .menuitem.radio:checked:hover {
++ -gtk-icon-source: url("assets/menuitem-radio-checked-hover.png");
+ }
+
+-.menuitem.radio:active:insensitive {
+- background-image: url("assets/menuitem-radio-checked-insensitive.png");
++.menuitem.radio:active:insensitive, .menuitem.radio:checked:insensitive {
++ -gtk-icon-source: url("assets/menuitem-radio-checked-insensitive.png");
+ }
+
+ GtkIconView.content-view.cell.check {
+- background-image: url("assets/grid-selection-unchecked.png");
++ -gtk-icon-source: url("assets/grid-selection-unchecked.png");
+ }
+
+-GtkIconView.content-view.cell.check:active {
+- background-image: url("assets/grid-selection-checked.png");
++GtkIconView.content-view.cell.check:active, GtkIconView.content-view.cell.check:checked {
++ -gtk-icon-source: url("assets/grid-selection-checked.png");
+ }
+
+ /***************