mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-15 23:07:16 +01:00
Make the default priority for idle sources G_PRIORITY_DEFAULT_IDLE as
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)
This commit is contained in:
parent
f1d488de09
commit
b51c0d2f70
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
|
||||||
|
|
||||||
* tests/casemap.txt:
|
* tests/casemap.txt:
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
|
||||||
|
|
||||||
* tests/casemap.txt:
|
* tests/casemap.txt:
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
|
||||||
|
|
||||||
* tests/casemap.txt:
|
* tests/casemap.txt:
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
|
||||||
|
|
||||||
* tests/casemap.txt:
|
* tests/casemap.txt:
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
|
||||||
|
|
||||||
* tests/casemap.txt:
|
* tests/casemap.txt:
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
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>
|
2003-08-06 Noah Levitt <nlevitt@columbia.edu>
|
||||||
|
|
||||||
* tests/casemap.txt:
|
* tests/casemap.txt:
|
||||||
|
13
glib/gmain.c
13
glib/gmain.c
@ -3250,14 +3250,21 @@ g_idle_dispatch (GSource *source,
|
|||||||
*
|
*
|
||||||
* The source will not initially be associated with any #GMainContext
|
* The source will not initially be associated with any #GMainContext
|
||||||
* and must be added to one with g_source_attach() before it will be
|
* 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
|
* Return value: the newly-created idle source
|
||||||
**/
|
**/
|
||||||
GSource *
|
GSource *
|
||||||
g_idle_source_new (void)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3287,7 +3294,7 @@ g_idle_add_full (gint priority,
|
|||||||
|
|
||||||
source = g_idle_source_new ();
|
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_priority (source, priority);
|
||||||
|
|
||||||
g_source_set_callback (source, function, data, notify);
|
g_source_set_callback (source, function, data, notify);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user