FS#47682 - [chromium] Build Chromium with GTK3 instead of GTK2

Attached to Project: Arch Linux
Opened by Peter (protake) - Saturday, 09 January 2016, 15:53 GMT
Last edited by Evangelos Foutras (foutrelis) - Tuesday, 06 June 2017, 20:05 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 14
Private No

Details

I'd be great if we could have Chromium build with GTK3 support (-Duse_gtk3) instead of GTK2 in the future, especially for the file dialog.
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Tuesday, 06 June 2017, 20:05 GMT
Reason for closing:  Implemented
Additional comments about closing:  chromium 59.0.3071.86-1
Comment by Alif (alive4ever) - Sunday, 19 June 2016, 16:24 GMT
There is already an attempt to provide chromium with gtk3

https://aur.archlinux.org/packages/chromium-gtk3/

I haven't tested it, though.
Comment by Oscar Garcia (ogarcia) - Monday, 20 June 2016, 06:28 GMT
@Alif chromium-gtk3 works well, but not is binary. I think that these days all GTK apps that provides support to GTK3 must be compiled with this support.
Comment by Balló György (City-busz) - Friday, 22 July 2016, 17:10 GMT
Here is a diff file for the current chromium package, which implements it.
Comment by Balló György (City-busz) - Friday, 22 July 2016, 23:12 GMT
Unfortunately, the gtk3 theme integration is incomplete a bit now. I opened an upstream issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=630786
Comment by Balló György (City-busz) - Saturday, 23 July 2016, 21:25 GMT
Here is a new diff file with improved gtk3 theme integration.
Comment by Alif (alive4ever) - Sunday, 16 October 2016, 09:22 GMT
It would be nice to see this landing on Chromium 54. Debian has switched to GTK3 backend since 52.0.2743.82-3[1]

[1] http://metadata.ftp-master.debian.org/changelogs/main/c/chromium-browser/chromium-browser_53.0.2785.143-1_changelog
Comment by Balló György (City-busz) - Sunday, 16 October 2016, 17:40 GMT
I agree with Alif. Here is an updated diff file for the current PKGBUILD, which works quite well.
Comment by Alif (alive4ever) - Wednesday, 19 October 2016, 02:07 GMT
According to Fedora rpm spec for 53.0.2785.143[1], GTK3 breaks wayland, hidpi, and colors.

So, it's up to packager to decide whether GTK3 will do any good or deferred till Fedora enables it.

I can't get any information on RHEL/Centos source[2] about their chromium spec. RHEL has relased Chromium 54, but no rpm spec available at the moment. Trying to do ``git clone https://git.centos.org/git/rpms/chromium.git`` prompts for username and password. It seems that RHEL/Centos chromium repository is not currently available for public use, since RHEL is now using Centos git repository for their rpm spec[3].

[1] http://pkgs.fedoraproject.org/cgit/rpms/chromium.git/tree/chromium.spec?id=c496d29c6759ec142bff4b7e5e23a1e1f1b352ee
[2] https://git.centos.org/repositories/
[3] http://community.redhat.com/centos-faq/#_will_this_new_relationship_change_the_way_centos_obtains_red_hat_enterprise_linux_source_code
Comment by Alif (alive4ever) - Wednesday, 19 October 2016, 02:30 GMT Comment by Peter (protake) - Wednesday, 22 February 2017, 18:10 GMT Comment by Balló György (City-busz) - Wednesday, 22 February 2017, 18:34 GMT
Nice. :) There was a lot of fixes for GTK+ 3 theme support:
https://bugs.chromium.org/p/chromium/issues/detail?id=132847

So Chromium 58 will use GTK+ 3 by default, which is expected to be released as stable in April 2017.

Until that happens, it's fine to keep GTK+ 2, because the GTK+ 3 theme integration of Chromium 56 is broken.
Comment by Balló György (City-busz) - Friday, 31 March 2017, 07:47 GMT
Chromium 57 has proper GTK+ 3 theme integration now. It can be tested with this package:
https://aur.archlinux.org/packages/chromium-gtk3/
Comment by Peter (protake) - Friday, 28 April 2017, 20:32 GMT Comment by Sebastiaan Lokhorst (lonaowna) - Tuesday, 06 June 2017, 07:26 GMT
The official builds have switched to GTK+ 3 since release 59 (see e.g. 'google-chrome' in AUR). Does this mean the chromium package will switch too?

Loading...