[gjs: 1/2] GObject: Add convenience wrapper for signal_stop_emission_by_name()
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/2] GObject: Add convenience wrapper for signal_stop_emission_by_name()
- Date: Wed, 30 Oct 2019 17:13:02 +0000 (UTC)
commit 59f078fb7e78116a0387024f1afcb5c965146c2c
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Oct 30 17:38:23 2019 +0100
GObject: Add convenience wrapper for signal_stop_emission_by_name()
This is another signal method for which it makes sense to expose it
in a more idiomatic way.
modules/overrides/GObject.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/modules/overrides/GObject.js b/modules/overrides/GObject.js
index a18421ae..5cc26082 100644
--- a/modules/overrides/GObject.js
+++ b/modules/overrides/GObject.js
@@ -567,6 +567,9 @@ function _init() {
GObject.Object.prototype.unblock_signal_handler = function (id) {
return GObject.signal_handler_unblock(this, id);
};
+ GObject.Object.prototype.stop_emission_by_name = function (detailedName) {
+ return GObject.signal_stop_emission_by_name(this, detailedName);
+ };
// 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]