[gnome-shell-extensions/wip/3-8-backports: 5/7] xrandr-indicator: stop processing RandR events when disabled
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions/wip/3-8-backports: 5/7] xrandr-indicator: stop processing RandR events when disabled
- Date: Tue, 10 Sep 2013 15:00:46 +0000 (UTC)
commit 087a9208cf0d64206ad03f8e6e0e51f8905e4b0b
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Thu Jun 6 23:32:53 2013 +0200
xrandr-indicator: stop processing RandR events when disabled
It's hard to tell people to disconnect their signals, when we
are the first to forget it...
extensions/xrandr-indicator/extension.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/extensions/xrandr-indicator/extension.js b/extensions/xrandr-indicator/extension.js
index 7909dc7..6c75dab 100644
--- a/extensions/xrandr-indicator/extension.js
+++ b/extensions/xrandr-indicator/extension.js
@@ -64,6 +64,13 @@ const Indicator = new Lang.Class({
this._screen.connect('changed', Lang.bind(this, this._randrEvent));
},
+ destroy: function() [
+ if (this._screen)
+ this._screen.run_dispose();
+
+ this.parent();
+ },
+
_randrEvent: function() {
this.menu.removeAll();
this._createMenu();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]