[devhelp] Make the *_free_singleton() functions private
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp] Make the *_free_singleton() functions private
- Date: Thu, 4 May 2017 16:52:55 +0000 (UTC)
commit 6f2492fccb3cef7a2010f9d8c2a98beb9686f17b
Author: Sébastien Wilmet <sebastien wilmet uclouvain be>
Date: Wed May 3 19:22:32 2017 +0200
Make the *_free_singleton() functions private
The public function is dh_free_resources().
docs/reference/devhelp-sections.txt | 2 --
src/dh-book-manager.c | 2 +-
src/dh-book-manager.h | 4 ++--
src/dh-init.c | 4 ++--
src/dh-settings.c | 2 +-
src/dh-settings.h | 3 ++-
6 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/docs/reference/devhelp-sections.txt b/docs/reference/devhelp-sections.txt
index 17ec63e..6e018e8 100644
--- a/docs/reference/devhelp-sections.txt
+++ b/docs/reference/devhelp-sections.txt
@@ -70,8 +70,6 @@ DH_IS_BOOK_MANAGER
DH_IS_BOOK_MANAGER_CLASS
DH_TYPE_BOOK_MANAGER
dh_book_manager_get_type
-<SUBSECTION Private>
-dh_book_manager_free_singleton
</SECTION>
<SECTION>
diff --git a/src/dh-book-manager.c b/src/dh-book-manager.c
index 9c51e33..6188458 100644
--- a/src/dh-book-manager.c
+++ b/src/dh-book-manager.c
@@ -832,7 +832,7 @@ dh_book_manager_get_singleton (void)
}
void
-dh_book_manager_free_singleton (void)
+_dh_book_manager_free_singleton (void)
{
if (singleton != NULL)
g_object_unref (singleton);
diff --git a/src/dh-book-manager.h b/src/dh-book-manager.h
index b0e5666..5841f52 100644
--- a/src/dh-book-manager.h
+++ b/src/dh-book-manager.h
@@ -54,8 +54,8 @@ DhBookManager *dh_book_manager_new (void);
G_DEPRECATED
void dh_book_manager_populate (DhBookManager *book_manager);
-/* Normally private */
-void dh_book_manager_free_singleton (void);
+G_GNUC_INTERNAL
+void _dh_book_manager_free_singleton (void);
G_END_DECLS
diff --git a/src/dh-init.c b/src/dh-init.c
index a6f84f1..20bfaf1 100644
--- a/src/dh-init.c
+++ b/src/dh-init.c
@@ -54,6 +54,6 @@ dh_init (void)
void
dh_free_resources (void)
{
- dh_book_manager_free_singleton ();
- dh_settings_free_singleton ();
+ _dh_book_manager_free_singleton ();
+ _dh_settings_free_singleton ();
}
diff --git a/src/dh-settings.c b/src/dh-settings.c
index 2404169..d664966 100644
--- a/src/dh-settings.c
+++ b/src/dh-settings.c
@@ -155,7 +155,7 @@ dh_settings_get_singleton (void)
}
void
-dh_settings_free_singleton (void)
+_dh_settings_free_singleton (void)
{
if (singleton != NULL)
g_object_unref (singleton);
diff --git a/src/dh-settings.h b/src/dh-settings.h
index 1a12b90..b35f194 100644
--- a/src/dh-settings.h
+++ b/src/dh-settings.h
@@ -53,7 +53,8 @@ GType dh_settings_get_type (void) G_GNUC_CONST;
DhSettings * dh_settings_get_singleton (void);
-void dh_settings_free_singleton (void);
+G_GNUC_INTERNAL
+void _dh_settings_free_singleton (void);
GSettings * dh_settings_peek_window_settings (DhSettings *self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]