[easytag/wip/easytag-next: 11/11] Add static to many declarations WIP



commit bf2e4fbec806ff678abf4840e94668037207c804
Author: David King <amigadave amigadave com>
Date:   Wed Dec 5 22:09:27 2012 +0000

    Add static to many declarations WIP
    
    Use the Samba findstatic.pl script to find functions which should be
    static, and mark them as such. Remove unused code, as the compiler gives
    warnings about unused static functions.

 src/bar.c     |   36 +++++---
 src/bar.h     |    2 -
 src/browser.c |  261 +++++++++++++++++++++++++++------------------------------
 src/browser.h |    8 --
 src/charset.c |    9 ++-
 src/charset.h |    3 -
 src/dlm.c     |   10 ++-
 src/easytag.c |  165 ++++++++++++++++++++++--------------
 src/easytag.h |    3 -
 src/log.c     |   26 ++++--
 src/misc.c    |  160 ++++++++++++++++++++++-------------
 src/misc.h    |    2 -
 src/ogg_tag.c |    5 +-
 src/picture.c |   34 +++++---
 src/prefs.c   |   83 +++++++++++--------
 src/scan.c    |  116 ++++++++++++++++----------
 src/scan.h    |    2 -
 src/vcedit.c  |    9 ++-
 src/vcedit.h  |    2 -
 19 files changed, 530 insertions(+), 406 deletions(-)
---
diff --git a/src/bar.c b/src/bar.c
index 30d8b29..294dc05 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -46,12 +46,11 @@ GList *ActionPairsList = NULL;
 /**************
  * Prototypes *
  **************/
-void Init_Menu_Bar (void);
-void Menu_Sort_Action (GtkAction *action, gpointer data);
 
-void     Statusbar_Start_Timer  (void);
-gboolean Statusbar_Stop_Timer   (void);
-void     Statusbar_Remove_Timer (void);
+static void Check_Menu_Item_Toggled_Browse_Hidden_Dir (GtkWidget *checkmenuitem);
+static void Check_Menu_Item_Toggled_Browse_Subdir (GtkWidget *checkmenuitem);
+static void Init_Menu_Bar (void);
+static void Statusbar_Remove_Timer (void);
 
 
 /*************
@@ -67,7 +66,8 @@ void     Statusbar_Remove_Timer (void);
 /*
  * Menu bar
  */
