diff -Naur chromium.orig/gtk3-fix.patch chromium/gtk3-fix.patch --- chromium.orig/gtk3-fix.patch 1970-01-01 01:00:00.000000000 +0100 +++ chromium/gtk3-fix.patch 2016-10-16 13:28:51.952820267 +0200 @@ -0,0 +1,27 @@ +--- chromium-52.0.2743.82.orig/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc 2016-07-23 20:22:44.965804588 +0000 ++++ chromium-52.0.2743.82/chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc 2016-07-23 20:24:05.772234006 +0000 +@@ -138,6 +138,11 @@ + gtk_widget_get_style_context(widget), stateMap[state], &color); + G_GNUC_END_IGNORE_DEPRECATIONS + ++ if (color.alpha == 0.0) ++ gtk_style_context_get_background_color( ++ gtk_widget_get_style_context(gtk_widget_get_toplevel(widget)), ++ stateMap[state], &color); ++ + // Hack for default color + if (color.alpha == 0.0) + color = {1, 1, 1, 1}; +@@ -510,8 +515,11 @@ + GtkWidget* NativeThemeGtk2::GetLabel() const { + static GtkWidget* fake_label = NULL; + +- if (!fake_label) ++ if (!fake_label) { + fake_label = gtk_label_new(""); ++ gtk_style_context_add_class( ++ gtk_widget_get_style_context(fake_label), "gtkstyle-fallback"); ++ } + + return fake_label; + } diff -Naur chromium.orig/PKGBUILD chromium/PKGBUILD --- chromium.orig/PKGBUILD 2016-10-16 13:35:26.552258000 +0200 +++ chromium/PKGBUILD 2016-10-16 13:35:46.609589976 +0200 @@ -12,11 +12,11 @@ arch=('i686' 'x86_64') url="http://www.chromium.org/" license=('BSD') -depends=('gtk2' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libxss' 'libexif' +depends=('gtk3' 'nss' 'alsa-lib' 'xdg-utils' 'bzip2' 'libxss' 'libexif' 'libgcrypt' 'ttf-font' 'systemd' 'dbus' 'flac' 'libpulse' 'harfbuzz' 'perl' 'perl-file-basedir' 'desktop-file-utils' 'hicolor-icon-theme' 'pciutils') -makedepends=('python2' 'gperf' 'yasm' 'mesa' 'ninja' 'python2-jinja' +makedepends=('gtk2' 'python2' 'gperf' 'yasm' 'mesa' 'ninja' 'python2-jinja' 'python2-markupsafe' 'python2-ply' 'python2-beautifulsoup4' 'python2-html5lib') optdepends=('kdebase-kdialog: needed for file dialogs in KDE' @@ -29,13 +29,15 @@ chromium.desktop chromium-52.0.2743.116-unset-madv_free.patch chromium-53.0.2785.92-last-commit-position.patch - chromium-widevine.patch) + chromium-widevine.patch + gtk3-fix.patch) sha256sums=('df89c284b0109566acc6a5a1a84d94a5ab0509cc3a86a31299a50328991edcde' '8b01fb4efe58146279858a754d90b49e5a38c9a0b36a1f84cbb7d12f92b84c28' '028a748a5c275de9b8f776f97909f999a8583a4b77fd1cd600b4fc5c0c3e91e9' '3b3aa9e28f29e6f539ed1c7832e79463b13128863a02e9c6fecd16c30d61c227' '9502a4d7e825a21ae63cced5715e5f06d983033b623cd41d94d1e38a70f29310' - 'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808') + 'd6fdcb922e5a7fbe15759d39ccc8ea4225821c44d98054ce0f23f9d1f00c9808' + 'aa22e99d559a8c441f4ba21e4916671428326d92cf2f429c5226840ef4ea0892') # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) # Note: These are for Arch Linux use ONLY. For your own distribution, please @@ -214,6 +216,9 @@ sed "s/@WIDEVINE_VERSION@/Pinkie Pie/" ../chromium-widevine.patch | patch -Np1 + # Fix gtk3 theme integration + patch -p1 -i "$srcdir"/gtk3-fix.patch + # Disable MADV_FREE (if set by glibc) # https://bugzilla.redhat.com/show_bug.cgi?id=1361157 patch -Np1 -i ../chromium-52.0.2743.116-unset-madv_free.patch @@ -271,7 +276,7 @@ 'use_gconf=false' "use_gio=false" "use_gnome_keyring=false" - "use_gtk3=false" + "use_gtk3=true" "use_pulseaudio=true" "link_pulseaudio=true" 'use_kerberos=true' @@ -288,7 +293,7 @@ 'clang_use_chrome_plugins=false' ) - make -C "$srcdir/chromium-launcher-$_launcher_ver" PREFIX=/usr + make -C "$srcdir/chromium-launcher-$_launcher_ver" PREFIX=/usr GTK=3 cd "$srcdir/$pkgname-$pkgver" export PATH="$srcdir/python2-path:$PATH"