diff options
author | infirit <[email protected]> | 2015-09-06 23:44:20 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-09-07 00:57:10 +0200 |
commit | c6f92af6d0babc25b16c448d62b79c6e20db9e16 (patch) | |
tree | 506d475f5a396a00a409d3719b825e65cdfe4ab2 | |
parent | 6632540e604873f0f80d17355c79477323d26b89 (diff) | |
download | libmatekbd-c6f92af6d0babc25b16c448d62b79c6e20db9e16.tar.bz2 libmatekbd-c6f92af6d0babc25b16c448d62b79c6e20db9e16.tar.xz |
Use gchars in several functions
Taken from libgnomelbd,
commit: 40eb8328020ce2834983b240feee67963b5bdcb2
from: Sergey V. Udaltsov <[email protected]>
-rw-r--r-- | libmatekbd/matekbd-desktop-config.c | 8 | ||||
-rw-r--r-- | libmatekbd/matekbd-indicator.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libmatekbd/matekbd-desktop-config.c b/libmatekbd/matekbd-desktop-config.c index 806f1e5..1c6837d 100644 --- a/libmatekbd/matekbd-desktop-config.c +++ b/libmatekbd/matekbd-desktop-config.c @@ -68,13 +68,13 @@ static gboolean pv = variant_ids; total_layouts = g_strv_length ((char **) layout_ids); sld = *short_layout_descriptions = - g_new0 (char *, total_layouts + 1); + g_new0 (gchar *, total_layouts + 1); lld = *long_layout_descriptions = - g_new0 (char *, total_layouts + 1); + g_new0 (gchar *, total_layouts + 1); svd = *short_variant_descriptions = - g_new0 (char *, total_layouts + 1); + g_new0 (gchar *, total_layouts + 1); lvd = *long_variant_descriptions = - g_new0 (char *, total_layouts + 1); + g_new0 (gchar *, total_layouts + 1); while (pl != NULL && *pl != NULL) { diff --git a/libmatekbd/matekbd-indicator.c b/libmatekbd/matekbd-indicator.c index 6fb551d..09ab8bd 100644 --- a/libmatekbd/matekbd-indicator.c +++ b/libmatekbd/matekbd-indicator.c @@ -510,7 +510,7 @@ matekbd_indicator_load_group_names (const gchar ** layout_ids, gint i, total_groups = xkl_engine_get_num_groups (globals.engine); globals.full_group_names = - g_new0 (char *, total_groups + 1); + g_new0 (gchar *, total_groups + 1); if (xkl_engine_get_features (globals.engine) & XKLF_MULTIPLE_LAYOUTS_SUPPORTED) { |