how to disconnect a signal handler in windowManager except using disconnect
- From: zhh zhou <zhouzhh217 gmail com>
- To: gnome-shell-list gnome org
- Subject: how to disconnect a signal handler in windowManager except using disconnect
- Date: Fri, 21 Feb 2014 20:56:25 +0800
Hello, I want to write a gnome-shell extension to add some eye candy effects while minimizing, maximizing and closing a window for current window manager. So I have to disconnect the default signal handler, such as minimize signal handler. However, the wm object only has disconnect function which needs a signal handler ID as parameter and the ID is not saved in windowManager.js. So if I want to disconnect it, I have to modify the windowManager.js like this:
this._minHandlerID = this._shellwm.connect('minimize', Lang.bind(this, this._minimizeWindow));
Can anyone have a idea that does not need to modify windowManager.js ? Thanks very much~
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]