[gjs: 2/2] Merge branch 'block-handler' into 'master'
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 2/2] Merge branch 'block-handler' into 'master'
- Date: Fri, 20 Sep 2019 01:11:20 +0000 (UTC)
commit b0ac0224204d5db39036ee9b1c6bf9ee9f05d242
Merge: 5872749d c7d01ffc
Author: Philip Chimento <philip chimento gmail com>
Date: Fri Sep 20 01:10:56 2019 +0000
Merge branch 'block-handler' into 'master'
GObject: Add convenience wrapper for signal_handler_(un)block()
See merge request GNOME/gjs!326
modules/overrides/GObject.js | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --cc modules/overrides/GObject.js
index 658d8fe6,86b7fae2..20f78d10
--- a/modules/overrides/GObject.js
+++ b/modules/overrides/GObject.js
@@@ -501,12 -467,18 +501,18 @@@ function _init()
GObject.AccumulatorType = {
NONE: 0,
FIRST_WINS: 1,
- TRUE_HANDLED: 2
+ TRUE_HANDLED: 2,
};
- GObject.Object.prototype.disconnect = function(id) {
+ GObject.Object.prototype.disconnect = function (id) {
return GObject.signal_handler_disconnect(this, id);
};
+ GObject.Object.prototype.block_signal_handler = function(id) {
+ return GObject.signal_handler_block(this, id);
+ };
+ GObject.Object.prototype.unblock_signal_handler = function(id) {
+ return GObject.signal_handler_unblock(this, id);
+ };
// A simple workaround if you have a class with .connect, .disconnect or .emit
// methods (such as Gio.Socket.connect or NMClient.Device.disconnect)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]