public Value(GObject.Object obj, string prop_name, EnumWrapper wrap) { type = IntPtr.Zero; pad1 = new Padding (); pad2 = new Padding (); InitForProperty (obj.NativeType, prop_name); if (wrap.flags) g_value_set_flags (ref this, (uint) (int) wrap); else g_value_set_enum (ref this, (int) wrap); }
public Value(EnumWrapper wrap, string type_name) { type = IntPtr.Zero; pad1 = new Padding (); pad2 = new Padding (); g_value_init (ref this, GType.FromName (type_name).Val); if (wrap.flags) g_value_set_flags (ref this, (uint) (int) wrap); else g_value_set_enum (ref this, (int) wrap); }