summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index b0ff4c5..cdc1599 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -130,6 +130,9 @@ zenity_tree_handle_stdin (GIOChannel *channel,
while (gtk_events_pending ())
gtk_main_iteration ();
+ // TODO: Find a better way to avoid 100% cpu utilization
+ g_usleep(10000);
+
} while (status == G_IO_STATUS_AGAIN);
if (status != G_IO_STATUS_NORMAL) {