Go to file
Emmanuele Bassi 15902b70b2 Use proper prefix for SecretCollection flags
Commit f36379af33 added the enumeration
GType for SecretCollectionFlags and SecretCollectionCreateFlags in the
introspection data, but by doing so it broke existing users of the
introspected API.

Additionally, the enumeration nicknames—which are used to generate the
enumeration value from the type name and the namespace—were wrong
before, and are wrong now. The idiomatic way to name enumeration members
is to use the uppercase, snake case version of the type name, and append
the value at the end:

  SecretCollectionFlags → SECRET_COLLECTION_FLAGS_NONE
  SecretCollectionCreateFlags → SECRET_COLLECTION_CREATE_FLAGS_NONE

If this practice is not followed, enumerations should use the
glib-mkenums trigraph and the `prefix` option; this tells glib-mkenums,
and the introspection parser after that, where to cut off the prefix and
which part of the enumeration value should be considered the nickname.

Thus, with `prefix=SECRET_COLLECTION` we can turn:

  SECRET_COLLECTION_NONE

into:

  Secret.CollectionFlags.NONE

which is the idiomatic form of an enumeration value.
2019-05-11 00:15:04 +01:00
build build: update tap scripts 2018-08-28 11:27:27 +02:00
docs Add build support for Meson 2019-01-19 21:03:56 +00:00
egg Add build support for Meson 2019-01-19 21:03:56 +00:00
libsecret Use proper prefix for SecretCollection flags 2019-05-11 00:15:04 +01:00
po Add build support for Meson 2019-01-19 21:03:56 +00:00
tool Add build support for Meson 2019-01-19 21:03:56 +00:00
.dir-locals.el build: Add .dir-locals.el for Emacs 2018-07-20 10:54:30 +02:00
.gitignore Makefile.am: Add check-memory target for valgrind testing 2014-03-05 12:59:46 +01:00
.gitlab-ci.yml gitlab-ci: Run "dnf upgrade" before installing packages 2018-07-24 16:14:03 +02:00
AUTHORS Initial module setup. Implement GSecretData 2011-08-08 17:43:47 +02:00
autogen.sh Migrate from intltool to gettext. 2018-06-09 05:52:31 +00:00
ChangeLog Rename gsecret to libsecret 2012-02-03 20:44:46 +01:00
configure.ac Release 0.18.8 2019-03-02 07:55:06 +01:00
COPYING Fix up libsecret licensing 2012-08-06 11:25:08 +02:00
COPYING.TESTS Fix up libsecret licensing 2012-08-06 11:25:08 +02:00
libsecret.doap Replace Bugzilla by Gitlab URL in DOAP file 2018-12-14 12:03:19 +01:00
Makefile.am Makefile.am: Start signing releases 2016-12-12 13:20:25 +01:00
meson_options.txt Add build support for Meson 2019-01-19 21:03:56 +00:00
meson.build meson: Bump version 2019-05-07 11:28:51 +00:00
NEWS Release 0.18.8 2019-03-02 07:55:06 +01:00
README Initial module setup. Implement GSecretData 2011-08-08 17:43:47 +02:00

GObject based library for accessing the Secret Service API.