projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d981d79
)
gmain: child sources must always have same priority as parent
author
Dan Winship
<danw@gnome.org>
Wed, 11 Apr 2012 14:22:45 +0000
(10:22 -0400)
committer
Dan Winship
<danw@gnome.org>
Tue, 26 Jun 2012 12:40:31 +0000
(08:40 -0400)
A child source does not have a priority of its own; it must have the
same priority as its parent. Enforce this in
g_source_set_priority_unlocked().
https://bugzilla.gnome.org/show_bug.cgi?id=619329
glib/gmain.c
patch
|
blob
|
history
diff --git
a/glib/gmain.c
b/glib/gmain.c
index
2417680
..
60554f5
100644
(file)
--- a/
glib/gmain.c
+++ b/
glib/gmain.c
@@
-1367,6
+1367,9
@@
g_source_set_priority_unlocked (GSource *source,
{
GSList *tmp_list;
+ g_return_if_fail (source->priv->parent_source == NULL ||
+ source->priv->parent_source->priority == priority);
+
source->priority = priority;
if (context)