From c6f92af6d0babc25b16c448d62b79c6e20db9e16 Mon Sep 17 00:00:00 2001 From: infirit Date: Sun, 6 Sep 2015 23:44:20 +0200 Subject: Use gchars in several functions Taken from libgnomelbd, commit: 40eb8328020ce2834983b240feee67963b5bdcb2 from: Sergey V. Udaltsov --- libmatekbd/matekbd-desktop-config.c | 8 ++++---- 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) { -- cgit v1.2.1