diff options
Diffstat (limited to 'gtk3-stackrpms/gtk3-automnemonics')
-rw-r--r-- | gtk3-stackrpms/gtk3-automnemonics/53gtk3-automnemonics | 14 | ||||
-rw-r--r-- | gtk3-stackrpms/gtk3-automnemonics/gtk3-automnemonics.spec | 41 |
2 files changed, 55 insertions, 0 deletions
diff --git a/gtk3-stackrpms/gtk3-automnemonics/53gtk3-automnemonics b/gtk3-stackrpms/gtk3-automnemonics/53gtk3-automnemonics new file mode 100644 index 0000000..673e683 --- /dev/null +++ b/gtk3-stackrpms/gtk3-automnemonics/53gtk3-automnemonics @@ -0,0 +1,14 @@ +# This file is sourced by Xsession(5), not executed. + +# This file configures the global behavior of GTK3 always-on mnemonics, +# the underscores that indicate the accelerator keys. These settings +# may be overridden by individual users by setting the same variables +# to different values in their ~/.xsessionrc. + +if [ -z "$GTK3_MODULES" ] ; then + GTK3_MODULES="sgm-flexible-mnemonics" +else + GTK3_MODULES="$GTK3_MODULES:sgm-flexible-mnemonics" +fi + +export GTK3_MODULES diff --git a/gtk3-stackrpms/gtk3-automnemonics/gtk3-automnemonics.spec b/gtk3-stackrpms/gtk3-automnemonics/gtk3-automnemonics.spec new file mode 100644 index 0000000..a7776c7 --- /dev/null +++ b/gtk3-stackrpms/gtk3-automnemonics/gtk3-automnemonics.spec @@ -0,0 +1,41 @@ +Name: gtk3-automnemonics +Version: 0.90.0 +Release: 1 +Summary: disable overlay scrollbar in gtk3 +License: LGPL-2.1 +# References: +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Meson/ + +URL: https://github.com/thesquash/sgm +Source0: %{url}/archive/refs/tags/%{version}.tar.gz +Source1: 53gtk3-automnemonics + +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: meson + +%description +Adds a gtk3 module that reacts to theme setting gtk-auto-mnemonics = 0 +to always show underscores. This feature was removed in upstream gtk3 +in version 3.9.8 + +%prep +%autosetup -v -c + +%build +cd sgm-%{version} +%meson +%meson_build + +%install +cd sgm-%{version} +%meson_install +# Devuan uses /etc/X11/Xsession.d but Fedora uses /etc/X11/xinit/xinitrc.d/ +install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/"$( basename %{SOURCE1} )" + +%files +%{_sysconfdir}/X11/xinit/xinitrc.d/* +%{_libdir}/gtk-3.0/modules/* + +%changelog +* Thu May 27 2021 B. Stack <bgstack15@gmail.com> - 0.90.0-1 +- initial rpm release |