Skip to content

Introduce G_APPLICATION_DEFAULT_FLAGS

Emmanuele Bassi requested to merge ebassi/application-flags into main

Enumeration members should either have the name of the type as their prefix, or they should all have the same prefix.

The "default flags" enumeration member for GApplicationFlags is unfortunately named G_APPLICATION_FLAGS_NONE, while every other member of the same type has a G_APPLICATION prefix. The result is that the nick name of the enumeration member is "flags-none", and that language bindings will have to use something like Gio.ApplicationFlags.FLAGS_NONE.

To fix this API wart, we can deprecate the FLAGS_NONE member, and add a new DEFAULT_FLAGS.

Merge request reports