[easytag/wip/application-window: 64/72] Fix return type of init idle handler



commit 9cd5341b7d228e65c2dd5e1c39119231804d248e
Author: David King <amigadave amigadave com>
Date:   Sat Jul 19 21:09:57 2014 +0100

    Fix return type of init idle handler
    
    The return type of a GSourceFunc is a gboolean.

 src/easytag.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index d1dfcb0..d0be8c3 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -89,7 +89,7 @@ static gint Save_Selected_Files_With_Answer (gboolean force_saving_files);
 static gint Save_List_Of_Files (GList *etfilelist,
                                 gboolean force_saving_files);
 
-static void Init_Load_Default_Dir (void);
+static gboolean Init_Load_Default_Dir (void);
 static void EasyTAG_Exit (void);
 static gboolean et_rename_file (const char *old_filepath,
                                 const char *new_filepath, GError **error);
@@ -1545,7 +1545,7 @@ void Action_Main_Stop_Button_Pressed (void)
  * Load the default directory when the user interface is completely displayed
  * to avoid bad visualization effect at startup.
  */
-static void
+static gboolean
 Init_Load_Default_Dir (void)
 {
     //ETCore->ETFileList = NULL;
@@ -1573,7 +1573,7 @@ Init_Load_Default_Dir (void)
     /* Set sensitivity of buttons if the default directory is invalid. */
     et_application_window_update_actions (ET_APPLICATION_WINDOW (MainWindow));
 
-    g_source_remove(idle_handler_id);
+    return G_SOURCE_REMOVE;
 }
 
 


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