> > I believe there are a lot of transfer annotations that aren't needed, > > and in most case natural to the reader. In such case, I guess I'd > > rather leave them out. > > @b4n Which ones? I only added them where needed, that is basically all > non-const returns of struct pointers (otherwise g-ir-scanner throws > warnings like this: > > Geany: editor_create_widget: return value: Invalid non-constant > return of bare structure or union; register as boxed type or (skip)
Hum, okay. I thought if you returned e.g. a `GeanyDocument` pointer it would have had `transfer: none` by default if not a known type or a `_new()` function, but if it's needed OK. --- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/890#issuecomment-185814167