[Vala] connecting signals from GtkBuilder
- From: "D.H. Bahr" <dbahr uci cu>
- To: Vala list <vala-list gnome org>
- Subject: [Vala] connecting signals from GtkBuilder
- Date: Thu, 24 May 2012 13:33:14 -0400
Hello everyone!
I have an issue while trying to connect the signals from GtkBuilder
object to my class' methods.
This is roughly me code structure:
//No namespace specified
class MyClass {
...
public MyClass () {
builder = new Builder();
builder.add_objects_from_file(builder_file, {"main_window"});
...
builder.connect_signals(this);
}
...
public void on_signal_emited (signal signature) {
...
//do stuff
...
}
}
On Glade I connect the signal as follows:
'emit-signal': 'my_class_on_signal_emited'
The code compiles just fine, at runtime I get:
Gtk-WARNING **: Could not find signal handler
'my_class_on_signal_emited'.
How should I name signature handlers on Vala??
Best regards,
--
Sw.E. D.H. Bahr
Nova Desktop Development Leader
CESOL (Free/Libre Software Centre)
UCI (University of Informatics Sciences)
Havana, Cuba
10mo. ANIVERSARIO DE LA CREACION DE LA UNIVERSIDAD DE LAS CIENCIAS INFORMATICAS...
CONECTADOS AL FUTURO, CONECTADOS A LA REVOLUCION
http://www.uci.cu
http://www.facebook.com/universidad.uci
http://www.flickr.com/photos/universidad_uci
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]