[easytag] Annotate GSource with g_source_set_name_by_id()



commit 947f349337cf8f4aca9e3754825d77091c3d97c1
Author: David King <amigadave amigadave com>
Date:   Tue Oct 22 22:54:32 2013 +0100

    Annotate GSource with g_source_set_name_by_id()
    
    http://www.hadess.net/2013/10/reducing-wake-ups-2013-edition.html

 src/bar.c     |    1 +
 src/easytag.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/bar.c b/src/bar.c
index d1e2446..a377c89 100644
--- a/src/bar.c
+++ b/src/bar.c
@@ -544,6 +544,7 @@ Statusbar_Start_Timer (void)
     StatusbarTimerId = g_timeout_add_seconds (4,
                                               (GSourceFunc)Statusbar_Stop_Timer,
                                               NULL);
+    g_source_set_name_by_id (StatusbarTimerId, "Statusbar stop timer");
 }
 
 static void
diff --git a/src/easytag.c b/src/easytag.c
index a2c2852..bb68ddd 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -341,6 +341,7 @@ common_init (GApplication *application)
     /* Load the default dir when the UI is created and displayed
      * to the screen and open also the scanner window */
     idle_handler_id = g_idle_add((GSourceFunc)Init_Load_Default_Dir,NULL);
+    g_source_set_name_by_id (idle_handler_id, "Init idle function");
 
     gtk_main ();
 }


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