diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2019-01-14 23:38:26 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2019-01-29 16:53:29 +0100 |
commit | 923751aa3954707ccb7a9eec36d06bf39a60543a (patch) | |
tree | e1a577a914ec9b73fda5d70fbbce31601beaf3a7 | |
parent | 6de81b0513b825d5503f1a239dc8c6ae70510342 (diff) | |
download | mutter-923751aa3954707ccb7a9eec36d06bf39a60543a.tar.gz |
clutter: Add ClutterKeymap getter
It is fetched from the ClutterBackend so far.
-rw-r--r-- | clutter/clutter/clutter-backend.c | 14 | ||||
-rw-r--r-- | clutter/clutter/clutter-backend.h | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/clutter/clutter/clutter-backend.c b/clutter/clutter/clutter-backend.c index 7f3d182c2..c0844d8e6 100644 --- a/clutter/clutter/clutter-backend.c +++ b/clutter/clutter/clutter-backend.c @@ -1412,3 +1412,17 @@ clutter_backend_set_input_method (ClutterBackend *backend, { g_set_object (&backend->input_method, method); } + +/** + * clutter_backend_get_keymap: + * @backend: the #ClutterBackend + * + * Gets the keymap used by Clutter + * + * Returns: (transfer none): the keymap + **/ +ClutterKeymap * +clutter_backend_get_keymap (ClutterBackend *backend) +{ + return CLUTTER_BACKEND_GET_CLASS (backend)->get_keymap (backend); +} diff --git a/clutter/clutter/clutter-backend.h b/clutter/clutter/clutter-backend.h index 6517381be..93bd72b51 100644 --- a/clutter/clutter/clutter-backend.h +++ b/clutter/clutter/clutter-backend.h @@ -34,6 +34,7 @@ #include <cogl/cogl.h> #include <clutter/clutter-config.h> +#include <clutter/clutter-keymap.h> #include <clutter/clutter-types.h> G_BEGIN_DECLS @@ -83,6 +84,9 @@ ClutterInputMethod * clutter_backend_get_input_method (Clutter CLUTTER_EXPORT void clutter_backend_set_input_method (ClutterBackend *backend, ClutterInputMethod *method); +CLUTTER_EXPORT +ClutterKeymap * clutter_backend_get_keymap (ClutterBackend *backend); + G_END_DECLS #endif /* __CLUTTER_BACKEND_H__ */ |