summaryrefslogtreecommitdiff
path: root/gtk3-stackrpms/gtk3-automnemonics
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-05-27 15:14:14 +0000
committerB. Stack <bgstack15@gmail.com>2021-05-27 15:14:14 +0000
commit26c6a65743933c774f68871c275e0d7225e6ecad (patch)
tree5979a95a0556b843105ded256c56f3f4b0007f06 /gtk3-stackrpms/gtk3-automnemonics
parentMerge branch 'irfanview-bump' into 'master' (diff)
parentgtk3-autom add BR gcc (diff)
downloadstackrpms-26c6a65743933c774f68871c275e0d7225e6ecad.tar.gz
stackrpms-26c6a65743933c774f68871c275e0d7225e6ecad.tar.bz2
stackrpms-26c6a65743933c774f68871c275e0d7225e6ecad.zip
Merge branch 'gtk3-stackrpms' into 'master'
Gtk3 stackrpms See merge request bgstack15/stackrpms!239
Diffstat (limited to 'gtk3-stackrpms/gtk3-automnemonics')
-rw-r--r--gtk3-stackrpms/gtk3-automnemonics/53gtk3-automnemonics14
-rw-r--r--gtk3-stackrpms/gtk3-automnemonics/gtk3-automnemonics.spec42
2 files changed, 56 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..3a4cd9c
--- /dev/null
+++ b/gtk3-stackrpms/gtk3-automnemonics/gtk3-automnemonics.spec
@@ -0,0 +1,42 @@
+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: gcc
+BuildRequires: meson
+BuildRequires: pkgconfig(gtk+-3.0)
+
+%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
bgstack15