[gnome-shell] AppSwitcher: Remove a lost timeout on destroy
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] AppSwitcher: Remove a lost timeout on destroy
- Date: Tue, 4 Dec 2012 09:11:26 +0000 (UTC)
commit 5faeaa2028c7328413ffa6a60bf8479130b87dcb
Author: Rui Matos <tiagomatos gmail com>
Date: Sat Dec 1 20:40:13 2012 +0100
AppSwitcher: Remove a lost timeout on destroy
Doesn't look harmful but there's no point in running this code after
we're destroyed.
https://bugzilla.gnome.org/show_bug.cgi?id=689528
js/ui/altTab.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/altTab.js b/js/ui/altTab.js
index 74a03a0..b587219 100644
--- a/js/ui/altTab.js
+++ b/js/ui/altTab.js
@@ -417,6 +417,13 @@ const AppSwitcher = new Lang.Class({
this._iconSize = 0;
this._altTabPopup = altTabPopup;
this._mouseTimeOutId = 0;
+
+ this.actor.connect('destroy', Lang.bind(this, this._onDestroy));
+ },
+
+ _onDestroy: function() {
+ if (this._mouseTimeOutId != 0)
+ Mainloop.source_remove(this._mouseTimeOutId);
},
_getPreferredHeight: function (actor, forWidth, alloc) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]