[easytag] Improve check_for_subdir()



commit fc437915320eff94b84352f8a82aac807b0996d0
Author: David King <amigadave amigadave com>
Date:   Sun Apr 21 22:20:14 2013 +0100

    Improve check_for_subdir()
    
    Take a const string for the path. Improve the comment describing the
    fuction.

 src/browser.c | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/src/browser.c b/src/browser.c
index 520e3c9..e56d06a 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -156,7 +156,7 @@ static gboolean Browser_Win32_Get_Drive_Root (gchar *drive,
                                               GtkTreePath **rootPath);
 #endif /* G_OS_WIN32 */
 
-static gboolean check_for_subdir   (gchar *path);
+static gboolean check_for_subdir (const gchar *path);
 
 static GtkTreePath *Find_Child_Node(GtkTreeIter *parent, gchar *searchtext);
 
@@ -2691,11 +2691,15 @@ GtkTreePath *Find_Child_Node (GtkTreeIter *parentnode, gchar *childtext)
 }
 
 /*
- * Check if path has any subdirectories
- * Returns true if subdirectories exist.
- * path should be in raw filename format (non-UTF8)
+ * check_for_subdir:
+ * @path: (type filename): the path to test
+ *
+ * Check if @path has any subdirectories.
+ *
+ * Returns: %TRUE if subdirectories exist, %FALSE otherwise
  */
-static gboolean check_for_subdir (gchar *path)
+static gboolean
+check_for_subdir (const gchar *path)
 {
     DIR *dir;
     struct dirent *dirent;


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