-void Menu_Sort_Action (GtkAction *item, gpointer data)
+static void
+Menu_Sort_Action (GtkAction *item, gpointer data)
 {
     GtkWidget *TBViewMode;
     const gchar *action = gtk_action_get_name(item);
@@ -337,7 +337,8 @@ void Create_UI (GtkWidget **ppmenubar, GtkWidget **pptoolbar)
 /*
  * Initialize some items of the main menu
  */
-void Init_Menu_Bar (void)
+static void
+Init_Menu_Bar (void)
 {
     
     CheckMenuItemBrowseSubdirMainMenu = gtk_ui_manager_get_widget(UIManager, "/MenuBar/BrowserMenu/BrowseSubdir");
@@ -364,7 +365,8 @@ void Init_Menu_Bar (void)
 /*
  * Callback to update state of check button to browse subdir into menu
  */
-void Check_Menu_Item_Toggled_Browse_Subdir (GtkWidget *checkmenuitem)
+static void
+Check_Menu_Item_Toggled_Browse_Subdir (GtkWidget *checkmenuitem)
 {
     BROWSE_SUBDIR = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(checkmenuitem));
     Check_Menu_Item_Update_Browse_Subdir();
@@ -377,7 +379,8 @@ void Check_Menu_Item_Update_Browse_Subdir (void)
 /*
  * Callback to update state of check button to show hiddendirectories into menu
  */
-void Check_Menu_Item_Toggled_Browse_Hidden_Dir (GtkWidget *checkmenuitem)
+static void
+Check_Menu_Item_Toggled_Browse_Hidden_Dir (GtkWidget *checkmenuitem)
 {
     BROWSE_HIDDEN_DIR = gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(checkmenuitem));
     Check_Menu_Item_Update_Browse_Hidden_Dir();
@@ -385,7 +388,9 @@ void Check_Menu_Item_Toggled_Browse_Hidden_Dir (GtkWidget *checkmenuitem)
     // Reload directory, in case we have changed BROWSE_HIDDEN_DIR
     //Browser_Tree_Rebuild(NULL); // Commented, as already done in GtkToggleActionEntry for AM_BROWSER_HIDDEN_DIR
 }
-void Check_Menu_Item_Update_Browse_Hidden_Dir (void)
+
+void
+Check_Menu_Item_Update_Browse_Hidden_Dir (void)
 {
 #ifndef WIN32
     gtk_check_menu_item_set_active(GTK_CHECK_MENU_ITEM(CheckMenuItemBrowseHiddenDirMainMenu),BROWSE_HIDDEN_DIR);
@@ -417,19 +422,22 @@ GtkWidget *Create_Status_Bar (void)
     return StatusBar;
 }
 
-gboolean Statusbar_Stop_Timer (void)
+static gboolean
+Statusbar_Stop_Timer (void)
 {
     gtk_statusbar_pop(GTK_STATUSBAR(StatusBar),StatusBarContext);
     return FALSE;    /* Stop the timer */
 }
 
-void Statusbar_Start_Timer (void)
+static void
+Statusbar_Start_Timer (void)
 {
-    Statusbar_Remove_Timer();
+    Statusbar_Remove_Timer ();
     StatusbarTimerId = g_timeout_add(4000,(GSourceFunc)Statusbar_Stop_Timer,NULL);
 }
 
-void Statusbar_Remove_Timer (void)
+static void
+Statusbar_Remove_Timer (void)
 {
     if (StatusbarTimerId)
     {
diff --git a/src/bar.h b/src/bar.h
index bcbcf7b..635a5bc 100644
--- a/src/bar.h
+++ b/src/bar.h
@@ -163,9 +163,7 @@ GtkWidget *Create_Status_Bar   (void);
 void       Statusbar_Message   (gchar *message, gint with_timer);
 GtkWidget *Create_Progress_Bar (void);
 
-void Check_Menu_Item_Toggled_Browse_Subdir (GtkWidget *checkmenuitem);
 void Check_Menu_Item_Update_Browse_Subdir  (void);
-void Check_Menu_Item_Toggled_Browse_Hidden_Dir (GtkWidget *checkmenuitem);
 void Check_Menu_Item_Update_Browse_Hidden_Dir  (void);
 
 #endif /* __BAR_H__ */
diff --git a/src/browser.c b/src/browser.c
index ff6681b..8e2f2dc 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -131,80 +131,102 @@ gchar *Rename_Directory_Masks [] =
  * Prototypes *
  **************/
 
-gboolean    Browser_Tree_Key_Press        (GtkWidget *tree, GdkEvent *event, gpointer data);
-void        Browser_Tree_Set_Node_Visible (GtkWidget *directoryView, GtkTreePath * path);
-void        Browser_List_Set_Row_Visible  (GtkTreeModel *treeModel, GtkTreeIter *rowIter);
+static gboolean Browser_Tree_Key_Press (GtkWidget *tree, GdkEvent *event,
+                                        gpointer data);
+static void Browser_Tree_Set_Node_Visible (GtkWidget *directoryView,
+                                           GtkTreePath *path);
+static void Browser_List_Set_Row_Visible (GtkTreeModel *treeModel,
+                                          GtkTreeIter *rowIter);
 void        Browser_Tree_Disable          (void);
 void        Browser_Tree_Enable           (void);
-void        Browser_Tree_Initialize       (void);
-gboolean    Browser_Tree_Node_Selected    (GtkTreeSelection *selection, gpointer user_data);
-void        Browser_Tree_Rename_Directory (gchar *last_path, gchar *new_path);
-void        Browser_Tree_Handle_Rename    (GtkTreeIter *parentnode, gchar *old_path, gchar *new_path);
+static void Browser_Tree_Initialize (void);
+static gboolean Browser_Tree_Node_Selected (GtkTreeSelection *selection,
+                                            gpointer user_data);
+static void Browser_Tree_Rename_Directory (const gchar *last_path,
+                                           const gchar *new_path);
+static void Browser_Tree_Handle_Rename (GtkTreeIter *parentnode,
+                                        const gchar *old_path,
+                                        const gchar *new_path);
 
 static gint Browser_List_Key_Press        (GtkWidget *list, GdkEvent *event, gpointer data);
-gboolean    Browser_List_Button_Press     (GtkTreeView *treeView, GdkEventButton *event);
+static gboolean Browser_List_Button_Press (GtkTreeView *treeView,
+                                           GdkEventButton *event);
 void        Browser_List_Disable          (void);
 void        Browser_List_Enable           (void);
-void        Browser_List_Row_Selected     (GtkTreeSelection * selection, gpointer data);
-gint        Browser_List_Sort_Func        (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer data);
+static void Browser_List_Row_Selected (GtkTreeSelection * selection,
+                                       gpointer data);
+static void Browser_List_Set_Row_Appearance (GtkTreeIter *iter);
+static gint Browser_List_Sort_Func (GtkTreeModel *model, GtkTreeIter *a,
+                                    GtkTreeIter *b, gpointer data);
+static void Browser_List_Select_File_By_Iter (GtkTreeIter *iter,
+                                              gboolean select_it);
 void        Browser_List_Select_All_Files       (void);
 void        Browser_List_Unselect_All_Files     (void);
 void        Browser_List_Invert_File_Selection  (void);
 
-void        Browser_Entry_Activated (void);
+static void Browser_Entry_Activated (void);
 void        Browser_Entry_Disable   (void);
 void        Browser_Entry_Enable    (void);
 
-void        Browser_Parent_Button_Clicked  (void);
+static void Browser_Parent_Button_Clicked (void);
 
-void        Browser_Artist_List_Load_Files        (ET_File *etfile_to_select);
-void        Browser_Artist_List_Row_Selected      (GtkTreeSelection *selection, gpointer data);
-void        Browser_Artist_List_Set_Row_Appearance(GtkTreeIter *row);
+static void Browser_Artist_List_Load_Files (ET_File *etfile_to_select);
+static void Browser_Artist_List_Row_Selected (GtkTreeSelection *selection,
+                                              gpointer data);
+static void Browser_Artist_List_Set_Row_Appearance (GtkTreeIter *row);
 
-void        Browser_Album_List_Load_Files        (GList *albumlist, ET_File *etfile_to_select);
-void        Browser_Album_List_Row_Selected      (GtkTreeSelection *selection, gpointer data);
-void        Browser_Album_List_Set_Row_Appearance(GtkTreeIter *row);
+static void Browser_Album_List_Load_Files (GList *albumlist,
+                                           ET_File *etfile_to_select);
+static void Browser_Album_List_Row_Selected (GtkTreeSelection *selection,
+                                             gpointer data);
+static void Browser_Album_List_Set_Row_Appearance (GtkTreeIter *row);
 
 gchar      *Browser_Get_Current_Path       (void);
-void        Browser_Update_Current_Path    (const gchar *path);
+static void Browser_Update_Current_Path (const gchar *path);
 void        Browser_Load_Home_Directory    (void);
 void        Browser_Load_Default_Directory (void);
 void        Browser_Reload_Directory       (void);
 
-gint        Browser_Win32_Get_Drive_Root   (gchar *drive, GtkTreeIter *rootNode, GtkTreePath **rootPath);
+static gboolean Browser_Win32_Get_Drive_Root (gchar *drive,
+                                              GtkTreeIter *rootNode,
+                                              GtkTreePath **rootPath);
 
 static gboolean check_for_subdir   (gchar *path);
 
-GtkTreePath *Find_Child_Node(GtkTreeIter *parent, gchar *searchtext);
+static GtkTreePath *Find_Child_Node(GtkTreeIter *parent, gchar *searchtext);
 
-GdkPixbuf  *Pixmap_From_Directory_Permission (gchar *path);
+static GdkPixbuf *Pixmap_From_Directory_Permission (const gchar *path);
 
 static void expand_cb   (GtkWidget *tree, GtkTreeIter *iter, GtkTreePath *path, gpointer data);
 static void collapse_cb (GtkWidget *tree, GtkTreeIter *iter, GtkTreePath *treePath, gpointer data);
 
 /* Pop up menus */
-gboolean    Browser_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event);
+static gboolean Browser_Popup_Menu_Handler (GtkMenu *menu,
+                                            GdkEventButton *event);
 
 /* For window to rename a directory */
 void        Browser_Open_Rename_Directory_Window (void);
-void        Destroy_Rename_Directory_Window      (void);
-void        Rename_Directory                     (void);
-gboolean    Rename_Directory_Window_Key_Press    (GtkWidget *window, GdkEvent *event);
-void        Rename_Directory_With_Mask_Toggled   (void);
+static void Destroy_Rename_Directory_Window (void);
+static void Rename_Directory (void);
+static gboolean Rename_Directory_Window_Key_Press (GtkWidget *window,
+                                                   GdkEvent *event);
+static void Rename_Directory_With_Mask_Toggled (void);
 
 /* For window to run a program with the directory */
 void        Browser_Open_Run_Program_Tree_Window (void);
-void        Destroy_Run_Program_Tree_Window (void);
-gboolean    Run_Program_Tree_Window_Key_Press (GtkWidget *window, GdkEvent *event);
-void        Run_Program_With_Directory (GtkWidget *combobox);
+static void Destroy_Run_Program_Tree_Window (void);
+static gboolean Run_Program_Tree_Window_Key_Press (GtkWidget *window,
+                                                   GdkEvent *event);
+static void Run_Program_With_Directory (GtkWidget *combobox);
 
 /* For window to run a program with the file */
 void        Browser_Open_Run_Program_List_Window (void);
-void        Destroy_Run_Program_List_Window (void);
-gboolean    Run_Program_List_Window_Key_Press (GtkWidget *window, GdkEvent *event);
-void        Run_Program_With_Selected_Files (GtkWidget *combobox);
+static void Destroy_Run_Program_List_Window (void);
+static gboolean Run_Program_List_Window_Key_Press (GtkWidget *window,
+                                                   GdkEvent *event);
+static void Run_Program_With_Selected_Files (GtkWidget *combobox);
 
-gboolean    Run_Program (gchar *program_name, GList *args_list);
+static gboolean Run_Program (const gchar *program_name, GList *args_list);
 
 
 
@@ -281,7 +303,8 @@ void Browser_Load_Default_Directory (void)
  * Warning: return NULL if no row selected int the tree.
  * Remember to free the value returned from this function!
  */
-gchar *Browser_Tree_Get_Path_Of_Selected_Node (void)
+static gchar *
+Browser_Tree_Get_Path_Of_Selected_Node (void)
 {
     GtkTreeSelection *selection;
     GtkTreeIter selectedIter;
@@ -306,7 +329,8 @@ gchar *Browser_Tree_Get_Path_Of_Selected_Node (void)
 /*
  * Set the 'path' within the variable BrowserCurrentPath.
  */
-void Browser_Update_Current_Path (const gchar *path)
+static void
+Browser_Update_Current_Path (const gchar *path)
 {
     /* Be sure that we aren't passing 'BrowserCurrentPath' as parameter of the function :
      * to avoid some memory problems */
@@ -367,7 +391,8 @@ void Set_Current_Path_As_Default (void)
 /*
  * When you press the key 'enter' in the BrowserEntry to validate the text (browse the directory)
  */
-void Browser_Entry_Activated (void)
+static void
+Browser_Entry_Activated (void)
 {
     const gchar *path_utf8;
     gchar *path;
@@ -395,7 +420,8 @@ void Browser_Entry_Set_Text (gchar *text)
 /*
  * Button to go to parent directory
  */
-void Browser_Parent_Button_Clicked (void)
+static void
+Browser_Parent_Button_Clicked (void)
 {
     gchar *parent_dir, *path;
 
@@ -423,7 +449,8 @@ void Browser_Label_Set_Text (gchar *text)
 /*
  * Key Press events into browser tree
  */
-gboolean Browser_Tree_Key_Press (GtkWidget *tree, GdkEvent *event, gpointer data)
+static gboolean
+Browser_Tree_Key_Press (GtkWidget *tree, GdkEvent *event, gpointer data)
 {
     GdkEventKey *kevent;
     GtkTreeIter SelectedNode;
@@ -610,7 +637,8 @@ gboolean Browser_List_Key_Press (GtkWidget *list, GdkEvent *event, gpointer data
 /*
  * Action for double/triple click
  */
-gboolean Browser_List_Button_Press (GtkTreeView *treeView, GdkEventButton *event)
+static gboolean
+Browser_List_Button_Press (GtkTreeView *treeView, GdkEventButton *event)
 {
     if (!event)
         return FALSE;
@@ -681,7 +709,8 @@ void Browser_Tree_Collapse (void)
 /*
  * Set a row (or node) visible in the TreeView (by scrolling the tree)
  */
-void Browser_Tree_Set_Node_Visible (GtkWidget *directoryView, GtkTreePath *path)
+static void
+Browser_Tree_Set_Node_Visible (GtkWidget *directoryView, GtkTreePath *path)
 {
     if (!directoryView || !path) return;
 
@@ -712,7 +741,8 @@ void Browser_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *rowIter
  * Triggers when a new node in the browser tree is selected
  * Do file-save confirmation, and then prompt the new dir to be loaded
  */
-gboolean Browser_Tree_Node_Selected (GtkTreeSelection *selection, gpointer user_data)
+static gboolean
+Browser_Tree_Node_Selected (GtkTreeSelection *selection, gpointer user_data)
 {
     gchar *pathName, *pathName_utf8;
     static int counter = 0;
@@ -826,7 +856,8 @@ gboolean Browser_Tree_Node_Selected (GtkTreeSelection *selection, gpointer user_
 }
 
 
-gint Browser_Win32_Get_Drive_Root (gchar *drive, GtkTreeIter *rootNode, GtkTreePath **rootPath)
+static gboolean
+Browser_Win32_Get_Drive_Root (gchar *drive, GtkTreeIter *rootNode, GtkTreePath **rootPath)
 {
     gint root_index;
     gboolean found = FALSE;
@@ -969,7 +1000,8 @@ gboolean Browser_Tree_Select_Dir (const gchar *current_path)
  * Callback to select-row event
  * Displays the file info of the lowest selected file in the right-hand pane
  */
-void Browser_List_Row_Selected (GtkTreeSelection *selection, gpointer data)
+static void
+Browser_List_Row_Selected (GtkTreeSelection *selection, gpointer data)
 {
     GList *selectedRows;
     GtkTreePath *lastSelected;
@@ -1382,7 +1414,8 @@ void Browser_List_Refresh_File_In_List (ET_File *ETFile)
  *  - change background according LIST_FILE_OTHERDIR
  *  - change foreground according file status (saved or not)
  */
-void Browser_List_Set_Row_Appearance (GtkTreeIter *iter)
+static void
+Browser_List_Set_Row_Appearance (GtkTreeIter *iter)
 {
     ET_File *rowETFile = NULL;
     gboolean otherdir = FALSE;
@@ -1598,7 +1631,8 @@ GtkTreePath *Browser_List_Select_File_By_Etfile2 (ET_File *searchETFile, gboolea
 /*
  * Select the specified file in the list, by an iter
  */
-void Browser_List_Select_File_By_Iter (GtkTreeIter *rowIter, gboolean select_it)
+static void
+Browser_List_Select_File_By_Iter (GtkTreeIter *rowIter, gboolean select_it)
 {
     if (!BrowserList) return;
 
@@ -1698,75 +1732,6 @@ ET_File *Browser_List_Select_File_By_DLM (const gchar* string, gboolean select_i
 
 
 /*
- * Unselect the specified file in the list, by its ETFile
- */
-void Browser_List_Unselect_File_By_Etfile(ET_File *searchETFile)
-{
-    gint row;
-    GtkTreePath *currentPath = NULL;
-    GtkTreeIter currentIter;
-    ET_File *currentETFile;
-    gboolean valid;
-
-    if (searchETFile == NULL)
-        return;
-
-    // Go through the file list until it is found
-    for (row=0; row < gtk_tree_model_iter_n_children(GTK_TREE_MODEL(fileListModel), NULL); row++)
-    {
-        if (row == 0)
-            currentPath = gtk_tree_path_new_first();
-        else
-            gtk_tree_path_next(currentPath);
-
-        valid = gtk_tree_model_get_iter(GTK_TREE_MODEL(fileListModel), &currentIter, currentPath);
-        if (valid)
-        {
-            gtk_tree_model_get(GTK_TREE_MODEL(fileListModel), &currentIter,
-                               LIST_FILE_POINTER, &currentETFile, -1);
-
-            if (currentETFile == searchETFile)
-            {
-                Browser_List_Unselect_File_By_Iter(&currentIter);
-                break;
-            }
-        }
-    }
-}
-
-
-/*
- * Unselect the specified file, by its iter.
- */
-void Browser_List_Unselect_File_By_Iter (GtkTreeIter *rowIter)
-{
-    GtkTreeSelection *selection;
-
-    if (!BrowserList) return;
-
-    selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(BrowserList));
-    if (selection)
-    {
-        g_signal_handlers_block_by_func(G_OBJECT(selection),G_CALLBACK(Browser_List_Row_Selected),NULL);
-        gtk_tree_selection_unselect_iter(selection, rowIter);
-        g_signal_handlers_unblock_by_func(G_OBJECT(selection),G_CALLBACK(Browser_List_Row_Selected),NULL);
-    }
-}
-
-
-/*
- * Unselect the specified file in the list, by a string representation of an iter
- * e.g. output of gtk_tree_model_get_string_from_iter()
- */
-void Browser_List_Unselect_File_By_Iter_String(const gchar* stringIter)
-{
-    GtkTreeIter iter;
-
-    if (gtk_tree_model_get_iter_from_string(GTK_TREE_MODEL(fileListModel), &iter, stringIter))
-        Browser_List_Unselect_File_By_Iter(&iter);
-}
-
-/*
  * Clear all entries on the file list
  */
 void Browser_List_Clear()
@@ -1789,7 +1754,9 @@ void Browser_List_Refresh_Sort (void)
  * Intelligently sort the file list based on the current sorting method
  * see also 'ET_Sort_File_List'
  */
-gint Browser_List_Sort_Func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b, gpointer data)
+static gint
+Browser_List_Sort_Func (GtkTreeModel *model, GtkTreeIter *a, GtkTreeIter *b,
+                        gpointer data)
 {
     ET_File *ETFile1;
     ET_File *ETFile2;
@@ -2090,7 +2057,8 @@ void Browser_Artist_List_Load_Files (ET_File *etfile_to_select)
 /*
  * Callback to select-row event
  */
-void Browser_Artist_List_Row_Selected(GtkTreeSelection* selection, gpointer data)
+static void
+Browser_Artist_List_Row_Selected (GtkTreeSelection* selection, gpointer data)
 {
     GList *AlbumList;
     GtkTreeIter iter;
@@ -2110,7 +2078,8 @@ void Browser_Artist_List_Row_Selected(GtkTreeSelection* selection, gpointer data
 /*
  * Set the color of the row of BrowserArtistList
  */
-void Browser_Artist_List_Set_Row_Appearance (GtkTreeIter *iter)
+static void
+Browser_Artist_List_Set_Row_Appearance (GtkTreeIter *iter)
 {
     GList *AlbumList;
     GList *etfilelist;
@@ -2162,7 +2131,8 @@ void Browser_Artist_List_Set_Row_Appearance (GtkTreeIter *iter)
 /*
  * Load the list of Albums for each Artist
  */
-void Browser_Album_List_Load_Files (GList *albumlist, ET_File *etfile_to_select)
+static void
+Browser_Album_List_Load_Files (GList *albumlist, ET_File *etfile_to_select)
 {
     GList *AlbumList;
     GList *etfilelist = NULL;
@@ -2262,7 +2232,8 @@ void Browser_Album_List_Load_Files (GList *albumlist, ET_File *etfile_to_select)
 /*
  * Callback to select-row event
  */
-void Browser_Album_List_Row_Selected (GtkTreeSelection *selection, gpointer data)
+static void
+Browser_Album_List_Row_Selected (GtkTreeSelection *selection, gpointer data)
 {
     GList *etfilelist;
     GtkTreeIter iter;
@@ -2291,7 +2262,8 @@ void Browser_Album_List_Row_Selected (GtkTreeSelection *selection, gpointer data
 /*
  * Set the color of the row of BrowserAlbumList
  */
-void Browser_Album_List_Set_Row_Appearance (GtkTreeIter *iter)
+static void
+Browser_Album_List_Set_Row_Appearance (GtkTreeIter *iter)
 {
     GList *etfilelist;
     gboolean not_all_saved = FALSE;
@@ -2398,7 +2370,8 @@ void Browser_Area_Set_Sensitive (gboolean activate)
 /*
  * Browser_Popup_Menu_Handler : displays the corresponding menu
  */
-gboolean Browser_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event)
+static gboolean
+Browser_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event)
 {
     if (event && (event->type==GDK_BUTTON_PRESS) && (event->button == 3))
     {
@@ -2411,7 +2384,8 @@ gboolean Browser_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event)
 /*
  * Destroy the whole tree up to the root node
  */
-void Browser_Tree_Initialize (void)
+static void
+Browser_Tree_Initialize (void)
 {
     GtkTreeIter parent_iter;
     GtkTreeIter dummy_iter;
@@ -2569,7 +2543,8 @@ void Browser_Tree_Rebuild (gchar *path_to_load)
  * new_path:
  * Parameters are non-utf8!
  */
-void Browser_Tree_Rename_Directory (gchar *last_path, gchar *new_path)
+static void
+Browser_Tree_Rename_Directory (const gchar *last_path, const gchar *new_path)
 {
 
     gchar **textsplit;
@@ -2640,7 +2615,9 @@ void Browser_Tree_Rename_Directory (gchar *last_path, gchar *new_path)
 /*
  * Recursive function to update paths of all child nodes
  */
-void Browser_Tree_Handle_Rename (GtkTreeIter *parentnode, gchar *old_path, gchar *new_path)
+static void
+Browser_Tree_Handle_Rename (GtkTreeIter *parentnode, const gchar *old_path,
+                            const gchar *new_path)
 {
     GtkTreeIter iter;
     gchar *path;
@@ -2679,6 +2656,7 @@ void Browser_Tree_Handle_Rename (GtkTreeIter *parentnode, gchar *old_path, gchar
  * Find the child node of "parentnode" that has text of "childtext
  * Returns NULL on failure
  */
+static 
 GtkTreePath *Find_Child_Node (GtkTreeIter *parentnode, gchar *childtext)
 {
     gint row;
@@ -2771,7 +2749,8 @@ static gboolean check_for_subdir (gchar *path)
  * Check if you have permissions for directory path (autorized?, readonly? unreadable?).
  * Returns the right pixmap.
  */
-GdkPixbuf *Pixmap_From_Directory_Permission (gchar *path)
+static GdkPixbuf *
+Pixmap_From_Directory_Permission (const gchar *path)
 {
     DIR *dir;
 
@@ -3810,7 +3789,8 @@ void Browser_Open_Rename_Directory_Window (void)
     g_free(directory_name_utf8);
 }
 
-void Destroy_Rename_Directory_Window (void)
+static void
+Destroy_Rename_Directory_Window (void)
 {
     if (RenameDirectoryWindow)
     {
@@ -3835,7 +3815,8 @@ void Destroy_Rename_Directory_Window (void)
     }
 }
 
-void Rename_Directory (void)
+static void
+Rename_Directory (void)
 {
     DIR   *dir;
     gchar *directory_parent;
@@ -4084,7 +4065,8 @@ void Rename_Directory (void)
     Statusbar_Message(_("Directory renamed"),TRUE);
 }
 
-gboolean Rename_Directory_Window_Key_Press (GtkWidget *window, GdkEvent *event)
+static gboolean
+Rename_Directory_Window_Key_Press (GtkWidget *window, GdkEvent *event)
 {
     GdkEventKey *kevent;
 
@@ -4102,7 +4084,8 @@ gboolean Rename_Directory_Window_Key_Press (GtkWidget *window, GdkEvent *event)
     return FALSE;
 }
 
-void Rename_Directory_With_Mask_Toggled (void)
+static void
+Rename_Directory_With_Mask_Toggled (void)
 {
     gtk_widget_set_sensitive(GTK_WIDGET(RenameDirectoryCombo),            !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(RenameDirectoryWithMask)));
     gtk_widget_set_sensitive(GTK_WIDGET(RenameDirectoryMaskCombo),         gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(RenameDirectoryWithMask)));
@@ -4214,7 +4197,8 @@ void Browser_Open_Run_Program_Tree_Window (void)
     gtk_widget_show_all(RunProgramTreeWindow);
 }
 
-void Destroy_Run_Program_Tree_Window (void)
+static void
+Destroy_Run_Program_Tree_Window (void)
 {
     if (RunProgramTreeWindow)
     {
@@ -4223,7 +4207,8 @@ void Destroy_Run_Program_Tree_Window (void)
     }
 }
 
-gboolean Run_Program_Tree_Window_Key_Press (GtkWidget *window, GdkEvent *event)
+static gboolean
+Run_Program_Tree_Window_Key_Press (GtkWidget *window, GdkEvent *event)
 {
     GdkEventKey *kevent;
 
@@ -4372,7 +4357,8 @@ void Browser_Open_Run_Program_List_Window (void)
     gtk_widget_show_all(RunProgramListWindow);
 }
 
-void Destroy_Run_Program_List_Window (void)
+static void
+Destroy_Run_Program_List_Window (void)
 {
     if (RunProgramListWindow)
     {
@@ -4381,7 +4367,8 @@ void Destroy_Run_Program_List_Window (void)
     }
 }
 
-gboolean Run_Program_List_Window_Key_Press(GtkWidget *window, GdkEvent *event)
+static gboolean
+Run_Program_List_Window_Key_Press (GtkWidget *window, GdkEvent *event)
 {
     GdkEventKey *kevent;
 
@@ -4398,7 +4385,8 @@ gboolean Run_Program_List_Window_Key_Press(GtkWidget *window, GdkEvent *event)
     return FALSE;
 }
 
-void Run_Program_With_Selected_Files (GtkWidget *combobox)
+static void
+Run_Program_With_Selected_Files (GtkWidget *combobox)
 {
     gchar   *program_name;
     ET_File *ETFile;
@@ -4458,7 +4446,8 @@ void Run_Program_With_Selected_Files (GtkWidget *combobox)
  * Run a program with a list of parameters
  *  - args_list : list of filename (with path)
  */
-gboolean Run_Program (gchar *program_name, GList *args_list)
+static gboolean
+Run_Program (const gchar *program_name, GList *args_list)
 {
 #ifdef WIN32
     GList              *filelist;
diff --git a/src/browser.h b/src/browser.h
index ad1f051..e15606d 100644
--- a/src/browser.h
+++ b/src/browser.h
@@ -153,13 +153,8 @@ void         Browser_List_Refresh_File_In_List      (ET_File *ETFile);
 void         Browser_List_Clear                     (void);
 void         Browser_List_Select_File_By_Etfile     (ET_File *ETFile, gboolean select_it);
 GtkTreePath *Browser_List_Select_File_By_Etfile2    (ET_File *searchETFile, gboolean select_it, GtkTreePath *startPath);
-void         Browser_List_Select_File_By_Iter       (GtkTreeIter *iter, gboolean select_it);
 ET_File     *Browser_List_Select_File_By_Iter_String(const gchar* stringiter, gboolean select_it);
 ET_File     *Browser_List_Select_File_By_DLM        (const gchar* string, gboolean select_it);
-void         Browser_List_Unselect_File_By_Etfile   (ET_File *ETFile);
-void         Browser_List_Unselect_File_By_Iter     (GtkTreeIter *iter);
-void         Browser_List_Unselect_File_By_Iter_String(const gchar* stringiter);
-void         Browser_List_Set_Row_Appearance      (GtkTreeIter *iter);
 void         Browser_List_Refresh_Sort            (void);
 void         Browser_List_Select_All_Files        (void);
 void         Browser_List_Unselect_All_Files      (void);
@@ -168,8 +163,6 @@ void         Browser_List_Remove_File             (ET_File *ETFile);
 ET_File     *Browser_List_Get_ETFile_From_Path    (GtkTreePath *path);
 ET_File     *Browser_List_Get_ETFile_From_Iter    (GtkTreeIter *iter);
 
-void         Browser_Artist_List_Load_Files       (ET_File *etfile_to_select);
-
 void         Browser_Entry_Set_Text      (gchar *text);
 void         Browser_Label_Set_Text      (gchar *text);
 
@@ -185,7 +178,6 @@ void 		 Browser_Load_Music_Directory 			(void);
 
 void         Browser_Load_Default_Directory         (void);
 void         Browser_Reload_Directory               (void);
-gchar       *Browser_Tree_Get_Path_Of_Selected_Node (void);
 void         Set_Current_Path_As_Default            (void);
 gchar       *Browser_Get_Current_Path               (void);
 
diff --git a/src/charset.c b/src/charset.c
index 284e213..4e08fdd 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -467,7 +467,8 @@ gchar *convert_to_utf8 (const gchar *string)
     return output;
 }
 
-gchar *convert_from_utf8 (const char *string)
+static gchar *
+convert_from_utf8 (const char *string)
 {
     gchar *output;
     GError *error = NULL;
@@ -749,7 +750,8 @@ gchar *Charset_Get_Name_From_Title (const gchar *charset_title)
 /*
  * Return charset_title from charset_name
  */
-gchar *Charset_Get_Title_From_Name (gchar *charset_name)
+static gchar *
+Charset_Get_Title_From_Name (gchar *charset_name)
 {
     guint i;
 
@@ -767,7 +769,8 @@ gchar *Charset_Get_Title_From_Name (gchar *charset_name)
  * (function called in the preferences window).
  * Note : for UTF-16 (2 byte for each character) we make a special test...
  */
-gboolean test_conversion_charset (const gchar *from, const gchar *to)
+static gboolean
+test_conversion_charset (const gchar *from, const gchar *to)
 {
     gchar *temp;
 
diff --git a/src/charset.h b/src/charset.h
index 7613628..f756344 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -52,7 +52,6 @@ gchar *convert_string_1 (const gchar *string, gssize length, const gchar *from_c
 
 /* Used for Ogg Vorbis and FLAC tags */
 gchar *convert_to_utf8   (const gchar *string);
-gchar *convert_from_utf8 (const gchar *string);
 
 gchar *filename_to_display   (const gchar *string);
 gchar *filename_from_display (const gchar *string);
@@ -61,9 +60,7 @@ gchar *Try_To_Validate_Utf8_String (const gchar *string);
 
 void   Charset_Populate_Combobox   (GtkComboBox *combo, gchar *select_charset);
 gchar *Charset_Get_Name_From_Title (const gchar *charset_title);
-gchar *Charset_Get_Title_From_Name (gchar *charset_name);
 
-gboolean test_conversion_charset (const gchar *from, const gchar *to);
 
 void Charset_Insert_Locales_Init    (void);
 void Charset_Insert_Locales_Destroy (void);
diff --git a/src/dlm.c b/src/dlm.c
index f908c06..5e1d10f 100644
--- a/src/dlm.c
+++ b/src/dlm.c
@@ -5,8 +5,8 @@
 
 #include "dlm.h"
 
-int dlm_cost    (const gchar, const gchar);
-int dlm_minimum (int a, int b, int c, int d);
+static int dlm_cost    (const gchar, const gchar);
+static int dlm_minimum (int a, int b, int c, int d);
 
 /*
  * Compute the Damerau-Levenshtein Distance between utf-8 strings ds and dt.
@@ -67,13 +67,15 @@ int dlm (const gchar *ds, const gchar *dt)
 }
 
 /* "Cost" of changing from a to b. */
-int dlm_cost (const char a, const char b)
+static int
+dlm_cost (const char a, const char b)
 {
     return a == b ? 0 : 1;
 }
 
 /* Return the smallest of four integers. */
-int dlm_minimum (int a, int b, int c, int d)
+static int
+dlm_minimum (int a, int b, int c, int d)
 {
     int min = a;
     if (b < min)
diff --git a/src/easytag.c b/src/easytag.c
index cb6d36c..bfb8868 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -101,43 +101,50 @@ gint     SF_ButtonPressed_Delete_File;
 /**************
  * Prototypes *
  **************/
-void     Handle_Crash     (gint signal_id);
-gchar   *signal_to_string (gint signal);
+static void Handle_Crash (gint signal_id);
+static const gchar *signal_to_string (gint signal);
 
-GtkWidget *Create_Browser_Area (void);
-GtkWidget *Create_File_Area    (void);
-GtkWidget *Create_Tag_Area     (void);
+static GtkWidget *Create_Browser_Area (void);
+static GtkWidget *Create_File_Area    (void);
+static GtkWidget *Create_Tag_Area     (void);
 
-void Menu_Mini_Button_Clicked (GtkEntry *entry);
-void Mini_Button_Clicked      (GObject *object);
-void Disable_Command_Buttons (void);
+static void Menu_Mini_Button_Clicked (GtkEntry *entry);
+static void Mini_Button_Clicked (GObject *object);
+static void Disable_Command_Buttons (void);
 void Clear_Tag_Entry_Fields  (void);
 void Clear_File_Entry_Field  (void);
 void Clear_Header_Fields     (void);
 
-gint Make_Dir         (const gchar *dirname_old, const gchar *dirname_new);
-gint Remove_Dir       (const gchar *dirname_old, const gchar *dirname_new);
-gboolean Write_File_Tag   (ET_File *ETFile, gboolean hide_msgbox);
-gboolean Rename_File      (ET_File *ETFile, gboolean hide_msgbox);
-gint Save_File        (ET_File *ETFile, gboolean multiple_files, gboolean force_saving_files);
-gint Delete_File      (ET_File *ETFile, gboolean multiple_files);
+static gboolean Make_Dir (const gchar *dirname_old, const gchar *dirname_new);
+static gboolean Remove_Dir (const gchar *dirname_old,
+                            const gchar *dirname_new);
+static gboolean Write_File_Tag (ET_File *ETFile, gboolean hide_msgbox);
+static gboolean Rename_File (ET_File *ETFile, gboolean hide_msgbox);
+static gint Save_File (ET_File *ETFile, gboolean multiple_files,
+                       gboolean force_saving_files);
+static gint Delete_File (ET_File *ETFile, gboolean multiple_files);
 gint Save_All_Files_With_Answer        (gboolean force_saving_files);
-gint Save_Selected_Files_With_Answer   (gboolean force_saving_files);
-gint Save_List_Of_Files                (GList *etfilelist, gboolean force_saving_files);
-gint Delete_Selected_Files_With_Answer (void);
-gint Copy_File (gchar const *fileold, gchar const *filenew);
+static gint Save_Selected_Files_With_Answer (gboolean force_saving_files);
+static gint Save_List_Of_Files (GList *etfilelist,
+                                gboolean force_saving_files);
+static gint Delete_Selected_Files_With_Answer (void);
+static gboolean Copy_File (const gchar *fileold, const gchar *filenew);
 
-void Display_Usage (void);
+static void Display_Usage (void);
 
-void Init_Load_Default_Dir (void);
-void EasyTAG_Exit (void);
+static void Init_Load_Default_Dir (void);
+static void EasyTAG_Exit (void);
 void Quit_MainWindow_Ok_Button (void);
 
-GList *Read_Directory_Recursively (GList *file_list, gchar *path, gint recurse);
-void Open_Quit_Recursion_Function_Window    (void);
-void Destroy_Quit_Recursion_Function_Window (void);
-void Quit_Recursion_Function_Button_Pressed (void);
-void Quit_Recursion_Window_Key_Press (GtkWidget *window, GdkEvent *event);
+static GList *Read_Directory_Recursively (GList *file_list, const gchar *path,
+                                          gboolean recurse);
+static void Open_Quit_Recursion_Function_Window (void);
+static void Destroy_Quit_Recursion_Function_Window (void);
+static void Quit_Recursion_Function_Button_Pressed (void);
+static void Quit_Recursion_Window_Key_Press (GtkWidget *window,
+                                             GdkEvent *event);
+static void File_Area_Set_Sensitive (gboolean activate);
+static void Tag_Area_Set_Sensitive  (gboolean activate);
 
 #ifndef WIN32
 static void
@@ -430,7 +437,8 @@ int main (int argc, char *argv[])
 }
 
 
-GtkWidget *Create_Browser_Area (void)
+static GtkWidget *
+Create_Browser_Area (void)
 {
     GtkWidget *Frame;
     GtkWidget *Tree;
@@ -450,7 +458,8 @@ GtkWidget *Create_Browser_Area (void)
 }
 
 
-GtkWidget *Create_File_Area (void)
+static GtkWidget *
+Create_File_Area (void)
 {
     GtkWidget *VBox, *HBox;
     GtkWidget *Separator;
@@ -554,7 +563,8 @@ GtkWidget *Create_File_Area (void)
 }
 
 #include "../pixmaps/sequence_track.xpm"
-GtkWidget *Create_Tag_Area (void)
+static GtkWidget *
+Create_Tag_Area (void)
 {
     GtkWidget *Separator;
     GtkWidget *Frame;
@@ -1149,12 +1159,15 @@ GtkWidget *Create_Tag_Area (void)
 /*
  * Actions when mini buttons are pressed: apply the field to all others files
  */
-void Menu_Mini_Button_Clicked (GtkEntry *entry)
+static void
+Menu_Mini_Button_Clicked (GtkEntry *entry)
 {
     if ( g_object_get_data(G_OBJECT(entry),"MButtonName") )
         Mini_Button_Clicked(G_OBJECT(g_object_get_data(G_OBJECT(entry),"MButtonName")));
 }
-void Mini_Button_Clicked (GObject *object)
+
+static void
+Mini_Button_Clicked (GObject *object)
 {
     GList *etfilelist = NULL;
     GList *selection_filelist = NULL;
@@ -2122,7 +2135,8 @@ gint Save_All_Files_With_Answer (gboolean force_saving_files)
 /*
  * Will save only the selected files in the file list
  */
-gint Save_Selected_Files_With_Answer (gboolean force_saving_files)
+static gint
+Save_Selected_Files_With_Answer (gboolean force_saving_files)
 {
     gint toreturn;
     GList *etfilelist = NULL;
@@ -2155,7 +2169,8 @@ gint Save_Selected_Files_With_Answer (gboolean force_saving_files)
  *  - force_saving_files = TRUE => force saving the file even if it wasn't changed
  *  - force_saving_files = FALSE => force saving only the changed files
  */
-gint Save_List_Of_Files (GList *etfilelist, gboolean force_saving_files)
+static gint
+Save_List_Of_Files (GList *etfilelist, gboolean force_saving_files)
 {
     gint       progress_bar_index;
     gint       saving_answer;
@@ -2364,7 +2379,8 @@ void Action_Delete_Selected_Files (void)
 }
 
 
-gint Delete_Selected_Files_With_Answer (void)
+static gint
+Delete_Selected_Files_With_Answer (void)
 {
     GList *selfilelist;
     GList *rowreflist = NULL;
@@ -2506,7 +2522,9 @@ gint Delete_Selected_Files_With_Answer (void)
  *                             to do the same action for all files.
  *  - multiple_files = FALSE : appears only a msgbox to ask confirmation.
  */
-gint Save_File (ET_File *ETFile, gboolean multiple_files, gboolean force_saving_files)
+static gint
+Save_File (ET_File *ETFile, gboolean multiple_files,
+           gboolean force_saving_files)
 {
     File_Tag  *FileTag;
     File_Name *FileNameNew;
@@ -2768,7 +2786,8 @@ gint Save_File (ET_File *ETFile, gboolean multiple_files, gboolean force_saving_
  * Return TRUE => OK
  *        FALSE => error
  */
-gboolean Write_File_Tag (ET_File *ETFile, gboolean hide_msgbox)
+static gboolean
+Write_File_Tag (ET_File *ETFile, gboolean hide_msgbox)
 {
     gchar *cur_filename_utf8 = ((File_Name *)ETFile->FileNameCur->data)->value_utf8;
     gchar *msg;
@@ -2830,7 +2849,8 @@ gboolean Write_File_Tag (ET_File *ETFile, gboolean hide_msgbox)
 /*
  * Make dir and all parents with permission mode
  */
-gint Make_Dir (const gchar *dirname_old, const gchar *dirname_new)
+static gboolean
+Make_Dir (const gchar *dirname_old, const gchar *dirname_new)
 {
     gchar *parent, *temp;
     struct stat dirstat;
@@ -2860,23 +2880,24 @@ gint Make_Dir (const gchar *dirname_old, const gchar *dirname_new)
         if (mkdir(parent,dirstat.st_mode)==-1 && errno!=EEXIST)
         {
             g_free(parent);
-            return(-1);
+            return FALSE;
         }
         *temp=G_DIR_SEPARATOR; // To cancel the '*temp=0;'
     }
     g_free(parent);
 
     if (mkdir(dirname_new,dirstat.st_mode)==-1 && errno!=EEXIST)
-        return(-1);
+        return FALSE;
 
-    return(0);
+    return TRUE;
 }
 
 /*
  * Remove old directories after renaming the file
  * Badly coded, but works....
  */
-gint Remove_Dir (const gchar *dirname_old, const gchar *dirname_new)
+static gboolean
+Remove_Dir (const gchar *dirname_old, const gchar *dirname_new)
 {
     gchar *temp_old, *temp_new;
     gchar *temp_end_old, *temp_end_new;
@@ -2894,7 +2915,7 @@ gint Remove_Dir (const gchar *dirname_old, const gchar *dirname_new)
             {
                 g_free(temp_old);
                 g_free(temp_new);
-                return(-1);
+                return FALSE;
             }else
             {
                 break;
@@ -2918,7 +2939,7 @@ gint Remove_Dir (const gchar *dirname_old, const gchar *dirname_new)
     g_free(temp_old);
     g_free(temp_new);
 
-    return(0);
+    return TRUE;
 }
 
 
@@ -2927,7 +2948,8 @@ gint Remove_Dir (const gchar *dirname_old, const gchar *dirname_new)
  * Return TRUE => OK
  *        FALSE => error
  */
-gboolean Rename_File (ET_File *ETFile, gboolean hide_msgbox)
+static gboolean
+Rename_File (ET_File *ETFile, gboolean hide_msgbox)
 {
     FILE  *file;
     gchar *tmp_filename = NULL;
@@ -3068,7 +3090,7 @@ gboolean Rename_File (ET_File *ETFile, gboolean hide_msgbox)
 
     if (dirname_cur && dirname_new && strcmp(dirname_cur,dirname_new)) /* Need to create target directory? */
     {
-        if (Make_Dir(dirname_cur,dirname_new))
+        if (!Make_Dir(dirname_cur,dirname_new))
         {
             gchar *msg;
             GtkWidget *msgdialog;
@@ -3119,7 +3141,7 @@ gboolean Rename_File (ET_File *ETFile, gboolean hide_msgbox)
         Statusbar_Message(_("File(s) renamedâ"),TRUE);
 
         /* Remove the of directory (check automatically if it is empty) */
-        if (Remove_Dir(dirname_cur,dirname_new))
+        if (!Remove_Dir(dirname_cur,dirname_new))
         {
             gchar *msg;
             GtkWidget *msgdialog;
@@ -3177,7 +3199,7 @@ gboolean Rename_File (ET_File *ETFile, gboolean hide_msgbox)
             Statusbar_Message(_("File(s) movedâ"),TRUE);
 
             /* Remove the of directory (check automatically if it is empty) */
-            if (Remove_Dir(dirname_cur,dirname_new))
+            if (!Remove_Dir(dirname_cur,dirname_new))
             {
                 gchar *msg;
                 GtkWidget *msgdialog;
@@ -3295,7 +3317,8 @@ gboolean Rename_File (ET_File *ETFile, gboolean hide_msgbox)
 /*
  * Delete the file ETFile
  */
-gint Delete_File (ET_File *ETFile, gboolean multiple_files)
+static gint
+Delete_File (ET_File *ETFile, gboolean multiple_files)
 {
     GtkWidget *msgdialog;
     GtkWidget *msgdialog_check_button = NULL;
@@ -3384,7 +3407,8 @@ gint Delete_File (ET_File *ETFile, gboolean multiple_files)
 /*
  * Copy a file to a new location
  */
-gint Copy_File (gchar const *fileold, gchar const *filenew)
+static gboolean
+Copy_File (const gchar *fileold, const gchar *filenew)
 {
     FILE* fOld;
     FILE* fNew;
@@ -3634,7 +3658,9 @@ gboolean Read_Directory (gchar *path_real)
 /*
  * Recurse the path to create a list of files. Return a GList of the files found.
  */
-GList *Read_Directory_Recursively (GList *file_list, gchar *path_real, gint recurse)
+static GList *
+Read_Directory_Recursively (GList *file_list, const gchar *path_real,
+                            gboolean recurse)
 {
     DIR *dir;
     struct dirent *dirent;
@@ -3692,7 +3718,8 @@ GList *Read_Directory_Recursively (GList *file_list, gchar *path_real, gint recu
 /*
  * Window with the 'STOP' button to stop recursion when reading directories
  */
-void Open_Quit_Recursion_Function_Window (void)
+static void
+Open_Quit_Recursion_Function_Window (void)
 {
     GtkWidget *button;
     GtkWidget *frame;
@@ -3727,7 +3754,9 @@ void Open_Quit_Recursion_Function_Window (void)
 
     gtk_widget_show_all(QuitRecursionWindow);
 }
-void Destroy_Quit_Recursion_Function_Window (void)
+
+static void
+Destroy_Quit_Recursion_Function_Window (void)
 {
     if (QuitRecursionWindow)
     {
@@ -3736,12 +3765,16 @@ void Destroy_Quit_Recursion_Function_Window (void)
         /*Statusbar_Message(_("Recursive file search interrupted."),FALSE);*/
     }
 }
-void Quit_Recursion_Function_Button_Pressed (void)
+
+static void
+Quit_Recursion_Function_Button_Pressed (void)
 {
     Action_Main_Stop_Button_Pressed();
     Destroy_Quit_Recursion_Function_Window();
 }
-void Quit_Recursion_Window_Key_Press (GtkWidget *window, GdkEvent *event)
+
+static void
+Quit_Recursion_Window_Key_Press (GtkWidget *window, GdkEvent *event)
 {
     GdkEventKey *kevent;
 
@@ -4002,7 +4035,8 @@ void Update_Command_Buttons_Sensivity (void)
 /*
  * Just to disable buttons when we are saving files (do not disable Quit button)
  */
-void Disable_Command_Buttons (void)
+static void
+Disable_Command_Buttons (void)
 {
     /* Scanner Window */
     if (SWScanButton)
@@ -4037,7 +4071,8 @@ void Disable_Command_Buttons (void)
 /*
  * Disable (FALSE) / Enable (TRUE) all user widgets in the tag area
  */
-void Tag_Area_Set_Sensitive (gboolean activate)
+static void
+Tag_Area_Set_Sensitive (gboolean activate)
 {
     if (!TagArea) return;
 
@@ -4072,7 +4107,8 @@ void Tag_Area_Set_Sensitive (gboolean activate)
 /*
  * Disable (FALSE) / Enable (TRUE) all user widgets in the file area
  */
-void File_Area_Set_Sensitive (gboolean activate)
+static void
+File_Area_Set_Sensitive (gboolean activate)
 {
     if (!FileArea) return;
 
@@ -4447,7 +4483,8 @@ void Clear_Header_Fields (void)
  * Load the default directory when the user interface is completely displayed
  * to avoid bad visualization effect at startup.
  */
-void Init_Load_Default_Dir (void)
+static void
+Init_Load_Default_Dir (void)
 {
     //ETCore->ETFileList = NULL;
     ET_Core_Free();
@@ -4695,7 +4732,8 @@ void Attach_Popup_Menu_To_Tag_Entries (GtkEntry *entry)
  * Function to manage the received signals (specially for segfaults)
  * Handle crashs
  */
-void Handle_Crash (gint signal_id)
+static void
+Handle_Crash (gint signal_id)
 {
     //gchar commmand[256];
 
@@ -4723,7 +4761,8 @@ void Handle_Crash (gint signal_id)
     //system(commmand);
 }
 
-gchar *signal_to_string (gint signal)
+static const gchar *
+signal_to_string (gint signal)
 {
 #ifdef SIGHUP
     if (signal == SIGHUP)     return ("SIGHUP");
@@ -4846,7 +4885,8 @@ gchar *signal_to_string (gint signal)
 /*
  * Display usage information
  */
-void Display_Usage (void)
+static void
+Display_Usage (void)
 {
     // Fix from Steve Ralston for gcc-3.2.2
 #ifdef WIN32
@@ -4879,7 +4919,8 @@ void Display_Usage (void)
 /*
  * Exit the program
  */
-void EasyTAG_Exit (void)
+static void
+EasyTAG_Exit (void)
 {
     ET_Core_Destroy();
     Charset_Insert_Locales_Destroy();
diff --git a/src/easytag.h b/src/easytag.h
index e333abf..47b1845 100644
--- a/src/easytag.h
+++ b/src/easytag.h
@@ -173,13 +173,10 @@ void Action_Undo_From_History_List      (void);
 void Action_Redo_From_History_List      (void);
 void Action_Delete_Selected_Files       (void);
 gint Save_All_Files_With_Answer         (gboolean force_saving_files);
-gint Save_Selected_Files_With_Answer    (gboolean force_saving_files);
 
 void Action_Main_Stop_Button_Pressed    (void);
 void Action_Select_Browser_Style        (void);
 
-void File_Area_Set_Sensitive (gboolean activate);
-void Tag_Area_Set_Sensitive  (gboolean activate);
 void Tag_Area_Display_Controls (ET_File *ETFile);
 
 gboolean Read_Directory               (gchar *path);
diff --git a/src/log.c b/src/log.c
index 5e2deda..11f2a3a 100644
--- a/src/log.c
+++ b/src/log.c
@@ -75,11 +75,12 @@ struct _Log_Data
 /**************
  * Prototypes *
  **************/
-gboolean Log_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event);
-void     Log_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *rowIter);
-void     Log_Print_Tmp_List (void);
-gchar   *Log_Format_Date (void);
-gchar   *Log_Get_Stock_Id_From_Error_Type (Log_Error_Type error_type);
+static gboolean Log_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event);
+static void Log_List_Set_Row_Visible (GtkTreeModel *treeModel,
+                                      GtkTreeIter *rowIter);
+static void Log_Print_Tmp_List (void);
+static gchar *Log_Format_Date (void);
+static gchar *Log_Get_Stock_Id_From_Error_Type (Log_Error_Type error_type);
 
 
 
@@ -169,7 +170,8 @@ GtkWidget *Create_Log_Area (void)
 /*
  * Log_Popup_Menu_Handler : displays the corresponding menu
  */
-gboolean Log_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event)
+static gboolean
+Log_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event)
 {
     if (event && (event->type==GDK_BUTTON_PRESS) && (event->button == 3))
     {
@@ -183,7 +185,8 @@ gboolean Log_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event)
 /*
  * Set a row visible in the log list (by scrolling the list)
  */
-void Log_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *rowIter)
+static void
+Log_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *rowIter)
 {
     /*
      * TODO: Make this only scroll to the row if it is not visible
@@ -216,7 +219,8 @@ void Log_Clean_Log_List (void)
 /*
  * Return time in allocated data
  */
-gchar *Log_Format_Date (void)
+static gchar *
+Log_Format_Date (void)
 {
     struct tm *tms;
     time_t nowtime;
@@ -335,7 +339,8 @@ void Log_Print (Log_Error_Type error_type, gchar const *format, ...)
 /*
  * Display pending messages in the LogList
  */
-void Log_Print_Tmp_List (void)
+static void
+Log_Print_Tmp_List (void)
 {
     GtkTreeIter iter;
 
@@ -381,7 +386,8 @@ void Log_Print_Tmp_List (void)
 }
 
 
-gchar *Log_Get_Stock_Id_From_Error_Type (Log_Error_Type error_type)
+static gchar *
+Log_Get_Stock_Id_From_Error_Type (Log_Error_Type error_type)
 {
     gchar *stock_id;
 
diff --git a/src/misc.c b/src/misc.c
index 6f55183..f47c707 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -150,40 +150,49 @@ enum
  * Prototypes *
  **************/
 void     Open_Write_Playlist_Window      (void);
-gboolean Write_Playlist_Window_Key_Press (GtkWidget *window, GdkEvent *event);
-void     Destroy_Write_Playlist_Window   (void);
-void     Playlist_Write_Button_Pressed   (void);
-gboolean Write_Playlist                  (gchar *play_list_name);
-gboolean Playlist_Check_Content_Mask     (GtkWidget *widget_to_show_hide, GtkEntry *widget_source);
-void     Playlist_Convert_Forwardslash_Into_Backslash (gchar *string);
+static gboolean Write_Playlist_Window_Key_Press (GtkWidget *window,
+                                                 GdkEvent *event);
+static void Destroy_Write_Playlist_Window (void);
+static void Playlist_Write_Button_Pressed (void);
+static gboolean Write_Playlist (const gchar *play_list_name);
+static gboolean Playlist_Check_Content_Mask (GtkWidget *widget_to_show_hide,
+                                             GtkEntry *widget_source);
+static void Playlist_Convert_Forwardslash_Into_Backslash (const gchar *string);
 
 void Open_Search_File_Window          (void);
-void Destroy_Search_File_Window       (void);
-gboolean Search_File_Window_Key_Press (GtkWidget *window, GdkEvent *event);
-void Search_File                      (GtkWidget *search_button);
-void Add_Row_To_Search_Result_List    (ET_File *ETFile,const gchar *string_to_search);
-void Search_Result_List_Row_Selected  (GtkTreeSelection* selection, gpointer data);
+static void Destroy_Search_File_Window (void);
+static gboolean Search_File_Window_Key_Press (GtkWidget *window,
+                                              GdkEvent *event);
+static void Search_File (GtkWidget *search_button);
+static void Add_Row_To_Search_Result_List (ET_File *ETFile,
+                                           const gchar *string_to_search);
+static void Search_Result_List_Row_Selected (GtkTreeSelection* selection,
+                                             gpointer data);
 
 void Open_Load_Filename_Window      (void);
-void Destroy_Load_Filename_Window   (void);
-gboolean Load_Filename_Window_Key_Press (GtkWidget *window, GdkEvent *event);
-void Load_Filename_List_Key_Press   (GtkWidget *clist, GdkEvent *event);
-void Load_File_Content              (GtkWidget *file_entry);
-void Load_File_List                 (void);
-void Load_Filename_Select_Row_In_Other_List (GtkWidget *target, gpointer selection_emit);
-void Load_Filename_Set_Filenames            (void);
-void Button_Load_Set_Sensivity              (GtkWidget *button, GtkWidget *entry);
-GtkWidget *Create_Load_Filename_Popup_Menu     (GtkWidget *list);
-void Load_Filename_List_Insert_Blank_Line      (GtkWidget *list);
-void Load_Filename_List_Delete_Line            (GtkWidget *list);
-void Load_Filename_List_Move_Up                (GtkWidget *list);
-void Load_Filename_List_Move_Down              (GtkWidget *list);
-void Load_Filename_List_Delete_All_Blank_Lines (GtkWidget *list);
-void Load_Filename_List_Reload                 (GtkWidget *list);
-void Load_Filename_Update_Text_Line            (GtkWidget *entry, GtkWidget *list);
-void Load_Filename_Edit_Text_Line              (GtkTreeSelection *selection, gpointer data);
-
-void Create_Xpm_Icon_Factory (const char **xpm_data, const char *name_in_factory);
+static void Destroy_Load_Filename_Window (void);
+static gboolean Load_Filename_Window_Key_Press (GtkWidget *window,
+                                                GdkEvent *event);
+static void Load_Filename_List_Key_Press (GtkWidget *clist, GdkEvent *event);
+static void Load_File_Content (GtkWidget *file_entry);
+static void Load_File_List (void);
+static void Load_Filename_Select_Row_In_Other_List (GtkWidget *target,
+                                                    gpointer selection_emit);
+static void Load_Filename_Set_Filenames (void);
+static void Button_Load_Set_Sensivity (GtkWidget *button, GtkWidget *entry);
+static GtkWidget *Create_Load_Filename_Popup_Menu (GtkWidget *list);
+static void Load_Filename_List_Insert_Blank_Line (GtkWidget *list);
+static void Load_Filename_List_Delete_Line (GtkWidget *list);
+static void Load_Filename_List_Move_Up (GtkWidget *list);
+static void Load_Filename_List_Move_Down (GtkWidget *list);
+static void Load_Filename_List_Delete_All_Blank_Lines (GtkWidget *list);
+static void Load_Filename_List_Reload (GtkWidget *list);
+static void Load_Filename_Update_Text_Line (GtkWidget *entry, GtkWidget *list);
+static void Load_Filename_Edit_Text_Line (GtkTreeSelection *selection,
+                                          gpointer data);
+
+static void Create_Xpm_Icon_Factory (const char **xpm_data,
+                                     const char *name_in_factory);
 void Create_Png_Icon_Factory (const char *png_file, const char *name_in_factory);
 
 /* Browser */
@@ -559,7 +568,8 @@ void Init_Mouse_Cursor (void)
     MouseCursor = NULL;
 }
 
-void Destroy_Mouse_Cursor (void)
+static void
+Destroy_Mouse_Cursor (void)
 {
     if (MouseCursor)
     {
@@ -637,7 +647,8 @@ void Init_Custom_Icons (void)
  * Create an icon factory from the specified pixmap
  * Also add it to the GTK stock images
  */
-void Create_Xpm_Icon_Factory (const char **xpm_data, const char *name_in_factory)
+static void
+Create_Xpm_Icon_Factory (const char **xpm_data, const char *name_in_factory)
 {
     GtkIconSet      *icon;
     GtkIconFactory  *factory;
@@ -823,7 +834,8 @@ static void Open_File_Selection_Window (GtkWidget *entry, gchar *title, GtkFileC
 /*
  * Run the audio player and load files of the current dir
  */
-void Run_Audio_Player_Using_File_List (GList *etfilelist_init)
+static void
+Run_Audio_Player_Using_File_List (GList *etfilelist_init)
 {
     gchar  **argv;
     gint     argv_index = 0;
@@ -1429,7 +1441,8 @@ void Open_Write_Playlist_Window (void)
     g_signal_emit_by_name(G_OBJECT(gtk_bin_get_child(GTK_BIN(PlayListContentMaskCombo))),"changed");
 }
 
-void Destroy_Write_Playlist_Window (void)
+static void
+Destroy_Write_Playlist_Window (void)
 {
     if (WritePlaylistWindow)
     {
@@ -1506,7 +1519,8 @@ gboolean Write_Playlist_Window_Key_Press (GtkWidget *window, GdkEvent *event)
     return FALSE;
 }
 
-void Playlist_Write_Button_Pressed (void)
+static void
+Playlist_Write_Button_Pressed (void)
 {
     gchar *playlist_name = NULL;
     gchar *playlist_path_utf8;      // Path
@@ -1684,7 +1698,9 @@ void Playlist_Write_Button_Pressed (void)
     g_free(playlist_name);
 }
 
-gboolean Playlist_Check_Content_Mask (GtkWidget *widget_to_show_hide, GtkEntry *widget_source)
+static gboolean
+Playlist_Check_Content_Mask (GtkWidget *widget_to_show_hide,
+                             GtkEntry *widget_source)
 {
     gchar *tmp  = NULL;
     gchar *mask = NULL;
@@ -1731,7 +1747,8 @@ gboolean Playlist_Check_Content_Mask (GtkWidget *widget_to_show_hide, GtkEntry *
 /*
  * Function to replace UNIX ForwardSlash with a DOS BackSlash
  */
-void Playlist_Convert_Forwardslash_Into_Backslash (gchar *string)
+static void
+Playlist_Convert_Forwardslash_Into_Backslash (const gchar *string)
 {
     gchar *tmp;
 
@@ -1744,7 +1761,8 @@ void Playlist_Convert_Forwardslash_Into_Backslash (gchar *string)
  * Write a playlist
  *  - 'playlist_name' in file system encoding (not UTF-8)
  */
-gboolean Write_Playlist (gchar *playlist_name)
+static gboolean
+Write_Playlist (const gchar *playlist_name)
 {
     FILE  *file;
     ET_File *etfile;
@@ -2229,7 +2247,8 @@ void Open_Search_File_Window (void)
     //    gtk_window_set_position(GTK_WINDOW(SearchFileWindow), GTK_WIN_POS_CENTER_ON_PARENT); // Must use gtk_window_set_transient_for to work
 }
 
-void Destroy_Search_File_Window (void)
+static void
+Destroy_Search_File_Window (void)
 {
     if (SearchFileWindow)
     {
@@ -2273,7 +2292,8 @@ void Search_File_Window_Apply_Changes (void)
     }
 }
 
-gboolean Search_File_Window_Key_Press (GtkWidget *window, GdkEvent *event)
+static gboolean
+Search_File_Window_Key_Press (GtkWidget *window, GdkEvent *event)
 {
     GdkEventKey *kevent;
 
@@ -2294,7 +2314,8 @@ gboolean Search_File_Window_Key_Press (GtkWidget *window, GdkEvent *event)
  * This function and the one below could do with improving
  * as we are looking up tag data twice (once when searching, once when adding to list)
  */
-void Search_File (GtkWidget *search_button)
+static void
+Search_File (GtkWidget *search_button)
 {
     const gchar *string_to_search = NULL;
     GList *etfilelist;
@@ -2461,7 +2482,8 @@ void Search_File (GtkWidget *search_button)
     }
 }
 
-void Add_Row_To_Search_Result_List(ET_File *ETFile,const gchar *string_to_search)
+static void
+Add_Row_To_Search_Result_List (ET_File *ETFile, const gchar *string_to_search)
 {
     gchar *SearchResultList_Text[15]; // Because : 15 columns to display
     gint SearchResultList_Weight[15] = {PANGO_WEIGHT_NORMAL, PANGO_WEIGHT_NORMAL,
@@ -2647,7 +2669,8 @@ void Add_Row_To_Search_Result_List(ET_File *ETFile,const gchar *string_to_search
  * Callback to select-row event
  * Select all results that are selected in the search result list also in the browser list
  */
-void Search_Result_List_Row_Selected(GtkTreeSelection *selection, gpointer data)
+static void
+Search_Result_List_Row_Selected (GtkTreeSelection *selection, gpointer data)
 {
     GList       *selectedRows;
     GList       *selectedRowsCopy;
@@ -3032,7 +3055,8 @@ void Open_Load_Filename_Window (void)
         gtk_window_move(GTK_WINDOW(LoadFilenameWindow),LOAD_FILE_WINDOW_X,LOAD_FILE_WINDOW_Y);
 }
 
-void Destroy_Load_Filename_Window (void)
+static void
+Destroy_Load_Filename_Window (void)
 {
     if (LoadFilenameWindow)
     {
@@ -3074,7 +3098,8 @@ void Load_Filename_Window_Apply_Changes (void)
     }
 }
 
-gboolean Load_Filename_Window_Key_Press (GtkWidget *window, GdkEvent *event)
+static gboolean
+Load_Filename_Window_Key_Press (GtkWidget *window, GdkEvent *event)
 {
     GdkEventKey *kevent;
 
@@ -3094,7 +3119,8 @@ gboolean Load_Filename_Window_Key_Press (GtkWidget *window, GdkEvent *event)
 /*
  * To enable/disable sensivity of the button 'Load'
  */
-void Button_Load_Set_Sensivity (GtkWidget *button, GtkWidget *entry)
+static void
+Button_Load_Set_Sensivity (GtkWidget *button, GtkWidget *entry)
 {
     struct stat statbuf;
     gchar *path;
@@ -3111,7 +3137,8 @@ void Button_Load_Set_Sensivity (GtkWidget *button, GtkWidget *entry)
     g_free(path);
 }
 
-void Load_Filename_List_Key_Press (GtkWidget *treeview, GdkEvent *event)
+static void
+Load_Filename_List_Key_Press (GtkWidget *treeview, GdkEvent *event)
 {
     if (event && event->type == GDK_KEY_PRESS)
     {
@@ -3133,7 +3160,8 @@ void Load_Filename_List_Key_Press (GtkWidget *treeview, GdkEvent *event)
 /*
  * Load content of the file into the LoadFileContentList list
  */
-void Load_File_Content (GtkWidget *entry)
+static void
+Load_File_Content (GtkWidget *entry)
 {
     FILE *file;
     gchar *filename;
@@ -3190,7 +3218,8 @@ void Load_File_Content (GtkWidget *entry)
 /*
  * Load the names of the current list of files
  */
-void Load_File_List (void)
+static void
+Load_File_List (void)
 {
     GList *etfilelist;
     ET_File *etfile;
@@ -3219,7 +3248,8 @@ void Load_File_List (void)
 /*
  * To select the corresponding row in the other list
  */
-void Load_Filename_Select_Row_In_Other_List(GtkWidget* treeview_target, gpointer origselection)
+static void
+Load_Filename_Select_Row_In_Other_List (GtkWidget* treeview_target, gpointer origselection)
 {
     GtkAdjustment *ct_adj, *ce_adj;
     GtkTreeSelection *selection_orig;
@@ -3292,7 +3322,8 @@ void Load_Filename_Select_Row_In_Other_List(GtkWidget* treeview_target, gpointer
  * Set the new file name of each file.
  * Associate lines from LoadFileContentList with LoadFileNameList
  */
-void Load_Filename_Set_Filenames (void)
+static void
+Load_Filename_Set_Filenames (void)
 {
     gint row;
     ET_File   *ETFile;
@@ -3379,7 +3410,8 @@ Load_Filename_Popup_Menu_Handler (GtkMenu *menu, GdkEventButton *event)
     return FALSE;
 }
 
-GtkWidget *Create_Load_Filename_Popup_Menu(GtkWidget *list)
+static GtkWidget *
+Create_Load_Filename_Popup_Menu (GtkWidget *list)
 {
     GtkWidget *BrowserPopupMenu;
     GtkWidget *Image;
@@ -3439,7 +3471,8 @@ GtkWidget *Create_Load_Filename_Popup_Menu(GtkWidget *list)
 /*
  * Insert a blank line before the selected line in the treeview passed as parameter
  */
-void Load_Filename_List_Insert_Blank_Line (GtkWidget *treeview)
+static void
+Load_Filename_List_Insert_Blank_Line (GtkWidget *treeview)
 {
     GtkTreeSelection *selection;
     GtkTreeIter selectedIter;
@@ -3460,7 +3493,8 @@ void Load_Filename_List_Insert_Blank_Line (GtkWidget *treeview)
 /*
  * Delete all blank lines in the treeview passed as parameter
  */
-void Load_Filename_List_Delete_All_Blank_Lines (GtkWidget *treeview)
+static void
+Load_Filename_List_Delete_All_Blank_Lines (GtkWidget *treeview)
 {
     gchar *text = NULL;
     GtkTreeIter iter;
@@ -3495,7 +3529,8 @@ void Load_Filename_List_Delete_All_Blank_Lines (GtkWidget *treeview)
 /*
  * Delete the selected line in the treeview passed as parameter
  */
-void Load_Filename_List_Delete_Line (GtkWidget *treeview)
+static void
+Load_Filename_List_Delete_Line (GtkWidget *treeview)
 {
     GtkTreeSelection *selection;
     GtkTreeIter selectedIter, itercopy;
@@ -3525,7 +3560,8 @@ void Load_Filename_List_Delete_Line (GtkWidget *treeview)
 /*
  * Move up the selected line in the treeview passed as parameter
  */
-void Load_Filename_List_Move_Up (GtkWidget *treeview)
+static void
+Load_Filename_List_Move_Up (GtkWidget *treeview)
 {
     GtkTreeSelection *selection;
     GList *selectedRows;
@@ -3578,7 +3614,8 @@ void Load_Filename_List_Move_Up (GtkWidget *treeview)
 /*
  * Move down the selected line in the treeview passed as parameter
  */
-void Load_Filename_List_Move_Down (GtkWidget *treeview)
+static void
+Load_Filename_List_Move_Down (GtkWidget *treeview)
 {
     GtkTreeSelection *selection;
     GList *selectedRows;
@@ -3629,7 +3666,8 @@ void Load_Filename_List_Move_Down (GtkWidget *treeview)
  * Reload a list of choice
  * The list parameter refers to a GtkTreeView (LoadFileNameList or LoadFileContentList)
  */
-void Load_Filename_List_Reload (GtkWidget *treeview)
+static void
+Load_Filename_List_Reload (GtkWidget *treeview)
 {
     if (!treeview) return;
 
@@ -3646,7 +3684,8 @@ void Load_Filename_List_Reload (GtkWidget *treeview)
 /*
  * Update the text of the selected line into the list, with the text entered into the entry
  */
-void Load_Filename_Update_Text_Line(GtkWidget *entry, GtkWidget *list)
+static void
+Load_Filename_Update_Text_Line(GtkWidget *entry, GtkWidget *list)
 {
     GtkTreeIter SelectedRow;
     GtkTreeSelection *selection;
@@ -3667,7 +3706,8 @@ void Load_Filename_Update_Text_Line(GtkWidget *entry, GtkWidget *list)
 /*
  * Set the text of the selected line of the list into the entry
  */
-void Load_Filename_Edit_Text_Line(GtkTreeSelection *selection, gpointer data)
+static void
+Load_Filename_Edit_Text_Line(GtkTreeSelection *selection, gpointer data)
 {
     gchar *text;
     GtkTreeIter selectedIter;
diff --git a/src/misc.h b/src/misc.h
index d7bfa69..072f82a 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -82,12 +82,10 @@ gchar *Check_If_Executable_Exists (const gchar *program);
 
 // Mouse cursor
 void Init_Mouse_Cursor    (void);
-void Destroy_Mouse_Cursor (void);
 void Set_Busy_Cursor      (void);
 void Set_Unbusy_Cursor    (void);
 
 // Run Audio Player
-void Run_Audio_Player_Using_File_List (GList *etfilelist);
 void Run_Audio_Player_Using_Directory (void);
 void Run_Audio_Player_Using_Selection (void);
 void Run_Audio_Player_Using_Browser_Artist_List (void);
diff --git a/src/ogg_tag.c b/src/ogg_tag.c
index f1b8eb4..66d80de 100644
--- a/src/ogg_tag.c
+++ b/src/ogg_tag.c
@@ -108,7 +108,7 @@
 /**************
  * Prototypes *
  **************/
-gboolean Ogg_Tag_Write_File (FILE *file_in, gchar *filename_in, vcedit_state *state);
+static gboolean Ogg_Tag_Write_File (FILE *file_in, gchar *filename_in, vcedit_state *state);
 
 static gboolean Ogg_Write_Delimetered_Tag (vorbis_comment *vc, const gchar *tag_name, gchar *values);
 static gboolean Ogg_Write_Tag (vorbis_comment *vc, const gchar *tag_name, gchar *value);
@@ -866,7 +866,8 @@ gboolean Ogg_Tag_Write_File_Tag (ET_File *ETFile)
 /* 
  * Write tag information to a new temporary file, and rename it the the initial name.
  */
-gboolean Ogg_Tag_Write_File (FILE *file_in, gchar *filename_in, vcedit_state *state)
+static gboolean
+Ogg_Tag_Write_File (FILE *file_in, gchar *filename_in, vcedit_state *state)
 {
     gchar *filename_out;
     gint   file_mkstemp;
diff --git a/src/picture.c b/src/picture.c
index 5f6f4cd..5ba0cd8 100644
--- a/src/picture.c
+++ b/src/picture.c
@@ -58,7 +58,7 @@ void Tag_Area_Picture_Drag_Data (GtkWidget *widget, GdkDragContext *dc,
                                  gint x, gint y, GtkSelectionData *selection_data,
                                  guint info, guint t, gpointer data);
 void Picture_Selection_Changed_cb (GtkTreeSelection *selection, gpointer data);
-void Picture_Load_Filename (gchar *filename, gpointer user_data);
+static void Picture_Load_Filename (gchar *filename, gpointer user_data);
 
 void Picture_Add_Button_Clicked         (GObject *object);
 void Picture_Properties_Button_Clicked  (GObject *object);
@@ -66,9 +66,9 @@ void Picture_Save_Button_Clicked        (GObject *object);
 void Picture_Clear_Button_Clicked       (GObject *object);
 
 Picture_Format Picture_Format_From_Data (Picture *pic);
-const gchar   *Picture_Format_String    (Picture_Format format);
-const gchar   *Picture_Type_String      (Picture_Type type);
-gchar         *Picture_Info             (Picture *pic);
+static const gchar *Picture_Format_String (Picture_Format format);
+static const gchar *Picture_Type_String (Picture_Type type);
+static gchar *Picture_Info (Picture *pic);
 void           PictureEntry_Clear       (void);
 void           PictureEntry_Update      (Picture *pic, gboolean select_it);
 
@@ -76,8 +76,9 @@ Picture *Picture_Allocate (void);
 Picture *Picture_Copy_One (const Picture *pic);
 Picture *Picture_Copy     (const Picture *pic);
 void     Picture_Free     (Picture *pic);
-Picture *Picture_Load_File_Data (const gchar *filename);
-gboolean Picture_Save_File_Data (const Picture *pic, const gchar *filename);
+static Picture *Picture_Load_File_Data (const gchar *filename);
+static gboolean Picture_Save_File_Data (const Picture *pic,
+                                        const gchar *filename);
 
 gboolean Picture_Entry_View_Button_Pressed (GtkTreeView *treeview, GdkEventButton *event, gpointer data);
 gboolean Picture_Entry_View_Key_Pressed    (GtkTreeView *treeview, GdkEvent *event, gpointer data);
@@ -199,7 +200,8 @@ void Picture_Clear_Button_Clicked (GObject *object)
 /*
  * - 'filename' : path + filename of picture file
  */
-void Picture_Load_Filename (gchar *filename, gpointer user_data)
+static void
+Picture_Load_Filename (gchar *filename, gpointer user_data)
 {
     Picture *pic;
     gchar *filename_utf8;
@@ -791,7 +793,8 @@ const gchar *Picture_Mime_Type_String (Picture_Format format)
 }
 
 
-const gchar *Picture_Format_String (Picture_Format format)
+static const gchar *
+Picture_Format_String (Picture_Format format)
 {
     switch (format)
     {
@@ -804,7 +807,8 @@ const gchar *Picture_Format_String (Picture_Format format)
     }
 }
 
-const gchar *Picture_Type_String (Picture_Type type)
+static const gchar *
+Picture_Type_String (Picture_Type type)
 {
     switch (type)
     {
@@ -857,7 +861,8 @@ const gchar *Picture_Type_String (Picture_Type type)
     }
 }
 
-gchar *Picture_Info (Picture *pic)
+static gchar *
+Picture_Info (Picture *pic)
 {
     const gchar *format, *desc, *type;
     gchar *r, *size_str;
@@ -1090,9 +1095,11 @@ void Picture_Free (Picture *pic)
  * file system encoding, not UTF-8)
  */
 #ifdef WIN32
-Picture *Picture_Load_File_Data (const gchar *filename_utf8)
+static Picture *
+Picture_Load_File_Data (const gchar *filename_utf8)
 #else
-Picture *Picture_Load_File_Data (const gchar *filename)
+static Picture *
+Picture_Load_File_Data (const gchar *filename)
 #endif
 {
     Picture *pic;
@@ -1177,7 +1184,8 @@ Picture *Picture_Load_File_Data (const gchar *filename)
 /*
  * Save picture data to a file (jpeg, png)
  */
-gboolean Picture_Save_File_Data (const Picture *pic, const gchar *filename)
+static gboolean
+Picture_Save_File_Data (const Picture *pic, const gchar *filename)
 {
     gint fd;
 
diff --git a/src/prefs.c b/src/prefs.c
index e6ecf29..43f49ba 100644
--- a/src/prefs.c
+++ b/src/prefs.c
@@ -51,24 +51,25 @@
  * Prototypes *
  **************/
 /* Options window */
-void OptionsWindow_Quit          (void);
-void OptionsWindow_Apply_Button  (void);
-void OptionsWindow_Save_Button   (void);
-void OptionsWindow_Cancel_Button (void);
-gboolean OptionsWindow_Key_Press (GtkWidget *window, GdkEvent *event);
-static gboolean Check_Config     (void);
+static void OptionsWindow_Quit (void);
+static void OptionsWindow_Apply_Button (void);
+static void OptionsWindow_Save_Button (void);
+static void OptionsWindow_Cancel_Button (void);
+static gboolean OptionsWindow_Key_Press (GtkWidget *window, GdkEvent *event);
+static gboolean Check_Config (void);
 
-void Set_Default_Comment_Check_Button_Toggled  (void);
-void Number_Track_Formated_Toggled             (void);
-void Number_Track_Formated_Spin_Button_Changed (GtkWidget *Label, GtkWidget *SpinButton);
-void Change_Id3_Settings_Toggled               (void);
-void File_Writing_Id3v2_Write_Tag_Toggled      (void);
-void Use_Non_Standard_Id3_Reading_Character_Set_Toggled (void);
-void Scanner_Convert_Check_Button_Toggled_1    (GtkWidget *object_rec, GtkWidget *object_emi);
-void Cddb_Use_Proxy_Toggled                    (void);
+static void Set_Default_Comment_Check_Button_Toggled (void);
+static void Number_Track_Formatted_Toggled (void);
+static void Number_Track_Formatted_Spin_Button_Changed (GtkWidget *Label,
+                                                        GtkWidget *SpinButton);
+static void Change_Id3_Settings_Toggled (void);
+static void Use_Non_Standard_Id3_Reading_Character_Set_Toggled (void);
+static void Scanner_Convert_Check_Button_Toggled_1 (GtkWidget *object_rec,
+                                                    GtkWidget *object_emi);
+static void Cddb_Use_Proxy_Toggled (void);
 
-void DefaultPathToMp3_Combo_Add_String         (void);
-void CddbLocalPath_Combo_Add_String            (void);
+static void DefaultPathToMp3_Combo_Add_String (void);
+static void CddbLocalPath_Combo_Add_String (void);
 
 
 
@@ -430,9 +431,9 @@ void Open_OptionsWindow (void)
     LogMaxLinesSpinButton = gtk_spin_button_new_with_range(10.0,1500.0,10.0);
     gtk_box_pack_start(GTK_BOX(hbox),LogMaxLinesSpinButton,FALSE,FALSE,0);
     gtk_spin_button_set_value(GTK_SPIN_BUTTON(LogMaxLinesSpinButton),(gfloat)LOG_MAX_LINES);
-    //g_signal_connect(G_OBJECT(NumberTrackFormated),"toggled",G_CALLBACK(Number_Track_Formated_Toggled),NULL);
-    //g_signal_emit_by_name(G_OBJECT(NumberTrackFormated),"toggled");
-/*    gtk_tooltips_set_tip(Tips,GTK_BIN(FilePlayerCombo)->child,_("Enter the program used to "
+    /* g_signal_connect(G_OBJECT(NumberTrackFormated),"toggled",G_CALLBACK(Number_Track_Formatted_Toggled),NULL);
+     * g_signal_emit_by_name(G_OBJECT(NumberTrackFormated),"toggled");
+       gtk_tooltips_set_tip(Tips,GTK_BIN(FilePlayerCombo)->child,_("Enter the program used to "
         "play the files. Some arguments can be passed for the program (as 'xmms -p') before "
         "to receive files as other arguments."),NULL);
 */
@@ -603,12 +604,12 @@ void Open_OptionsWindow (void)
     NumberTrackFormatedSpinButton = gtk_spin_button_new_with_range(2.0,6.0,1.0);
     gtk_box_pack_start(GTK_BOX(hbox),NumberTrackFormatedSpinButton,FALSE,FALSE,0);
     gtk_spin_button_set_value(GTK_SPIN_BUTTON(NumberTrackFormatedSpinButton),(gfloat)NUMBER_TRACK_FORMATED_SPIN_BUTTON);
-    g_signal_connect(G_OBJECT(NumberTrackFormated),"toggled",G_CALLBACK(Number_Track_Formated_Toggled),NULL);
+    g_signal_connect(G_OBJECT(NumberTrackFormated),"toggled",G_CALLBACK(Number_Track_Formatted_Toggled),NULL);
     g_signal_emit_by_name(G_OBJECT(NumberTrackFormated),"toggled");
 
     Label = gtk_label_new(""); // Label to show the example
     gtk_box_pack_start(GTK_BOX(hbox),Label,FALSE,FALSE,4);
-    g_signal_connect_swapped(G_OBJECT(NumberTrackFormatedSpinButton),"changed",G_CALLBACK(Number_Track_Formated_Spin_Button_Changed),G_OBJECT(Label));
+    g_signal_connect_swapped(G_OBJECT(NumberTrackFormatedSpinButton),"changed",G_CALLBACK(Number_Track_Formatted_Spin_Button_Changed),G_OBJECT(Label));
     g_signal_emit_by_name(G_OBJECT(NumberTrackFormatedSpinButton),"changed",NULL);
 
     OggTagWriteXmmsComment = gtk_check_button_new_with_label(_("Ogg Vorbis Files: write also the comment in the XMMS format"));
@@ -1495,19 +1496,21 @@ void Open_OptionsWindow (void)
 }
 
 
-void Set_Default_Comment_Check_Button_Toggled (void)
+static void Set_Default_Comment_Check_Button_Toggled (void)
 {
     gtk_widget_set_sensitive(DefaultComment,gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(SetDefaultComment)));
 }
 
-void Number_Track_Formated_Toggled (void)
+void Number_Track_Formatted_Toggled (void)
 {
     gtk_widget_set_sensitive(NumberTrackFormatedSpinButton,gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(NumberTrackFormated)));
     // To update the example...
     g_signal_emit_by_name(G_OBJECT(NumberTrackFormatedSpinButton),"changed",NULL);
 }
 
-void Number_Track_Formated_Spin_Button_Changed (GtkWidget *Label, GtkWidget *SpinButton)
+static void
+Number_Track_Formatted_Spin_Button_Changed (GtkWidget *Label,
+                                            GtkWidget *SpinButton)
 {
     gchar *tmp;
     gint val;
@@ -1524,13 +1527,15 @@ void Number_Track_Formated_Spin_Button_Changed (GtkWidget *Label, GtkWidget *Spi
     g_free(tmp);
 }
 
-void Use_Non_Standard_Id3_Reading_Character_Set_Toggled (void)
+static void
+Use_Non_Standard_Id3_Reading_Character_Set_Toggled (void)
 {
     gtk_widget_set_sensitive(FileReadingId3v1v2CharacterSetCombo,
         gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(UseNonStandardId3ReadingCharacterSet)));
 }
 
-void Change_Id3_Settings_Toggled (void)
+static void
+Change_Id3_Settings_Toggled (void)
 {
     int active;
 
@@ -1630,7 +1635,8 @@ void Change_Id3_Settings_Toggled (void)
     gtk_widget_set_sensitive(FileWritingId3v1IconvOptionsIgnore, active);
 }
 
-void Cddb_Use_Proxy_Toggled (void)
+static void
+Cddb_Use_Proxy_Toggled (void)
 {
     gboolean active;
 
@@ -1642,7 +1648,8 @@ void Cddb_Use_Proxy_Toggled (void)
 }
 
 /* Callback from Open_OptionsWindow */
-gboolean OptionsWindow_Key_Press (GtkWidget *window, GdkEvent *event)
+static gboolean
+OptionsWindow_Key_Press (GtkWidget *window, GdkEvent *event)
 {
     GdkEventKey *kevent;
 
@@ -1681,7 +1688,8 @@ void OptionsWindow_Apply_Button(void)
 }
 
 /* Callback from Open_OptionsWindow */
-void OptionsWindow_Save_Button(void)
+static void
+OptionsWindow_Save_Button (void)
 {
     if (!Check_Config()) return;
 
@@ -1700,14 +1708,16 @@ void OptionsWindow_Save_Button(void)
 }
 
 /* Callback from Open_OptionsWindow */
-void OptionsWindow_Cancel_Button(void)
+static void
+OptionsWindow_Cancel_Button (void)
 {
     OptionsWindow_Quit();
     Statusbar_Message(_("Configuration unchanged"),TRUE);
 }
 
 /* Callback from Open_OptionsWindow */
-void OptionsWindow_Quit(void)
+static void
+OptionsWindow_Quit (void)
 {
     if (OptionsWindow)
     {
@@ -1954,16 +1964,18 @@ Check_Config (void)
  * Manage Check buttons into Scanner tab: conversion group
  * This reproduces "something" like the behaviour of radio buttons with check buttons
  */
-void Scanner_Convert_Check_Button_Toggled_1 (GtkWidget *object_rec, GtkWidget *object_emi)
+static void
+Scanner_Convert_Check_Button_Toggled_1 (GtkWidget *object_rec,
+                                        GtkWidget *object_emi)
 {
     if (!object_rec || !object_emi) return;
 
     if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(object_emi)) == TRUE)
         gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(object_rec),!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(object_emi)));
-
 }
 
-void DefaultPathToMp3_Combo_Add_String (void)
+static void
+DefaultPathToMp3_Combo_Add_String (void)
 {
     const gchar *path;
 
@@ -1971,7 +1983,8 @@ void DefaultPathToMp3_Combo_Add_String (void)
     Add_String_To_Combo_List(GTK_LIST_STORE(DefaultPathModel), path);
 }
 
-void CddbLocalPath_Combo_Add_String (void)
+static void
+CddbLocalPath_Combo_Add_String (void)
 {
     const gchar *path;
 
diff --git a/src/scan.c b/src/scan.c
index f4d7bdc..acdd6ce 100644
--- a/src/scan.c
+++ b/src/scan.c
@@ -225,18 +225,20 @@ gboolean ScannerWindow_Key_Press (GtkWidget *window, GdkEvent *event);
 void     Scan_Toggle_Legend_Button      (void);
 void     Scan_Toggle_Mask_Editor_Button (void);
 gchar   *Scan_Replace_String (gchar *string, gchar *last, gchar *new);
-void     Scan_Option_Button (void);
-gboolean Scan_Check_Scan_Tag_Mask    (GtkWidget *widget_to_show_hide, GtkEntry *widget_source);
+static void Scan_Option_Button (void);
+static gboolean Scan_Check_Scan_Tag_Mask (GtkWidget *widget_to_show_hide,
+                                          GtkEntry *widget_source);
 gboolean Scan_Check_Rename_File_Mask (GtkWidget *widget_to_show_hide, GtkEntry *widget_source);
-gboolean Scan_Check_Editor_Mask      (GtkWidget *widget_to_show_hide, GtkEntry *widget_source);
+static gboolean Scan_Check_Editor_Mask (GtkWidget *widget_to_show_hide,
+                                        GtkEntry *widget_source);
 
 gchar   *Scan_Generate_New_Filename_From_Mask (ET_File *ETFile, gchar *mask, gboolean no_dir_check_or_conversion);
-GList   *Scan_Generate_New_Tag_From_Mask      (ET_File *ETFile, gchar *mask);
+static GList *Scan_Generate_New_Tag_From_Mask (ET_File *ETFile, gchar *mask);
 void     Scan_Rename_File_Generate_Preview    (void);
 void     Scan_Rename_File_Prefix_Path         (void);
 void     Scan_Fill_Tag_Generate_Preview       (void);
-void     Scan_Free_File_Rename_List           (GList *list);
-void     Scan_Free_File_Fill_Tag_List         (GList *list);
+static void Scan_Free_File_Rename_List (GList *list);
+static void Scan_Free_File_Fill_Tag_List (GList *list);
 void     Scan_Rename_Directory_Generate_Preview (void);
 
 gchar  **Scan_Return_File_Tag_Field_From_Mask_Code (File_Tag *FileTag, gchar code);
@@ -244,26 +246,30 @@ void     Scan_Process_Fields_Functions (gchar **string);
 
 gint     Scan_Word_Is_Roman_Numeral (gchar *text);
 
-void Process_Fields_Check_Button_Toggled               (GtkWidget *object, GList *list);
-void Process_Fields_Convert_Check_Button_Toggled       (GtkWidget *object);
-void Process_Fields_First_Letters_Check_Button_Toggled (GtkWidget *object);
+static void Process_Fields_Check_Button_Toggled (GtkWidget *object,
+                                                 GList *list);
+static void Process_Fields_Convert_Check_Button_Toggled (GtkWidget *object);
+static void Process_Fields_First_Letters_Check_Button_Toggled (GtkWidget *object);
 void Select_Fields_Invert_Selection    (void);
 void Select_Fields_Select_Unselect_All (void);
 void Select_Fields_Set_Sensitive       (void);
 
-void Mask_Editor_List_Row_Selected    (GtkTreeSelection* selection, gpointer data);
-void Mask_Editor_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *rowIter);
-void Mask_Editor_List_New             (void);
-void Mask_Editor_List_Duplicate       (void);
-void Mask_Editor_List_Add             (void);
-void Mask_Editor_List_Remove          (void);
-void Mask_Editor_List_Move_Up         (void);
-void Mask_Editor_List_Move_Down       (void);
-void Mask_Editor_List_Save_Button     (void);
-void Mask_Editor_Entry_Changed        (void);
-gboolean Mask_Editor_List_Key_Press   (GtkWidget *widget, GdkEvent *event);
-
-void Mask_Editor_Clean_Up_Masks_List (void);
+static void Mask_Editor_List_Row_Selected (GtkTreeSelection* selection,
+                                           gpointer data);
+static void Mask_Editor_List_Set_Row_Visible (GtkTreeModel *treeModel,
+                                              GtkTreeIter *rowIter);
+static void Mask_Editor_List_New (void);
+static void Mask_Editor_List_Duplicate (void);
+static void Mask_Editor_List_Add (void);
+static void Mask_Editor_List_Remove (void);
+static void Mask_Editor_List_Move_Up (void);
+static void Mask_Editor_List_Move_Down (void);
+static void Mask_Editor_List_Save_Button (void);
+static void Mask_Editor_Entry_Changed (void);
+static gboolean Mask_Editor_List_Key_Press (GtkWidget *widget,
+                                            GdkEvent *event);
+
+static void Mask_Editor_Clean_Up_Masks_List (void);
 
 void Scanner_Option_Menu_Activate_Item (GtkWidget *widget, gpointer data);
 
@@ -271,6 +277,8 @@ int roman2int (const char *str);
 const char * int2roman (int num);
 char * int2roman_r (int num, char * str, size_t len);
 
+static void Scan_Convert_Character (gchar **string);
+static GList *Scan_Generate_New_Tag_From_Mask (ET_File *ETFile, gchar *mask);
 
 
 /*************
@@ -365,7 +373,8 @@ void Scan_Tag_With_Mask (ET_File *ETFile)
     g_free(filename_utf8);
 }
 
-GList *Scan_Generate_New_Tag_From_Mask (ET_File *ETFile, gchar *mask)
+static GList *
+Scan_Generate_New_Tag_From_Mask (ET_File *ETFile, gchar *mask)
 {
     GList *fill_tag_list = NULL;
     gchar *filename_utf8;
@@ -610,7 +619,8 @@ void Scan_Fill_Tag_Generate_Preview (void)
     g_free(preview_text);
 }
 
-void Scan_Free_File_Fill_Tag_List (GList *list)
+static void
+Scan_Free_File_Fill_Tag_List (GList *list)
 {
     // Free the list
     list = g_list_first(list);
@@ -968,7 +978,8 @@ void Scan_Rename_File_Generate_Preview (void)
 }
 
 
-void Scan_Free_File_Rename_List (GList *list)
+static void
+Scan_Free_File_Rename_List (GList *list)
 {
     // Free the list
     list = g_list_last(list);
@@ -1762,7 +1773,8 @@ void Scan_Convert_Space_Into_Undescore (gchar *string)
  * Replace something with something else ;)
  * Currently this only works with one character for each
  */
-void Scan_Convert_Character (gchar **string)
+static void
+Scan_Convert_Character (gchar **string)
 {
     gchar *from = gtk_editable_get_chars(GTK_EDITABLE(ProcessFieldsConvertFrom),0,-1 );
     gchar *to   = gtk_editable_get_chars(GTK_EDITABLE(ProcessFieldsConvertTo),0,-1 );
@@ -3192,7 +3204,8 @@ void ScannerWindow_Apply_Changes (void)
 
 
 /* Callback from Option button */
-void Scan_Option_Button (void)
+static void
+Scan_Option_Button (void)
 {
     Open_OptionsWindow();
     gtk_notebook_set_current_page(GTK_NOTEBOOK(OptionsNoteBook), OptionsNoteBook_Scanner_Page_Num);
@@ -3331,7 +3344,9 @@ gboolean Scan_Check_Rename_File_Mask (GtkWidget *widget_to_show_hide, GtkEntry *
 /*
  * Check if the selected mask in the Mask Editor is valid, else display the mask status icon.
  */
-gboolean Scan_Check_Editor_Mask (GtkWidget *widget_to_show_hide, GtkEntry *widget_source)
+static gboolean
+Scan_Check_Editor_Mask (GtkWidget *widget_to_show_hide,
+                        GtkEntry *widget_source)
 {
     /* Select and get result of check scanner */
     if (gtk_combo_box_get_active(GTK_COMBO_BOX(ScannerOptionCombo)) == SCANNER_FILL_TAG)
@@ -3390,7 +3405,8 @@ void Scan_Toggle_Mask_Editor_Button (void)
 /*
  * Manage/Toggle check buttons into 'Process Fields' frame
  */
-void Process_Fields_Check_Button_Toggled (GtkWidget *object, GList *list)
+static void
+Process_Fields_Check_Button_Toggled (GtkWidget *object, GList *list)
 {
     gint i = 0;
 
@@ -3408,13 +3424,15 @@ void Process_Fields_Check_Button_Toggled (GtkWidget *object, GList *list)
 }
 
 
-void Process_Fields_Convert_Check_Button_Toggled (GtkWidget *object)
+static void
+Process_Fields_Convert_Check_Button_Toggled (GtkWidget *object)
 {
     gtk_widget_set_sensitive(GTK_WIDGET(ProcessFieldsConvertTo),gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(object)));
     gtk_widget_set_sensitive(GTK_WIDGET(ProcessFieldsConvertFrom),gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(object)));
 }
 
-void Process_Fields_First_Letters_Check_Button_Toggled (GtkWidget *object)
+static void
+Process_Fields_First_Letters_Check_Button_Toggled (GtkWidget *object)
 {
     gtk_widget_set_sensitive(GTK_WIDGET(ProcessFieldsDetectRomanNumerals),gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(object)));
 }
@@ -3532,7 +3550,8 @@ void Select_Fields_Set_Sensitive (void)
  * Callback from the mask edit list
  * Previously known as Mask_Editor_List_Select_Row
  */
-void Mask_Editor_List_Row_Selected (GtkTreeSelection* selection, gpointer data)
+static void
+Mask_Editor_List_Row_Selected (GtkTreeSelection* selection, gpointer data)
 {
     GList *selectedRows;
     gchar *text = NULL;
@@ -3584,7 +3603,8 @@ void Mask_Editor_List_Row_Selected (GtkTreeSelection* selection, gpointer data)
 /*
  * Add a new mask to the list
  */
-void Mask_Editor_List_New (void)
+static void
+Mask_Editor_List_New (void)
 {
     gchar *text = _("New_mask");
     GtkTreeIter iter;
@@ -3606,7 +3626,8 @@ void Mask_Editor_List_New (void)
 /*
  * Duplicate a mask on the list
  */
-void Mask_Editor_List_Duplicate (void)
+static void
+Mask_Editor_List_Duplicate (void)
 {
     gchar *text = NULL;
     GList *selectedRows;
@@ -3671,7 +3692,8 @@ void Mask_Editor_List_Duplicate (void)
     g_list_free(toInsert);
 }
 
-void Mask_Editor_List_Add (void)
+static void
+Mask_Editor_List_Add (void)
 {
     gint i = 0;
     GtkTreeIter iter;
@@ -3718,7 +3740,8 @@ void Mask_Editor_List_Add (void)
 /*
  * Remove the selected rows from the mask editor list
  */
-void Mask_Editor_List_Remove (void)
+static void
+Mask_Editor_List_Remove (void)
 {
     GtkTreeSelection *selection;
     GtkTreeIter iter;
@@ -3758,7 +3781,8 @@ void Mask_Editor_List_Remove (void)
 /*
  * Move all selected rows up one place in the mask list
  */
-void Mask_Editor_List_Move_Up (void)
+static void
+Mask_Editor_List_Move_Up (void)
 {
     GtkTreeSelection *selection;
     GList *selectedRows;
@@ -3811,7 +3835,8 @@ void Mask_Editor_List_Move_Up (void)
 /*
  * Move all selected rows down one place in the mask list
  */
-void Mask_Editor_List_Move_Down (void)
+static void
+Mask_Editor_List_Move_Down (void)
 {
     GtkTreeSelection *selection;
     GList *selectedRows;
@@ -3861,7 +3886,8 @@ void Mask_Editor_List_Move_Down (void)
 /*
  * Set a row visible in the mask editor list (by scrolling the list)
  */
-void Mask_Editor_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *rowIter)
+static void
+Mask_Editor_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *rowIter)
 {
     /*
      * TODO: Make this only scroll to the row if it is not visible
@@ -3880,7 +3906,8 @@ void Mask_Editor_List_Set_Row_Visible (GtkTreeModel *treeModel, GtkTreeIter *row
 /*
  * Save the currently displayed mask list in the mask editor
  */
-void Mask_Editor_List_Save_Button (void)
+static void
+Mask_Editor_List_Save_Button (void)
 {
     Mask_Editor_Clean_Up_Masks_List();
 
@@ -3896,7 +3923,8 @@ void Mask_Editor_List_Save_Button (void)
 /*
  * Clean up the currently displayed masks lists, ready for saving
  */
-void Mask_Editor_Clean_Up_Masks_List (void)
+static void
+Mask_Editor_Clean_Up_Masks_List (void)
 {
     gchar *text = NULL;
     gchar *text1 = NULL;
@@ -3962,7 +3990,8 @@ void Mask_Editor_Clean_Up_Masks_List (void)
 /*
  * Update the Mask List with the new value of the entry box
  */
-void Mask_Editor_Entry_Changed (void)
+static void
+Mask_Editor_Entry_Changed (void)
 {
     GtkTreeSelection *selection;
     GtkTreePath *firstSelected;
@@ -3999,7 +4028,8 @@ void Mask_Editor_Entry_Changed (void)
 /*
  * Actions when the a key is pressed into the masks editor clist
  */
-gboolean Mask_Editor_List_Key_Press (GtkWidget *widget, GdkEvent *event)
+static gboolean
+Mask_Editor_List_Key_Press (GtkWidget *widget, GdkEvent *event)
 {
     if (event && event->type == GDK_KEY_PRESS) {
         GdkEventKey *kevent = (GdkEventKey *)event;
diff --git a/src/scan.h b/src/scan.h
index 456704d..79bafea 100644
--- a/src/scan.h
+++ b/src/scan.h
@@ -55,7 +55,6 @@ void   Scan_Rename_File_With_Mask           (ET_File *ETFile);
 void   Scan_Process_Fields                  (ET_File *ETFile);
 void   Scan_Select_Mode_And_Run_Scanner     (ET_File *ETFile);
 gchar *Scan_Generate_New_Filename_From_Mask       (ET_File *ETFile, gchar *mask, gboolean no_dir_check_or_conversion);
-GList *Scan_Generate_New_Tag_From_Mask            (ET_File *ETFile, gchar *mask);
 gchar *Scan_Generate_New_Directory_Name_From_Mask (ET_File *ETFile, gchar *mask, gboolean no_dir_check_or_conversion);
 void   Scan_Rename_File_Generate_Preview      (void);
 void   Scan_Fill_Tag_Generate_Preview         (void);
@@ -78,7 +77,6 @@ void Scan_Process_Fields_Keep_One_Space          (gchar *string);
 void Scan_Convert_Underscore_Into_Space (gchar *string);
 void Scan_Convert_P20_Into_Space        (gchar *string);
 void Scan_Convert_Space_Into_Undescore  (gchar *string);
-void Scan_Convert_Character             (gchar **string);
 void Scan_Remove_Spaces                 (gchar *string);
 
 void Init_ScannerWindow (void);
diff --git a/src/vcedit.c b/src/vcedit.c
index 0caf957..cd78f59 100644
--- a/src/vcedit.c
+++ b/src/vcedit.c
@@ -26,6 +26,10 @@
 
 #define CHUNKSIZE 4096
 
+static int vcedit_open_callbacks(vcedit_state *state, void *in,
+                                 vcedit_read_func read_func,
+                                 vcedit_write_func write_func);
+
 vcedit_state *vcedit_new_state(void)
 {
     vcedit_state *state = malloc(sizeof(vcedit_state));
@@ -252,8 +256,9 @@ int vcedit_open(vcedit_state *state, FILE *in)
             (vcedit_read_func)fread, (vcedit_write_func)fwrite);
 }
 
-int vcedit_open_callbacks(vcedit_state *state, void *in,
-        vcedit_read_func read_func, vcedit_write_func write_func)
+static int
+vcedit_open_callbacks(vcedit_state *state, void *in,
+                      vcedit_read_func read_func, vcedit_write_func write_func)
 {
 
     char *buffer;
diff --git a/src/vcedit.h b/src/vcedit.h
index 5bc39dc..3a9e5f9 100644
--- a/src/vcedit.h
+++ b/src/vcedit.h
@@ -62,8 +62,6 @@ extern vcedit_state    *vcedit_new_state(void);
 extern void             vcedit_clear(vcedit_state *state);
 extern vorbis_comment  *vcedit_comments(vcedit_state *state);
 extern int              vcedit_open(vcedit_state *state, FILE *in);
-extern int              vcedit_open_callbacks(vcedit_state *state, void *in,
-                        vcedit_read_func read_func, vcedit_write_func write_func);
 extern int              vcedit_write(vcedit_state *state, void *out);
 extern char            *vcedit_error(vcedit_state *state);
 



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