[geany/geany-plugins] 0801a3: Replace g_timeout_add with g_idle_add

Pavel Roschin git-noreply at xxxxx
Wed Jun 24 18:51:05 UTC 2015


Branch:      refs/heads/master
Author:      Pavel Roschin <roshin at scriptumplus.ru>
Committer:   Pavel Roschin <roshin at scriptumplus.ru>
Date:        Wed, 24 Jun 2015 18:51:05 UTC
Commit:      0801a3c56a8f9fcb0fd16ee5a26e03d8abb6bbec
             https://github.com/geany/geany-plugins/commit/0801a3c56a8f9fcb0fd16ee5a26e03d8abb6bbec

Log Message:
-----------
Replace g_timeout_add with g_idle_add

g_idle_add does not make a big performance impact but improves usability
by removing annoying delay


Modified Paths:
--------------
    automark/src/automark.c

Modified: automark/src/automark.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -163,7 +163,7 @@ on_editor_notify(
 		/* if events are too intensive - remove old callback */
 		if (source_id)
 			g_source_remove(source_id);
-		source_id = g_timeout_add(150, automark, editor->document);
+		source_id = g_idle_add(automark, editor->document);
 	}
 	return FALSE;
 }



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list