Skip to content
Snippets Groups Projects
Commit b1be607d authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

trayicon-background patch

parent ea2f11af
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ __arch_pkg_commit=a97a4614dfdb3a2f0c97ed58f94385ecc9b16b1e ...@@ -7,7 +7,7 @@ __arch_pkg_commit=a97a4614dfdb3a2f0c97ed58f94385ecc9b16b1e
_pkgname=lib32-gtk3 _pkgname=lib32-gtk3
pkgname=$_pkgname-classic pkgname=$_pkgname-classic
pkgver=3.22.30 pkgver=3.22.30
pkgrel=5 pkgrel=5.1
pkgdesc="GTK3 patched for classic desktops like MATE/XFCE (see README)." pkgdesc="GTK3 patched for classic desktops like MATE/XFCE (see README)."
url="https://github.com/TomaszGasior/gtk3-mushrooms" url="https://github.com/TomaszGasior/gtk3-mushrooms"
_archgit=https://git.archlinux.org/svntogit/community.git/plain/trunk _archgit=https://git.archlinux.org/svntogit/community.git/plain/trunk
...@@ -57,12 +57,15 @@ source=( ...@@ -57,12 +57,15 @@ source=(
"gtk-query-immodules-3.0-32.hook::$_archgit/gtk-query-immodules-3.0-32.hook?h=packages/$_pkgname&id=$__arch_pkg_commit" "gtk-query-immodules-3.0-32.hook::$_archgit/gtk-query-immodules-3.0-32.hook?h=packages/$_pkgname&id=$__arch_pkg_commit"
# gtk3-mushrooms patches # gtk3-mushrooms patches
"git+$url.git" "git+$url.git"
# trayicons background patch https://github.com/TomaszGasior/gtk3-mushrooms/issues/12
'fixes__gtktrayicon-background.patch'
) )
sha256sums=('a1a4a5c12703d4e1ccda28333b87ff462741dc365131fbc94c218ae81d9a6567' sha256sums=('a1a4a5c12703d4e1ccda28333b87ff462741dc365131fbc94c218ae81d9a6567'
'ceb95c0952ccd3ded84cd55a2386a33edac91597052b077d12fa4a3cc62a1612' 'ceb95c0952ccd3ded84cd55a2386a33edac91597052b077d12fa4a3cc62a1612'
'68e3ea59140ee565a146fff2db2d2e2ed99536bbad8ba818bee124325d516e01' '68e3ea59140ee565a146fff2db2d2e2ed99536bbad8ba818bee124325d516e01'
'4ac8112ac7e6fa879756e1eeb89b5efa0825ba00e5b05469913b256f86a37608' '4ac8112ac7e6fa879756e1eeb89b5efa0825ba00e5b05469913b256f86a37608'
'SKIP') 'SKIP'
'57086d7b73b8631bf1a44ff1db255333e8244ae6bd2c1617d540397f78790f7b')
__patch_makefiles() { __patch_makefiles() {
__replace_string_in_file() { __replace_string_in_file() {
...@@ -100,10 +103,7 @@ __patch_gtk_code() { ...@@ -100,10 +103,7 @@ __patch_gtk_code() {
} }
prepare() { prepare() {
cd gtk3-mushrooms cd "$srcdir/gtk+-$pkgver"
sed -i 's/9589/9598/g' other__hide-insert-emoji.patch
cd "../gtk+-$pkgver"
# Make building faster by skipping tests, code examples and unused elements. # Make building faster by skipping tests, code examples and unused elements.
__patch_makefiles __patch_makefiles
...@@ -114,6 +114,7 @@ prepare() { ...@@ -114,6 +114,7 @@ prepare() {
# Temporary. Will be removed with next GTK3 release. # Temporary. Will be removed with next GTK3 release.
patch -p 1 -i "$srcdir/upstream_transparent_window_bg_1._patch" patch -p 1 -i "$srcdir/upstream_transparent_window_bg_1._patch"
patch -p 1 -i "$srcdir/upstream_transparent_window_bg_2._patch" patch -p 1 -i "$srcdir/upstream_transparent_window_bg_2._patch"
patch -p 1 -i "$srcdir/fixes__gtktrayicon-background.patch"
NOCONFIGURE=1 ./autogen.sh NOCONFIGURE=1 ./autogen.sh
} }
......
--- a/gtk/deprecated/gtktrayicon-x11.c
+++ b/gtk/deprecated/gtktrayicon-x11.c
@@ -967,6 +967,8 @@
{
/* Set a parent-relative background pixmap */
gdk_window_set_background_pattern (window, NULL);
+ XSetWindowBackgroundPixmap (GDK_WINDOW_XDISPLAY (window),
+ GDK_WINDOW_XID (window), ParentRelative);
}
G_GNUC_END_IGNORE_DEPRECATIONS
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment