diff options
Diffstat (limited to 'libxklavier/xkl_config_rec.h')
-rw-r--r-- | libxklavier/xkl_config_rec.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libxklavier/xkl_config_rec.h b/libxklavier/xkl_config_rec.h index 1b837f3..cb3bdb2 100644 --- a/libxklavier/xkl_config_rec.h +++ b/libxklavier/xkl_config_rec.h @@ -281,6 +281,19 @@ extern "C" { extern void xkl_config_rec_set_options(XklConfigRec * data, const gchar ** new_options); +/** + * xkl_config_rec_set_model: + * @data: record to change + * @new_model: (transfer none): new keyboard name. + * + * Sets a new model. + * + * Frees the previous model. This is primarily useful for bindings, in C + * you can manipulate the @model record member directly. + */ + extern void xkl_config_rec_set_model(XklConfigRec * data, + const gchar * new_model); + #ifdef __cplusplus } #endif /* __cplusplus */ |