diff options
| author | fffw | 2015-02-10 20:38:24 +0800 |
|---|---|---|
| committer | fffw | 2015-02-10 20:38:24 +0800 |
| commit | 8dd56193ae0b65e691d3d286fe6c720f7f27b57c (patch) | |
| tree | 36c6e0d0b5aab14f33c88ad3eac5b1c77d8c486d | |
| parent | c1f995e4e071f2db1d994dc2679e2d907ef8d3d1 (diff) | |
| download | systray-8dd56193ae0b65e691d3d286fe6c720f7f27b57c.tar.bz2 | |
add comment for idle_add functions
| -rw-r--r-- | systray_linux.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |
