From 459a709ae63f038dbdb875dafd445537491e3c23 Mon Sep 17 00:00:00 2001 From: Tigro Date: Tue, 8 Mar 2016 19:51:23 +0300 Subject: [PATCH] added gtk3 support --- chromium-browser-stable.spec | 10 +++++++++- gtk2_ui.patch | 12 ++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 gtk2_ui.patch diff --git a/chromium-browser-stable.spec b/chromium-browser-stable.spec index 89849d4..1c07453 100644 --- a/chromium-browser-stable.spec +++ b/chromium-browser-stable.spec @@ -64,6 +64,10 @@ Patch506: chromium-43-no-ffmpeg-internal.patch Patch507: issue1688073002_40001.diff Patch600: unbundle-libvpx_new-fix.patch +# AUR patches +# https://aur.archlinux.org/cgit/aur.git/plain/gtk2_ui.patch?h=chromium-dev +Patch700: gtk2_ui.patch + Provides: %{crname} = %{EVRD} Conflicts: chromium-browser-unstable Conflicts: chromium-browser-beta @@ -96,6 +100,7 @@ BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(gnome-keyring-1) BuildRequires: pkgconfig(gstreamer-plugins-base-1.0) BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(harfbuzz) %if 0%{icu} BuildRequires: pkgconfig(icu-i18n) @@ -303,6 +308,9 @@ find third_party/icu -type f \! -regex '.*\.\(gyp\|gypi\|isolate\)' -delete %endif #patch600 -p1 +# AUR patches +%patch700 -p1 + ### build with widevine support # Patch from crbug (chromium bugtracker) @@ -327,7 +335,7 @@ buildconfig+="-Dwerror= -Dlinux_fpic=1 -Ddisable_sse2=1 -Dcomponent=shared_library - -Dtoolkit_uses_gtk=0 + -Duse_gtk3=1 -Ddisable_nacl=1 -Ddisable_glibc=0 -Ddisable_pnacl=1 diff --git a/gtk2_ui.patch b/gtk2_ui.patch new file mode 100644 index 0000000..282edc0 --- /dev/null +++ b/gtk2_ui.patch @@ -0,0 +1,12 @@ +diff --git a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc.orig b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc +index 4c119c5..1b67ad2 100644 +--- a/chrome/browser/ui/libgtk2ui/gtk2_ui.cc.orig ++++ b/chrome/browser/ui/libgtk2ui/gtk2_ui.cc +@@ -308,6 +308,7 @@ const double kInactiveSaturation = 0.3; + // copy the constants themselves here. + // + // Default tints. ++const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f }; + const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f }; + const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f }; + const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 };