summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorPhilippe Gauthier <philippe.gauthier@deuxpi.ca>2009-10-30 14:51:16 -0400
committerArx Cruz <arxcruz@gmail.com>2010-05-27 20:49:45 -0300
commit1570a2bbf07627cb5f8d9828a95db67b7d00634c (patch)
tree9849583754be635c2e12dc1f16f48213b847a8e7 /src/tree.c
parentUpdate Chinese (Simplified) translations. (diff)
downloadzenity-1570a2bbf07627cb5f8d9828a95db67b7d00634c.tar.gz
zenity-1570a2bbf07627cb5f8d9828a95db67b7d00634c.tar.bz2
zenity-1570a2bbf07627cb5f8d9828a95db67b7d00634c.zip
Use g_timeout_add_seconds instead g_timeout_add
The calls to g_timeout_add are replaced with g_timeout_add_seconds to reduce the number or program wake ups. See the GNOME Goal description: http://live.gnome.org/GnomeGoals/UseTimeoutAddSeconds
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 63287e36..3861e863 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -499,7 +499,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
zenity_util_show_dialog (dialog);
if(data->timeout_delay > 0) {
- g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL);
}
gtk_main ();
bgstack15