[gnome-flashback] keybindings: install screenshot keybindings



commit b149071eaa1b93da37cda1bc8064a8d6e0fed312
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 5 00:24:38 2022 +0200

    keybindings: install screenshot keybindings
    
    https://gitlab.gnome.org/GNOME/gnome-control-center/-/commit/03299794a6c95f9ceff8d6ca1d5a90ec4366a4c0
    https://gitlab.gnome.org/GNOME/gnome-control-center/-/commit/3ecc15106131cc95b5a96dfe96721d3f44e0f830
    
    Note that this is still not enough to restore Screenshots group in
    Keyboard Shortcuts dialog.

 configure.ac                                       |  8 ++++++
 data/Makefile.am                                   |  1 +
 .../keybindings/50-gnome-flashback-screenshots.xml | 32 ++++++++++++++++++++++
 data/keybindings/Makefile.am                       | 12 ++++++++
 po/POTFILES.in                                     |  1 +
 5 files changed, 54 insertions(+)
---
diff --git a/configure.ac b/configure.ac
index b1b1d87..5894bd1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -303,6 +303,13 @@ AS_IF([test "x$enable_systemd_session" = "xyes"], [
 AM_CONDITIONAL([ENABLE_SYSTEMD_SESSION], [test "x$enable_systemd_session" = "xyes"])
 AC_SUBST([HIDDEN_UNDER_SYSTEMD])
 
+dnl **************************************************************************
+dnl Keybindings
+dnl **************************************************************************
+
+GNOME_KEYBINDINGS_KEYSDIR="${datadir}/gnome-control-center/keybindings"
+AC_SUBST([GNOME_KEYBINDINGS_KEYSDIR])
+
 dnl **************************************************************************
 dnl System indicators
 dnl **************************************************************************
@@ -417,6 +424,7 @@ AC_CONFIG_FILES([
   data/compizconfig/Makefile
   data/directories/Makefile
   data/gnome-panel/Makefile
+  data/keybindings/Makefile
   data/menus/Makefile
   data/schemas/Makefile
   data/sessions/Makefile
diff --git a/data/Makefile.am b/data/Makefile.am
index 5ba85b9..08ee025 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -6,6 +6,7 @@ SUBDIRS = \
        compizconfig \
        directories \
        gnome-panel \
+       keybindings \
        menus \
        schemas \
        sessions \
diff --git a/data/keybindings/50-gnome-flashback-screenshots.xml 
b/data/keybindings/50-gnome-flashback-screenshots.xml
new file mode 100644
index 0000000..f1fb841
--- /dev/null
+++ b/data/keybindings/50-gnome-flashback-screenshots.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<KeyListEntries schema="org.gnome.gnome-flashback.keybindings"
+                group="system"
+                name="Screenshots"
+                wm_name="GNOME Flashback"
+                package="gnome-flashback">
+
+       <!-- translators: $PICTURES will be replaced by the name of the XDG Pictures directory -->
+       <KeyListEntry name="screenshot"
+                     description="Save a screenshot to $PICTURES" />
+
+       <!-- translators: $PICTURES will be replaced by the name of the XDG Pictures directory -->
+       <KeyListEntry name="window-screenshot"
+                     description="Save a screenshot of a window to $PICTURES" />
+
+       <!-- translators: $PICTURES will be replaced by the name of the XDG Pictures directory -->
+       <KeyListEntry name="area-screenshot"
+                     description="Save a screenshot of an area to $PICTURES" />
+
+       <KeyListEntry name="screenshot-clip"
+                     description="Copy a screenshot to clipboard" />
+
+       <KeyListEntry name="window-screenshot-clip"
+                     description="Copy a screenshot of a window to clipboard" />
+
+       <KeyListEntry name="area-screenshot-clip"
+                     description="Copy a screenshot of an area to clipboard" />
+
+       <KeyListEntry name="screencast"
+                     description="Record a short screencast" />
+
+</KeyListEntries>
diff --git a/data/keybindings/Makefile.am b/data/keybindings/Makefile.am
new file mode 100644
index 0000000..3d34764
--- /dev/null
+++ b/data/keybindings/Makefile.am
@@ -0,0 +1,12 @@
+NULL =
+
+keybindingsdir = @GNOME_KEYBINDINGS_KEYSDIR@
+keybindings_DATA = \
+       50-gnome-flashback-screenshots.xml \
+       $(NULL)
+
+EXTRA_DIST = \
+       $(keybindings_DATA) \
+       $(NULL)
+
+-include $(top_srcdir)/git.mk
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 8f69f46..d6e7f8f 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -6,6 +6,7 @@ data/autostart/gnome-flashback-clipboard.desktop.in.in
 data/autostart/gnome-flashback-nm-applet.desktop.in
 data/directories/X-GNOME-Flashback-Settings.directory.desktop.in
 data/directories/X-GNOME-Flashback-Settings-System.directory.desktop.in
+data/keybindings/50-gnome-flashback-screenshots.xml
 data/schemas/org.gnome.gnome-flashback.gschema.xml
 data/schemas/org.gnome.gnome-flashback.desktop.gschema.xml
 data/schemas/org.gnome.gnome-flashback.desktop.background.gschema.xml


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]