summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@src.gnome.org>2011-07-08 11:57:18 -0300
committerArx Cruz <arxcruz@src.gnome.org>2011-07-08 11:57:18 -0300
commit9ab8380ff217cf6162ef4be7a473bb7a34b4d104 (patch)
tree87e67308082066281a590b23f0e055c20594f32e /src
parentUpdated Spanish translation (diff)
downloadzenity-9ab8380ff217cf6162ef4be7a473bb7a34b4d104.tar.gz
zenity-9ab8380ff217cf6162ef4be7a473bb7a34b4d104.tar.bz2
zenity-9ab8380ff217cf6162ef4be7a473bb7a34b4d104.zip
Fix for bug #540489 and #501001 both related to 100% use of cpu.
Diffstat (limited to 'src')
-rw-r--r--src/tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index b0ff4c5f..cdc1599c 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) {
bgstack15