[devhelp] BookManager: rename some static functions add_books -> find_books



commit cd3b59b70e7428b192a338841aedececd90e6c6b
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu Dec 28 13:20:06 2017 +0100

    BookManager: rename some static functions add_books -> find_books
    
    With "add books in dir", one could think that books are written/added to
    a directory.

 src/dh-book-manager.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/dh-book-manager.c b/src/dh-book-manager.c
index 5f24b9f..930b643 100644
--- a/src/dh-book-manager.c
+++ b/src/dh-book-manager.c
@@ -703,8 +703,8 @@ monitor_path (DhBookManager *book_manager,
 }
 
 static void
-add_books_in_dir (DhBookManager *book_manager,
-                  const gchar   *dir_path)
+find_books_in_dir (DhBookManager *book_manager,
+                   const gchar   *dir_path)
 {
         GFile *directory;
         GFileEnumerator *enumerator;
@@ -761,19 +761,19 @@ out:
 }
 
 static void
-add_books_in_data_dir (DhBookManager *book_manager,
-                       const gchar   *data_dir)
+find_books_in_data_dir (DhBookManager *book_manager,
+                        const gchar   *data_dir)
 {
         gchar *dir;
 
         g_return_if_fail (data_dir != NULL);
 
         dir = g_build_filename (data_dir, "gtk-doc", "html", NULL);
-        add_books_in_dir (book_manager, dir);
+        find_books_in_dir (book_manager, dir);
         g_free (dir);
 
         dir = g_build_filename (data_dir, "devhelp", "books", NULL);
-        add_books_in_dir (book_manager, dir);
+        find_books_in_dir (book_manager, dir);
         g_free (dir);
 }
 
@@ -783,13 +783,13 @@ populate (DhBookManager *book_manager)
         const gchar * const *system_dirs;
         gint i;
 
-        add_books_in_data_dir (book_manager, g_get_user_data_dir ());
+        find_books_in_data_dir (book_manager, g_get_user_data_dir ());
 
         system_dirs = g_get_system_data_dirs ();
         g_return_if_fail (system_dirs != NULL);
 
         for (i = 0; system_dirs[i] != NULL; i++) {
-                add_books_in_data_dir (book_manager, system_dirs[i]);
+                find_books_in_data_dir (book_manager, system_dirs[i]);
         }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]