Date: Tuesday, April 12, 2016 @ 17:45:13 Author: bgyorgy Revision: 170772
upgpkg: mate-themes 3.20.5-2 Apply fix for GTK+-3.20: fix text selection in firefox (FS#48783) Added: mate-themes/trunk/fix-selection.patch Modified: mate-themes/trunk/PKGBUILD ---------------------+ PKGBUILD | 15 ++ fix-selection.patch | 285 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 297 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-04-12 15:40:04 UTC (rev 170771) +++ PKGBUILD 2016-04-12 15:45:13 UTC (rev 170772) @@ -3,7 +3,7 @@ _ver=3.20 pkgname=mate-themes pkgver=${_ver}.5 -pkgrel=1 +pkgrel=2 pkgdesc="Default themes for the MATE desktop" url="http://mate-desktop.org" arch=('any') @@ -11,10 +11,19 @@ depends=('gtk-engines' 'gtk-engine-murrine' 'librsvg' 'mate-icon-theme') makedepends=('mate-common' 'icon-naming-utils') groups=('mate' 'mate-gtk3') -source=("http://pub.mate-desktop.org/releases/themes/${_ver}/${pkgname}-${pkgver}.tar.xz") -sha1sums=('640d33c45d37247a9e27de15df8685cfaa8c951d') +source=("http://pub.mate-desktop.org/releases/themes/${_ver}/${pkgname}-${pkgver}.tar.xz" + "fix-selection.patch") +sha1sums=('640d33c45d37247a9e27de15df8685cfaa8c951d' + 'da38d1a46be209d81cfd69e4ab3f579bde2c6d20') install=${pkgname}.install +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # GTK+-3.20: fix text selection in firefox + patch -Np1 -i ../fix-selection.patch +} + build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure \ Added: fix-selection.patch =================================================================== --- fix-selection.patch (rev 0) +++ fix-selection.patch 2016-04-12 15:45:13 UTC (rev 170772) @@ -0,0 +1,285 @@ +From 8ae453c137f1d9012e9f2e4350d1d73ee570e000 Mon Sep 17 00:00:00 2001 +From: raveit65 <chat-to...@raveit.de> +Date: Tue, 12 Apr 2016 00:09:40 +0200 +Subject: [PATCH] GTK+-3.20 Menta themes: fix for firefox text selection + +--- + desktop-themes/BlueMenta/gtk-3.0/gtk-widgets.css | 24 ++++++++++++++++++++++++ + desktop-themes/Menta/gtk-3.0/gtk-widgets.css | 24 ++++++++++++++++++++++++ + 2 files changed, 48 insertions(+) + +diff --git a/desktop-themes/BlueMenta/gtk-3.0/gtk-widgets.css b/desktop-themes/BlueMenta/gtk-3.0/gtk-widgets.css +index ee44625..d023928 100644 +--- a/desktop-themes/BlueMenta/gtk-3.0/gtk-widgets.css ++++ b/desktop-themes/BlueMenta/gtk-3.0/gtk-widgets.css +@@ -4134,6 +4134,30 @@ textview, + color: shade (@theme_selected_bg_color, 0.35); + } + ++/* for firefox and probably other apps */ ++label:selected, ++label selection, ++label selection:focus, ++label selection:hover { ++ background-color: @theme_selected_bg_color; ++ color: @theme_selected_fg_color; ++} ++ ++label:disabled:selected, ++label selection:disabled { ++ color: @insensitive_fg_color; ++} ++ ++label:backdrop:selected, ++label selection:backdrop { ++ color: @theme_fg_color; ++} ++ ++label:backdrop:disabled:selected, ++label selection:backdrop:disabled { ++ color: @insensitive_fg_color; ++} ++ + .cell { + padding: 2px; + text-shadow: none; +diff --git a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css +index 2acad08..6d0f063 100644 +--- a/desktop-themes/Menta/gtk-3.0/gtk-widgets.css ++++ b/desktop-themes/Menta/gtk-3.0/gtk-widgets.css +@@ -4134,6 +4134,30 @@ textview, + color: shade (@theme_selected_bg_color, 0.35); + } + ++/* for firefox and probably other apps */ ++label:selected, ++label selection, ++label selection:focus, ++label selection:hover { ++ background-color: @theme_selected_bg_color; ++ color: @theme_selected_fg_color; ++} ++ ++label:disabled:selected, ++label selection:disabled { ++ color: @insensitive_fg_color; ++} ++ ++label:backdrop:selected, ++label selection:backdrop { ++ color: @theme_fg_color; ++} ++ ++label:backdrop:disabled:selected, ++label selection:backdrop:disabled { ++ color: @insensitive_fg_color; ++} ++ + .cell { + padding: 2px; + text-shadow: none; +From 7ccbba8500ffd5f12f9ff8c9eacf8e5a818da2bb Mon Sep 17 00:00:00 2001 +From: raveit65 <chat-to...@raveit.de> +Date: Tue, 12 Apr 2016 01:54:25 +0200 +Subject: [PATCH] GTK+-3.20 all other themes: fix text selection in firefox + +--- + desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css | 23 +++++++++++++++++++ + .../Blue-Submarine/gtk-3.0/gtk-widgets.css | 26 +++++++++++++++++++++- + .../Green-Submarine/gtk-3.0/gtk-widgets.css | 26 +++++++++++++++++++++- + .../TraditionalGreen/gtk-3.0/gtk-widgets.css | 24 ++++++++++++++++++++ + .../TraditionalOk/gtk-3.0/gtk-widgets.css | 24 ++++++++++++++++++++ + 5 files changed, 121 insertions(+), 2 deletions(-) + +diff --git a/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css b/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css +index 8e8b26a..6603aed 100644 +--- a/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css ++++ b/desktop-themes/BlackMATE/gtk-3.0/gtk-widgets.css +@@ -275,6 +275,29 @@ dialog view { + color: @theme_fg_color; + } + ++/* for firefox and probably other apps */ ++label:selected, ++label selection, ++label selection:focus, ++label selection:hover { ++ background-color: @theme_selected_bg_color; ++ color: @theme_selected_fg_color; ++} ++ ++label:disabled:selected, ++label selection:disabled { ++ color: @insensitive_fg_color; ++} ++ ++label:backdrop:selected, ++label selection:backdrop { ++ color: @theme_fg_color; ++} ++ ++label:backdrop:disabled:selected, ++label selection:backdrop:disabled { ++ color: @insensitive_fg_color; ++} + + /**************************** + * Caret for editable text * +diff --git a/desktop-themes/Blue-Submarine/gtk-3.0/gtk-widgets.css b/desktop-themes/Blue-Submarine/gtk-3.0/gtk-widgets.css +index e72fed7..7856ebc 100644 +--- a/desktop-themes/Blue-Submarine/gtk-3.0/gtk-widgets.css ++++ b/desktop-themes/Blue-Submarine/gtk-3.0/gtk-widgets.css +@@ -4073,7 +4073,7 @@ view text selection:focus, + text-shadow: none; + } + +-/* ie. coloe of selected icons if unfocused */ ++/* ie. color of selected icons if unfocused */ + .view:active { + background-color: shade(@theme_bg_color, 0.8); + } +@@ -4083,6 +4083,30 @@ view text selection:focus, + text-shadow: 0px 1px @theme_selected_shadow_color; + } + ++/* for firefox and probably other apps */ ++label:selected, ++label selection, ++label selection:focus, ++label selection:hover { ++ background-color: @theme_selected_bg_color; ++ color: @theme_selected_fg_color; ++} ++ ++label:disabled:selected, ++label selection:disabled { ++ color: @insensitive_fg_color; ++} ++ ++label:backdrop:selected, ++label selection:backdrop { ++ color: @theme_fg_color; ++} ++ ++label:backdrop:disabled:selected, ++label selection:backdrop:disabled { ++ color: @insensitive_fg_color; ++} ++ + treeview, + treeview.view { + padding: 4px +diff --git a/desktop-themes/Green-Submarine/gtk-3.0/gtk-widgets.css b/desktop-themes/Green-Submarine/gtk-3.0/gtk-widgets.css +index 9f3b4bc..ecd6a19 100644 +--- a/desktop-themes/Green-Submarine/gtk-3.0/gtk-widgets.css ++++ b/desktop-themes/Green-Submarine/gtk-3.0/gtk-widgets.css +@@ -4072,7 +4072,7 @@ view text selection:focus, + text-shadow: none; + } + +-/* ie. coloe of selected icons if unfocused */ ++/* ie. color of selected icons if unfocused */ + .view:active { + background-color: shade(@theme_bg_color, 0.8); + } +@@ -4082,6 +4082,30 @@ view text selection:focus, + text-shadow: 0px 1px @theme_selected_shadow_color; + } + ++/* for firefox and probably other apps */ ++label:selected, ++label selection, ++label selection:focus, ++label selection:hover { ++ background-color: @theme_selected_bg_color; ++ color: @theme_selected_fg_color; ++} ++ ++label:disabled:selected, ++label selection:disabled { ++ color: @insensitive_fg_color; ++} ++ ++label:backdrop:selected, ++label selection:backdrop { ++ color: @theme_fg_color; ++} ++ ++label:backdrop:disabled:selected, ++label selection:backdrop:disabled { ++ color: @insensitive_fg_color; ++} ++ + treeview, + treeview.view { + padding: 4px +diff --git a/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css b/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css +index 67a4b16..afa10ed 100644 +--- a/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css ++++ b/desktop-themes/TraditionalGreen/gtk-3.0/gtk-widgets.css +@@ -2938,6 +2938,30 @@ treeview:disabled { + color: @insensitive_fg_color; + } + ++/* for firefox and probably other apps */ ++label:selected, ++label selection, ++label selection:focus, ++label selection:hover { ++ background-color: @theme_selected_bg_color; ++ color: @theme_selected_fg_color; ++} ++ ++label:disabled:selected, ++label selection:disabled { ++ color: @insensitive_fg_color; ++} ++ ++label:backdrop:selected, ++label selection:backdrop { ++ color: @theme_fg_color; ++} ++ ++label:backdrop:disabled:selected, ++label selection:backdrop:disabled { ++ color: @insensitive_fg_color; ++} ++ + /*************** + * GtkTreeview * + ***************/ +diff --git a/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css b/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css +index f0451b6..a2de7c8 100644 +--- a/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css ++++ b/desktop-themes/TraditionalOk/gtk-3.0/gtk-widgets.css +@@ -2938,6 +2938,30 @@ treeview:disabled { + color: @insensitive_fg_color; + } + ++/* for firefox and probably other apps */ ++label:selected, ++label selection, ++label selection:focus, ++label selection:hover { ++ background-color: @theme_selected_bg_color; ++ color: @theme_selected_fg_color; ++} ++ ++label:disabled:selected, ++label selection:disabled { ++ color: @insensitive_fg_color; ++} ++ ++label:backdrop:selected, ++label selection:backdrop { ++ color: @theme_fg_color; ++} ++ ++label:backdrop:disabled:selected, ++label selection:backdrop:disabled { ++ color: @insensitive_fg_color; ++} ++ + /*************** + * GtkTreeview * + ***************/