+Thu Aug 7 14:15:44 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_idle_source_new): Make the default priority
+ for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
+ expect and document that. (#114461, reported by Andy Wingo)
+
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
* tests/casemap.txt:
+Thu Aug 7 14:15:44 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_idle_source_new): Make the default priority
+ for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
+ expect and document that. (#114461, reported by Andy Wingo)
+
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
* tests/casemap.txt:
+Thu Aug 7 14:15:44 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_idle_source_new): Make the default priority
+ for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
+ expect and document that. (#114461, reported by Andy Wingo)
+
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
* tests/casemap.txt:
+Thu Aug 7 14:15:44 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_idle_source_new): Make the default priority
+ for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
+ expect and document that. (#114461, reported by Andy Wingo)
+
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
* tests/casemap.txt:
+Thu Aug 7 14:15:44 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_idle_source_new): Make the default priority
+ for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
+ expect and document that. (#114461, reported by Andy Wingo)
+
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
* tests/casemap.txt:
+Thu Aug 7 14:15:44 2003 Owen Taylor <otaylor@redhat.com>
+
+ * glib/gmain.c (g_idle_source_new): Make the default priority
+ for idle sources G_PRIORITY_DEFAULT_IDLE as anybody would
+ expect and document that. (#114461, reported by Andy Wingo)
+
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
* tests/casemap.txt:
*
* The source will not initially be associated with any #GMainContext
* and must be added to one with g_source_attach() before it will be
- * executed.
+ * executed. Note that the default priority for idle sources is
+ * %G_PRIORITY_DEFAULT_IDLE, as compared to other sources which
+ * have a default priority of %G_PRIORITY_DEFAULT.
*
* Return value: the newly-created idle source
**/
GSource *
g_idle_source_new (void)
{
- return g_source_new (&g_idle_funcs, sizeof (GSource));
+ GSource *source;
+
+ source = g_source_new (&g_idle_funcs, sizeof (GSource));
+ g_source_set_priority (source, G_PRIORITY_DEFAULT_IDLE);
+
+ return source;
}
/**
source = g_idle_source_new ();
- if (priority != G_PRIORITY_DEFAULT)
+ if (priority != G_PRIORITY_DEFAULT_IDLE)
g_source_set_priority (source, priority);
g_source_set_callback (source, function, data, notify);