summaryrefslogtreecommitdiffstats
path: root/eglib/gmain.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 15:36:11 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-08-16 15:36:11 +0000
commit3863eba35ca65bb4ea17d3763ae27afafdf0f4c2 (patch)
tree7f006254bb86e66fcb055c60461bf89df1855092 /eglib/gmain.c
parent60bef734ae800110dfdba8d88c33dc023498b18b (diff)
Implement some missing functions
Diffstat (limited to 'eglib/gmain.c')
-rw-r--r--eglib/gmain.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/eglib/gmain.c b/eglib/gmain.c
index 027fd60c..ed708fc2 100644
--- a/eglib/gmain.c
+++ b/eglib/gmain.c
@@ -561,6 +561,11 @@ guint g_timeout_add(guint interval, GSourceFunc function, gpointer data)
return t->id;
}
+guint g_idle_add(GSourceFunc function, gpointer data)
+{
+ return g_timeout_add(1, function, data);
+}
+
/* GError */
GError* g_error_new_literal(GQuark domain, gint code, const gchar *message)