[Vala] Doubt with "hasemitter"
- From: rastersoft <raster rastersoft com>
- To: vala-list gnome org
- Subject: [Vala] Doubt with "hasemitter"
- Date: Sun, 11 Mar 2018 01:28:45 +0100
Hello:
I had some odd problems with a button callback: when it is clicked and
try to operate with "this", I receive a core dump.
I discovered something odd: the documentation in Valadoc shows the
button callback as
[ HasEmitter ]
public virtual signal void *clicked* ()
I created the callback like that, and it failed with the core dump. But
if I define the callback as:
public virtual signal void *clicked* (Gtk.Widget emitter)
it works fine.
So, what does mean the "hasemitter" attribute, what has to do with the
callbacks with the "Gtk.Widget" parameter removed, and how can I know
the true signature for these signals?
Thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]