1. 26 May, 2019 2 commits
  2. 25 May, 2019 1 commit
  3. 19 May, 2019 1 commit
  4. 18 May, 2019 2 commits
  5. 16 May, 2019 1 commit
  6. 15 May, 2019 1 commit
    • Niels De Graef's avatar
      Port Service and Session to GTask · f165f721
      Niels De Graef authored
      GSimpleAsyncResult is deprecated in favor of the simpler GTask, so use
      that instead. This cuts down on the deprecation warnings.
      
      I wanted to do both separately, but porting one without the other led to
      some faulty casts from GSimpleAsyncResult to GTask (and vice versa).
      f165f721
  7. 13 May, 2019 5 commits
  8. 12 May, 2019 1 commit
    • Niels De Graef's avatar
      Stop using g_assert() in unit tests · 929e5c2a
      Niels De Graef authored
      Apart from having more developer-friendly messages if the assertions go
      wrong, it also prevents the assertions not being run if
      `G_DISABLE_ASSERT` is defined (e.g. for performance reasons).
      929e5c2a
  9. 11 May, 2019 3 commits
  10. 10 May, 2019 1 commit
    • Emmanuele Bassi's avatar
      Use proper prefix for SecretCollection flags · 15902b70
      Emmanuele Bassi authored
      Commit f36379af 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.
      15902b70
  11. 07 May, 2019 6 commits
  12. 02 Mar, 2019 1 commit
  13. 01 Mar, 2019 2 commits
  14. 25 Jan, 2019 2 commits
  15. 24 Jan, 2019 1 commit
  16. 23 Jan, 2019 1 commit
  17. 20 Jan, 2019 1 commit
  18. 19 Jan, 2019 7 commits
    • Niels De Graef's avatar
      Don't end G_DEFINE_AUTOPTR_CLEANUP_FUNC with a ; · b483b15d
      Niels De Graef authored
      Normally it shouldn't matter too much, but the GIR parser apparently
      doesn't like it:
      
      ```
      /home/niels/gnome/libsecret/libsecret/secret-schema.h:75: syntax error, unexpected ';' in ';' at ';'
      /home/niels/gnome/libsecret/libsecret/secret-prompt.h:78: syntax error, unexpected ';' in ';' at ';'
      /home/niels/gnome/libsecret/libsecret/secret-value.h:54: syntax error, unexpected ';' in ';' at ';'
      /home/niels/gnome/libsecret/libsecret/secret-service.h:307: syntax error, unexpected ';' in ';' at ';'
      /home/niels/gnome/libsecret/libsecret/secret-collection.h:176: syntax error, unexpected ';' in ';' at ';'
      /home/niels/gnome/libsecret/libsecret/secret-item.h:194: syntax error, unexpected ';' in ';' at ';'
      ```
      b483b15d
    • Niels De Graef's avatar
      Merge branch 'wip/nielsdg/meson' into 'master' · 763e04f7
      Niels De Graef authored
      Add build support for Meson.
      
      See merge request !9
      763e04f7
    • Niels De Graef's avatar
      Add build support for Meson · b19c3090
      Niels De Graef authored
      To build with meson, use the following commands:
      
      ```
      $ meson build
      $ ninja -C build
       # in case you want to install
      $ ninja -C build install
      ```
      b19c3090
    • Niels De Graef's avatar
      Merge branch 'wip/nielsdg/g-autoptr-support' into 'master' · be0a1263
      Niels De Graef authored
      Add support for g_autoptr() to our types
      
      See merge request !11
      be0a1263
    • Niels De Graef's avatar
      Add support for g_autoptr() to our types · 80afd20c
      Niels De Graef authored
      g_autoptr() is a macro that was defined in GLib 2.44 that allows for
      basic auto-cleanup of variables. One way to add this kind of support
      would be through the use of e.g. `G_DECLARE_DERIVABLE_TYPE()` for our
      declarations, but this would consitute an ABI break (due to the
      `...Private *` field in the public structs). Instead, we can use
      `G_DEFINE_AUTOPTR_CLEANUP_FUNC` to manually declare this.
      
      This commit also bumps the minimally required GLib version to 2.44
      80afd20c
    • Niels De Graef's avatar
      Merge branch 'wip/nielsdg/remove-useless-macros' into 'master' · 92e9952b
      Niels De Graef authored
      Remove useless macro to check GLib version
      
      See merge request !12
      92e9952b
    • Niels De Graef's avatar
      Remove useless macro to check GLib version · cbea4ce7
      Niels De Graef authored
      We already require GLib to have version 2.38 or higher in
      `configure.ac`, so no need to check in our code whether we have a
      version higher than 2.35
      cbea4ce7
  19. 29 Dec, 2018 1 commit