Re: [Vala] Properties == GObject properties?



On Thu, 2013-10-10 at 21:18 +0200, "Andrés G. Aragoneses" wrote:
Quick question, are properties of objects in vala bound to gobject 
properties? That is, properties that can be found via 
g_object_class_find_property()?

Assuming you're talking about a class which inherits from GLib.Object,
it depends on the type, but usually yes.  Arrays (other than arrays of
strings) and delegates aren't.

Also, keep in mind that fields != properties.  For example,

        public class Foo : GLib.Object {
          public int bar { get; set; }
          public int baz;
        }

In this case, "bar" is a GObject property, but "baz" isn't.


-Evan



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