mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
Bug 1075 - Difficult to bind clutter_stage_new
* clutter/clutter-stage.c (clutter_stage_dispose): Unrealize the stage before removing the update idle handler. Otherwise unrealizing causes another redraw to be queued and if the stage object remains alive it will cause an assert and abort.
This commit is contained in:
parent
6974c31ad5
commit
1e84798546
@ -1,3 +1,12 @@
|
|||||||
|
2008-07-31 Neil Roberts <neil@o-hand.com>
|
||||||
|
|
||||||
|
Bug 1075 - Difficult to bind clutter_stage_new
|
||||||
|
|
||||||
|
* clutter/clutter-stage.c (clutter_stage_dispose): Unrealize the
|
||||||
|
stage before removing the update idle handler. Otherwise
|
||||||
|
unrealizing causes another redraw to be queued and if the stage
|
||||||
|
object remains alive it will cause an assert and abort.
|
||||||
|
|
||||||
2008-07-30 Neil Roberts <neil@o-hand.com>
|
2008-07-30 Neil Roberts <neil@o-hand.com>
|
||||||
|
|
||||||
* clutter/clutter-stage.c (clutter_stage_class_init): Added the
|
* clutter/clutter-stage.c (clutter_stage_class_init): Added the
|
||||||
|
@ -455,14 +455,14 @@ clutter_stage_dispose (GObject *object)
|
|||||||
ClutterStagePrivate *priv = stage->priv;
|
ClutterStagePrivate *priv = stage->priv;
|
||||||
ClutterStageManager *stage_manager = clutter_stage_manager_get_default ();
|
ClutterStageManager *stage_manager = clutter_stage_manager_get_default ();
|
||||||
|
|
||||||
|
clutter_actor_unrealize (CLUTTER_ACTOR (object));
|
||||||
|
|
||||||
if (priv->update_idle)
|
if (priv->update_idle)
|
||||||
{
|
{
|
||||||
g_source_remove (priv->update_idle);
|
g_source_remove (priv->update_idle);
|
||||||
priv->update_idle = 0;
|
priv->update_idle = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
clutter_actor_unrealize (CLUTTER_ACTOR (object));
|
|
||||||
|
|
||||||
_clutter_stage_manager_remove_stage (stage_manager, stage);
|
_clutter_stage_manager_remove_stage (stage_manager, stage);
|
||||||
|
|
||||||
if (priv->impl)
|
if (priv->impl)
|
||||||
|
Loading…
Reference in New Issue
Block a user