summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2020-09-23 16:03:39 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2020-09-23 16:04:24 +0100
commit6d5a0449bedbab746e29d87b4842cedb680037fc (patch)
tree096785c882c9e710a1c59c7e8c6dd00a1cbe1675 /src
parent297110cbd695b2bd0a740153ffb11961b573b5ed (diff)
downloadgnome-dictionary-6d5a0449bedbab746e29d87b4842cedb680037fc.tar.gz
Mark static functions as such
Avoid a compiler warning for functions without a prototype.
Diffstat (limited to 'src')
-rw-r--r--src/gdict-common.c2
-rw-r--r--src/gdict-sidebar.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gdict-common.c b/src/gdict-common.c
index ad2e77a..aff9566 100644
--- a/src/gdict-common.c
+++ b/src/gdict-common.c
@@ -71,7 +71,7 @@ gdict_get_config_dir (void)
return retval;
}
-gboolean
+static gboolean
gdict_migrate_configs (void)
{
gchar *old_data_dir_name; // this one was used for configs only
diff --git a/src/gdict-sidebar.c b/src/gdict-sidebar.c
index 8a535d6..7fa5eb8 100644
--- a/src/gdict-sidebar.c
+++ b/src/gdict-sidebar.c
@@ -70,7 +70,7 @@ static GQuark sidebar_page_id_quark = 0;
G_DEFINE_TYPE_WITH_PRIVATE (GdictSidebar, gdict_sidebar, GTK_TYPE_BOX)
-SidebarPage *
+static SidebarPage *
sidebar_page_new (const gchar *id,
const gchar *name,
GtkWidget *widget)
@@ -88,7 +88,7 @@ sidebar_page_new (const gchar *id,
return page;
}
-void
+static void
sidebar_page_free (SidebarPage *page)
{
if (G_LIKELY (page))