[gnome-shell-extensions] alternative-status-menu: fix criticals when opening the menu
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] alternative-status-menu: fix criticals when opening the menu
- Date: Thu, 24 Nov 2011 16:03:59 +0000 (UTC)
commit ae41fceba9ae06b60071e9e4a2be7fed2103479a
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Nov 24 16:59:11 2011 +0100
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.
extensions/alternative-status-menu/extension.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/extensions/alternative-status-menu/extension.js b/extensions/alternative-status-menu/extension.js
index 68523c2..c0b3646 100644
--- a/extensions/alternative-status-menu/extension.js
+++ b/extensions/alternative-status-menu/extension.js
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]