Open gdesmott opened 4 months ago
It seems to work when using a custom get
implementation:
#[property(get = |t: &Self| t.inner_enum.lock().unwrap().senum.to_owned(), type = SimpleEnum, builder(SimpleEnum::One))]
inner_enum: Mutex<Inner>,
I tried with this, and it seems to work:
#[property(get, set, type = SimpleEnum, member = senum, builder(SimpleEnum::default()))]
inner_enum: Mutex<Inner>,
@gdesmott could you add a full reproducer of the issue please?
@gdesmott could you add a full reproducer of the issue please?
There is in this commit: https://github.com/gdesmott/gtk-rs-core/commit/f7d6a6049b44c298c56cbc1e4b6fb9ff218f46a9
See this code trying to define a GEnum property inside a nested object. It fails, I think, because
type =
needs to be defined when usingmember =
but I didn't find any way to make it work.