summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glib/gmain.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/glib/gmain.c b/glib/gmain.c
index 2417680e4..60554f5df 100644
--- 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)