[Vala] GLib warning with vala code.



Hi:

I'm using bind_property methods of GObject in the normal way, and I'm getting GLib warning, from the program when running, Let's say, the code works fine for me, it just bothers me to see the GLib warning every time I run the app, when really there's no need for it.
I think it might because this in vapi:
========== gobject-2.0.vapi ================
[CCode (cname = "g_object_bind_property_with_closures")]
public unowned GLib.Binding bind_property (string source_property, GLib.Object target, string target_property, GLib.BindingFlags flags, [CCode (type = "GClosure*")] owned GLib.BindingTransformFunc? transform_to = null, [CCode (type = "GClosure*")] owned GLib.BindingTransformFunc? transform_from = null);
========== gobject-2.0.vapi ================

I don't want to use "g_object_bind_property_with_closures", I was looking for "g_object_bind_property" method, so why is this ?

========== code ================
my_entry.bind_property("text", my_other_entry, "text", GLib.BindingFlags.DEFAULT);
========== code ================

========== warning ================
(myapp:29271): GLib-GObject-CRITICAL **: g_cclosure_new: assertion `callback_func != NULL' failed

(myapp:29271): GLib-GObject-CRITICAL **: g_cclosure_new: assertion `callback_func != NULL' failed

(myapp:29271): GLib-GObject-CRITICAL **: g_cclosure_new: assertion `callback_func != NULL' failed

(myapp:29271): GLib-GObject-CRITICAL **: g_cclosure_new: assertion `callback_func != NULL' failed
========== warning ================

Thxs.

PS: Please if this is a bug can someone submitted, cause I can't access bugzilla right now.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]