summaryrefslogtreecommitdiff
path: root/capplets/keyboard
diff options
context:
space:
mode:
Diffstat (limited to 'capplets/keyboard')
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkb.c2
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkbltadd.c17
2 files changed, 3 insertions, 16 deletions
diff --git a/capplets/keyboard/mate-keyboard-properties-xkb.c b/capplets/keyboard/mate-keyboard-properties-xkb.c
index 7ccc0273..11833c70 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkb.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkb.c
@@ -253,7 +253,7 @@ enable_disable_restoring (GtkBuilder * dialog)
gtk_widget_set_sensitive (WID ("xkb_reset_to_defaults"), enable);
}
-void
+static void
xkb_save_gslist_as_strv (gchar *schema, gchar *key, GSList *list)
{
GSettings *settings;
diff --git a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
index 8499314a..2d1e5dd6 100644
--- a/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
+++ b/capplets/keyboard/mate-keyboard-properties-xkbltadd.c
@@ -366,20 +366,7 @@ xkb_layout_chooser_available_layouts_fill (GtkBuilder *
chooser_dialog);
}
-GSList*
-xkb_layout_gslist_from_strv (gchar **array)
-{
- GSList *list = NULL;
- gint i;
- if (array != NULL) {
- for (i = 0; array[i]; i++) {
- list = g_slist_append (list, g_strdup (array[i]));
- }
- }
- return list;
-}
-
-gchar **
+static gchar **
xkb_layout_strv_from_gslist (GSList *list)
{
GArray *array;
@@ -393,7 +380,7 @@ xkb_layout_strv_from_gslist (GSList *list)
-void
+static void
xkl_layout_chooser_add_default_switcher_if_necessary (GSList *
layouts_list)
{