1. 13 Oct, 2019 3 commits
  2. 12 Oct, 2019 2 commits
  3. 08 Oct, 2019 7 commits
  4. 05 Sep, 2019 1 commit
  5. 25 Jul, 2019 2 commits
  6. 18 Jul, 2019 8 commits
  7. 29 Jun, 2019 2 commits
  8. 17 Jun, 2019 1 commit
  9. 13 Jun, 2019 1 commit
    • Michael Catanzaro's avatar
      Fix -Wunknown-pragmas triggered by secret-version.h · 2b4adfb9
      Michael Catanzaro authored
      In file included from /usr/include/libsecret-1/libsecret/secret.h:33,
                       from ../lib/sync/../ephy-sync-utils.h:24,
                       from ../lib/sync/ephy-history-manager.c:25:
      /usr/include/libsecret-1/libsecret/secret-version.h:19: error: ignoring #pragma __once__  [-Werror=unknown-pragmas]
       #pragma __once__
      
      It should be #pragma once, not #pragma __once__.
      
      But let's follow the other public headers here instead.
      2b4adfb9
  10. 09 Jun, 2019 1 commit
    • Sutou Kouhei's avatar
      Add version macros · c00283eb
      Sutou Kouhei authored
      Added macros:
      
        * SECRET_VERSION_MAJOR
        * SECRET_VERSION_MINOR
        * SECRET_VERSION_MICRO
        * SECRET_CHECK_VERSION
      
      These macros are widely defined in GLib based library. For example,
      GLib, GTK, poppler GLib and so on define them.
      
      These macros are useful to detect libsecret version on build type and
      from GObject Introspection based bindings.
      c00283eb
  11. 18 May, 2019 2 commits
  12. 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
  13. 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
  14. 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_COLLE...
      15902b70
  15. 07 May, 2019 2 commits
    • Kouhei Sutou's avatar
      Remove a needless tab · 65153a2b
      Kouhei Sutou authored
      65153a2b
    • Kouhei Sutou's avatar
      Add missing GType to flags in .gir · f36379af
      Kouhei Sutou authored
      Here is a sample diff by this change:
      
          --- Secret-1.gir.before	2019-05-07 15:20:58.252288010 +0900
          +++ Secret-1.gir.after	2019-05-07 15:26:54.314413832 +0900
          @@ -1141,22 +1140,32 @@
                 </field>
               </record>
               <bitfield name="CollectionCreateFlags"
          +              glib:type-name="SecretCollectionCreateFlags"
          +              glib:get-type="secret_collection_create_flags_get_type"
                         c:type="SecretCollectionCreateFlags">
                 <doc xml:space="preserve">Flags for secret_collection_create().</doc>
          -      <member name="collection_create_none"
          +      <member name="none"
                         value="0"
          -              c:identifier="SECRET_COLLECTION_CREATE_NONE">
          +              c:identifier="SECRET_COLLECTION_CREATE_NONE"
          +              glib:nick="none">
                   <doc xml:space="preserve">no flags</doc>
                 </member>
               </bitfield>
      
      Other flags such as SecretServiceFlags also have GType in .gir.
      f36379af
  16. 01 Mar, 2019 1 commit
  17. 25 Jan, 2019 2 commits
  18. 23 Jan, 2019 1 commit
  19. 19 Jan, 2019 1 commit
    • 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