From 8dd56193ae0b65e691d3d286fe6c720f7f27b57c Mon Sep 17 00:00:00 2001 From: fffw Date: Tue, 10 Feb 2015 20:38:24 +0800 Subject: add comment for idle_add functions --- systray_linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/systray_linux.c b/systray_linux.c index 7af3f06..c0a3d01 100644 --- a/systray_linux.c +++ b/systray_linux.c @@ -36,6 +36,7 @@ int nativeLoop(void) { return; } +// runs in main thread, should always return FALSE to prevent gtk to execute it again gboolean do_set_icon(gpointer data) { GBytes* bytes = (GBytes*)data; char* temp_file_name = malloc(PATH_MAX); @@ -60,6 +61,7 @@ gboolean do_set_icon(gpointer data) { return FALSE; } +// runs in main thread, should always return FALSE to prevent gtk to execute it again gboolean do_add_or_update_menu_item(gpointer data) { MenuItemInfo *mii = (MenuItemInfo*)data; GList* it; @@ -100,6 +102,7 @@ gboolean do_add_or_update_menu_item(gpointer data) { return FALSE; } +// runs in main thread, should always return FALSE to prevent gtk to execute it again gboolean do_quit(gpointer data) { int i; for (i = 0; i < INT_MAX; ++i) { -- cgit v1.2.3