Skip to content

Add support for GType name conflict resolution via opt-in #1430

@sdroege

Description

@sdroege

Currently if multiple versions of the gio crate are linked in, e.g. gio::ReadInputStream could be registered multiple times with the same GType name. The second one would fail with a panic.

Instead it would be useful if it could simply use ReadInputStream-1 or ReadInputStream-N as type name, i.e. count until it finds a name that is not used yet.

This has to be opt-in because in other cases the GType name is part of the API and you actually don't want this behaviour.


This applies to GObjects, boxed types, enums/flags, etc.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions