summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2021-07-19 02:18:16 +0800
committerVictor Kareh <[email protected]>2021-07-19 15:16:44 -0400
commitf9d1c221023e76e5a84bb4f88af4b05494054dd4 (patch)
tree6337ba65fad8650ef7633ec344ae9bf7702a0ac7
parent15f1a9f8d57cca42e2adb8ce8c825b1d1c1328a7 (diff)
downloadmate-control-center-f9d1c221023e76e5a84bb4f88af4b05494054dd4.tar.bz2
mate-control-center-f9d1c221023e76e5a84bb4f88af4b05494054dd4.tar.xz
Fix compilation warning
-rw-r--r--capplets/about-me/mate-about-me-password.c3
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkb.c2
-rw-r--r--capplets/keyboard/mate-keyboard-properties-xkbltadd.c17
-rw-r--r--font-viewer/font-view.c1
4 files changed, 6 insertions, 17 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c
index d9794cf1..31f92b93 100644
--- a/capplets/about-me/mate-about-me-password.c
+++ b/capplets/about-me/mate-about-me-password.c
@@ -42,6 +42,7 @@
#endif
#include "capplet-util.h"
+#include "mate-about-me-password.h"
/* Passwd states */
typedef enum {
@@ -90,7 +91,7 @@ typedef struct {
*/
#define PASSDLG_ERROR (mate_about_me_password_error_quark())
-GQuark mate_about_me_password_error_quark(void)
+static GQuark mate_about_me_password_error_quark(void)
{
static GQuark q = 0;
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)
{
diff --git a/font-viewer/font-view.c b/font-viewer/font-view.c
index 8d40cdcd..588b6ba5 100644
--- a/font-viewer/font-view.c
+++ b/font-viewer/font-view.c
@@ -45,6 +45,7 @@
#define FONT_VIEW_APPLICATION(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), FONT_VIEW_TYPE_APPLICATION, FontViewApplication))
+static GType font_view_application_get_type (void);
typedef struct {
GtkApplication parent;