build: Install keybinding files for control-center
As some keybindings are now provided by gnome-shell rather than mutter, it makes sense to expose those in System Settings. https://bugzilla.gnome.org/show_bug.cgi?id=671010
This commit is contained in:
parent
114f6f577f
commit
bafe34696d
1
.gitignore
vendored
1
.gitignore
vendored
@ -16,6 +16,7 @@ config.log
|
|||||||
config.status
|
config.status
|
||||||
config
|
config
|
||||||
configure
|
configure
|
||||||
|
data/50-gnome-shell-*.xml
|
||||||
data/gnome-shell.desktop
|
data/gnome-shell.desktop
|
||||||
data/gnome-shell.desktop.in
|
data/gnome-shell.desktop.in
|
||||||
data/gnome-shell-extension-prefs.desktop
|
data/gnome-shell-extension-prefs.desktop
|
||||||
|
@ -106,6 +106,9 @@ PKG_CHECK_MODULES(SHELL_HOTPLUG_SNIFFER, gio-2.0 gdk-pixbuf-2.0)
|
|||||||
|
|
||||||
PKG_CHECK_MODULES(BROWSER_PLUGIN, gio-2.0 >= $GIO_MIN_VERSION json-glib-1.0 >= 0.13.2)
|
PKG_CHECK_MODULES(BROWSER_PLUGIN, gio-2.0 >= $GIO_MIN_VERSION json-glib-1.0 >= 0.13.2)
|
||||||
|
|
||||||
|
GNOME_KEYBINDINGS_KEYSDIR=`$PKG_CONFIG --variable keysdir gnome-keybindings`
|
||||||
|
AC_SUBST([GNOME_KEYBINDINGS_KEYSDIR])
|
||||||
|
|
||||||
GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_MIN_VERSION])
|
GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_MIN_VERSION])
|
||||||
|
|
||||||
saved_CFLAGS=$CFLAGS
|
saved_CFLAGS=$CFLAGS
|
||||||
|
12
data/50-gnome-shell-screenshot.xml.in
Normal file
12
data/50-gnome-shell-screenshot.xml.in
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<KeyListEntries schema="org.gnome.shell.keybindings"
|
||||||
|
group="system"
|
||||||
|
_name="Screenshots"
|
||||||
|
wm_name="GNOME Shell"
|
||||||
|
package="gnome-shell">
|
||||||
|
|
||||||
|
<KeyListEntry name="toggle-recording"
|
||||||
|
_description="Record a screencast"/>
|
||||||
|
|
||||||
|
</KeyListEntries>
|
||||||
|
|
12
data/50-gnome-shell-system.xml.in
Normal file
12
data/50-gnome-shell-system.xml.in
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<KeyListEntries schema="org.gnome.shell.keybindings"
|
||||||
|
group="system"
|
||||||
|
_name="System"
|
||||||
|
wm_name="GNOME Shell"
|
||||||
|
package="gnome-shell">
|
||||||
|
|
||||||
|
<KeyListEntry name="toggle-message-tray"
|
||||||
|
_description="Show the message tray"/>
|
||||||
|
|
||||||
|
</KeyListEntries>
|
||||||
|
|
@ -47,6 +47,13 @@ dist_theme_DATA = \
|
|||||||
theme/ws-switch-arrow-up.png \
|
theme/ws-switch-arrow-up.png \
|
||||||
theme/ws-switch-arrow-down.png
|
theme/ws-switch-arrow-down.png
|
||||||
|
|
||||||
|
keysdir = @GNOME_KEYBINDINGS_KEYSDIR@
|
||||||
|
keys_in_files = \
|
||||||
|
50-gnome-shell-screenshot.xml.in \
|
||||||
|
50-gnome-shell-system.xml.in \
|
||||||
|
$(NULL)
|
||||||
|
keys_DATA = $(keys_in_files:.xml.in=.xml)
|
||||||
|
|
||||||
gsettings_SCHEMAS = org.gnome.shell.gschema.xml
|
gsettings_SCHEMAS = org.gnome.shell.gschema.xml
|
||||||
|
|
||||||
@INTLTOOL_XML_NOMERGE_RULE@
|
@INTLTOOL_XML_NOMERGE_RULE@
|
||||||
@ -73,12 +80,14 @@ EXTRA_DIST = \
|
|||||||
$(introspection_DATA) \
|
$(introspection_DATA) \
|
||||||
$(menu_DATA) \
|
$(menu_DATA) \
|
||||||
$(convert_DATA) \
|
$(convert_DATA) \
|
||||||
|
$(keys_in_files) \
|
||||||
org.gnome.shell.gschema.xml.in.in
|
org.gnome.shell.gschema.xml.in.in
|
||||||
|
|
||||||
CLEANFILES = \
|
CLEANFILES = \
|
||||||
gnome-shell.desktop.in \
|
gnome-shell.desktop.in \
|
||||||
gnome-shell-extension-prefs.in \
|
gnome-shell-extension-prefs.in \
|
||||||
$(desktop_DATA) \
|
$(desktop_DATA) \
|
||||||
|
$(keys_DATA) \
|
||||||
$(gsettings_SCHEMAS) \
|
$(gsettings_SCHEMAS) \
|
||||||
gschemas.compiled \
|
gschemas.compiled \
|
||||||
org.gnome.shell.gschema.valid \
|
org.gnome.shell.gschema.valid \
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
data/50-gnome-shell-screenshot.xml.in
|
||||||
|
data/50-gnome-shell-system.xml.in
|
||||||
data/gnome-shell.desktop.in.in
|
data/gnome-shell.desktop.in.in
|
||||||
data/gnome-shell-extension-prefs.desktop.in.in
|
data/gnome-shell-extension-prefs.desktop.in.in
|
||||||
data/org.gnome.shell.gschema.xml.in.in
|
data/org.gnome.shell.gschema.xml.in.in
|
||||||
|
@ -37,6 +37,9 @@ extern GType gnome_shell_plugin_get_type (void);
|
|||||||
|
|
||||||
#define OVERRIDES_SCHEMA "org.gnome.shell.overrides"
|
#define OVERRIDES_SCHEMA "org.gnome.shell.overrides"
|
||||||
|
|
||||||
|
#define WM_NAME "GNOME Shell"
|
||||||
|
#define GNOME_WM_KEYBINDINGS "Metacity,Mutter,GNOME Shell"
|
||||||
|
|
||||||
static gboolean is_gdm_mode = FALSE;
|
static gboolean is_gdm_mode = FALSE;
|
||||||
static char *session_mode = NULL;
|
static char *session_mode = NULL;
|
||||||
|
|
||||||
@ -374,6 +377,9 @@ main (int argc, char **argv)
|
|||||||
|
|
||||||
meta_plugin_manager_set_plugin_type (gnome_shell_plugin_get_type ());
|
meta_plugin_manager_set_plugin_type (gnome_shell_plugin_get_type ());
|
||||||
|
|
||||||
|
meta_set_wm_name (WM_NAME);
|
||||||
|
meta_set_gnome_wm_keybindings (GNOME_WM_KEYBINDINGS);
|
||||||
|
|
||||||
/* Prevent meta_init() from causing gtk to load gail and at-bridge */
|
/* Prevent meta_init() from causing gtk to load gail and at-bridge */
|
||||||
g_setenv ("NO_AT_BRIDGE", "1", TRUE);
|
g_setenv ("NO_AT_BRIDGE", "1", TRUE);
|
||||||
meta_init ();
|
meta_init ();
|
||||||
|
Loading…
Reference in New Issue
Block a user