Fix GObject#dispose() usage.

This commit is contained in:
Daiki Ueno
2010-06-12 16:59:08 +09:00
parent acdcd8855d
commit e6b4f50c84
8 changed files with 81 additions and 46 deletions

View File

@ -180,10 +180,9 @@ on_changed (EekLayout *layout, gpointer user_data)
actor = clutter_container_find_child_by_name (CLUTTER_CONTAINER(stage),
"keyboard");
/* FIXME: currently keyboard must be finalized before actor. */
g_object_unref (eek_keyboard);
if (actor)
clutter_container_remove_actor (CLUTTER_CONTAINER(stage), actor);
g_object_unref (eek_keyboard);
eek_keyboard = create_keyboard (stage, layout, width, height);
}