It looks like firefox 49 doesn't have any ability to enable gtk3 support. It looks like gtk3 support has been problematic in previous versions but based on this comment in firefox-45.4.0.ebuild, I'm guessing this should no longer be a problem: # Kill gtk3 support since gtk+-3.20 breaks it hard prior to 48.0 #MOZCONFIG_OPTIONAL_GTK3=1 I would like to have the ability to compile firefox 49 with gtk3 so I can get touchscreen support enabled for it: https://bugzilla.mozilla.org/show_bug.cgi?id=711711
... equery l www-client/firefox * Searching for firefox in www-client ... [IP-] [ ] www-client/firefox-49.0:0 ldd /usr/lib64/firefox/libmozgtk.so ... libgtk-3.so.0 => /usr/lib64/libgtk-3.so.0 (0x00007f4e7b6d0000) ... So, huh ?
What? I don't know why this was closed as invalid. There simply is no gtk3 flag for compiling firefox so it links to gtk2 instead: [ebuild R ~] www-client/firefox-49.0::gentoo USE="dbus gmp-autoupdate gtk2 hwaccel jemalloc jit skia startup-notification system-harfbuzz system-icu system-jpeg system-libevent system-sqlite -bindist -custom-cflags -custom-optimization -debug -hardened (-neon) -pgo -pulseaudio (-selinux) (-system-cairo) -system-libvpx {-test} -wifi" L10N="ru -ach -af -an -ar -as -ast -az -be -bg -bn-BD -bn-IN -br -bs -ca -cs -cy -da -de -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -fi -fr -fy -ga -gd -gl -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -kk -km -kn -ko -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 0 KiB line 32 in firefox-49 ebuild: MOZCONFIG_OPTIONAL_GTK2ONLY=1 line 36 in firefox-49 ebuild: inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-v6.49 pax-utils fdo-mime autotools virtualx mozlinguas-v2 lines 130-147: if [[ -n ${MOZCONFIG_OPTIONAL_GTK3} ]]; then MOZCONFIG_OPTIONAL_GTK2ONLY= if [[ ${MOZCONFIG_OPTIONAL_GTK3} = "enabled" ]]; then IUSE+=" +gtk3" else IUSE+=" gtk3" fi RDEPEND+=" gtk3? ( >=x11-libs/gtk+-3.4.0:3 )" elif [[ -n ${MOZCONFIG_OPTIONAL_GTK2ONLY} ]]; then if [[ ${MOZCONFIG_OPTIONAL_GTK2ONLY} = "enabled" ]]; then IUSE+=" +gtk2" else IUSE+=" gtk2" fi RDEPEND+=" !gtk2? ( >=x11-libs/gtk+-3.4.0:3 )" fi I hope this is clear enough now.
lines 130-147 references mozconfig-v6.49.eclass
Oh never mind. I didn't look into it further. It looks like I have to deselect gtk2 (-gtk2) to get to use gtk3.