alternative-status-menu: fix criticals when opening the menu

After enabling, the user menu was keeping a reference to a
destroyed actor, and then was updating it from signals. Updating
this (a StEntry) caused g_criticals because of a NULL ClutterText.
Instead we can null out the actor entirely, which will stop
the signal handler from doing any harm.
This commit is contained in:
Giovanni Campagna
2011-11-24 16:59:11 +01:00
parent d71be4b73d
commit ae41fceba9

View File

@@ -95,6 +95,9 @@ function createSubMenu() {
this._session.ShutdownRemote();
}));
this.menu.addMenuItem(item);
// clear out this to avoid criticals
this._suspendOrPowerOffItem = null;
}
// Put your extension initialization code here