From 66368a189dea7ab666cb4089ee30b6ba04ba5132 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sun, 16 Jun 2019 13:21:30 +0200 Subject: Remove trailing whitespaces find . -regextype posix-extended -regex '.*\.(c|h|ac)' -exec sed --in-place 's/[[:space:]]\+$//' {} \+ --- capplets/keyboard/mate-keyboard-properties-xkblt.c | 2 +- capplets/keyboard/mate-keyboard-properties-xkbltadd.c | 2 +- capplets/keyboard/mate-keyboard-properties-xkbot.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'capplets/keyboard') diff --git a/capplets/keyboard/mate-keyboard-properties-xkblt.c b/capplets/keyboard/mate-keyboard-properties-xkblt.c index 115ffac0..b5ee38e7 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkblt.c +++ b/capplets/keyboard/mate-keyboard-properties-xkblt.c @@ -102,7 +102,7 @@ xkb_layouts_get_selected_list (void) if (retval == NULL) { if (initial_config.layouts_variants != NULL) { for (i = 0; initial_config.layouts_variants[i] != NULL; i++) - retval = + retval = g_slist_prepend (retval, g_strdup (initial_config.layouts_variants[i])); } retval = g_slist_reverse (retval); diff --git a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c index 6b54fff2..8499314a 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c +++ b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c @@ -408,7 +408,7 @@ xkl_layout_chooser_add_default_switcher_if_necessary (GSList * (layouts_list_strv, options_list_strv, &was_appended); if (was_appended) { xkb_options_set_selected_list (options_list); - + } clear_xkb_elements_list (options_list); } diff --git a/capplets/keyboard/mate-keyboard-properties-xkbot.c b/capplets/keyboard/mate-keyboard-properties-xkbot.c index e67fcf86..cc161b62 100644 --- a/capplets/keyboard/mate-keyboard-properties-xkbot.c +++ b/capplets/keyboard/mate-keyboard-properties-xkbot.c @@ -63,7 +63,7 @@ xkb_options_get_selected_list (void) if (retval == NULL) { if (initial_config.options != NULL) { for (i = 0; initial_config.options[i] != NULL; i++) - retval = + retval = g_slist_prepend (retval, g_strdup (initial_config.options[i])); } retval = g_slist_reverse (retval); -- cgit v1.2.1