custom signals
- From: Dimitri Giardina <dimitri giardina gmail com>
- To: javascript-list gnome org
- Subject: custom signals
- Date: Fri, 04 Jul 2014 19:56:39 +0200
Hi list,
i'm searching for some days on google about attaching custom signals to custom widgets on gjs.
i see some examples for seed-js but they seem not to be applicable on gjs.
i found the overriding of gobject.js but i don't know if i can use that:
https://mail.gnome.org/archives/commits-list/2012-January/msg11238.html
something like:
gi.signal_new(this.prototype,'close-clicked',GObject.SignalFlags.RUN_FIRST,GObject.AccumulatorType.NONE,GObject.TYPE_NONE,[]);
where gi is const gi=imports.gi;
but it don't work.
if i use
this.connect('close-clicked',this.close_clicked);
interpreter give me a message that close-ticket is not one of signals.
anyone can help me?
thanks
Dimitri.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]