1. 13 Mar, 2019 1 commit
    • Philip Withnall's avatar
      codegen: Fix use of uninitialised variable · 56492553
      Philip Withnall authored
      If using the --interface-info-{body,header} options to gdbus-codegen,
      and the first interface to be outputted has no methods, but does have
      properties or signals, an uninitialised variable would be used for the
      property/signal ‘since’ values.
      In other situations, the ‘since’ value for a prior method would have
      been incorrectly used for the properties/signals.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
  2. 15 Jan, 2019 1 commit
    • Philip Withnall's avatar
      build: Drop autotools support · b3efef5b
      Philip Withnall authored
      So long, and thanks for everything. We’re a Meson-only shop now.
      glib-2-58 will remain the last stable GLib release series which is
      buildable using autotools.
      We continue to install autoconf macros for autotools-using projects
      which depend on GLib; they are stable API.
      Signed-off-by: Philip Withnall's avatarPhilip Withnall <withnall@endlessm.com>
  3. 19 Dec, 2018 2 commits
  4. 11 Dec, 2018 1 commit
    • Will Thompson's avatar
      gdbus-codegen: sort input files · d946bff4
      Will Thompson authored
      This means the output (including lists of filenames) does not depend on
      the order of the input files, which may matter if this tool is invoked
      with a glob or some other mechanism that doesn't guarantee an order.
  5. 06 Dec, 2018 2 commits
    • Will Thompson's avatar
      gdbus-codegen: don't sort args in --interface-info-body · deafd725
      Will Thompson authored
      Previously, method and signal arguments were sorted by name, which
      (assuming you don't happen to give your arguments
      lexicographically-ordered names) means the generated signatures were
      incorrect when there is more than 1 argument.
      While sorting the methods and signals themselves (and properties, and
      annotations on all these) is fine, it's easiest to not sort anything.
    • Will Thompson's avatar
      gdbus-codegen: make --interface-info-{header,body} not crash · faa3c319
      Will Thompson authored
      Since 1217b1bc, LICENSE_STR has taken two
      parameters, not one. Without this change, running either mode fails
      with a traceback like:
          Traceback (most recent call last):
            File "../gdbus-codegen", line 55, in <module>
            File ".../codegen_main.py", line 294, in codegen_main
            File ".../codegen.py", line 896, in generate
            File ".../codegen.py", line 682, in generate_body_preamble
          IndexError: tuple index out of range
      8916874e, which introduced these flags,
      was actually merged after that commit, but I assume it was written
  6. 23 Nov, 2018 2 commits
    • Debarshi Ray's avatar
      gdbus-codegen: Tag interfaces so annotated with G_PARAM_DEPRECATED · 53573d98
      Debarshi Ray authored
      If a D-Bus interface was annotated with o.fd.DBus.Deprecated, then the
      corresponding GObject property, in the common GInterface implemented
      by the generated GDBusObjectProxies and GDBusObjectSkeletons, to
      access the generated code for the D-Bus interface was not being marked
      with G_PARAM_DEPRECATED, even though the gtk-doc snippet had the
      'Deprecated: ' tag.
      G_PARAM_DEPRECATED is older than gdbus-codegen, 2.26 and 2.30
      respectively, hence it can be used unconditionally.
    • Debarshi Ray's avatar
      gdbus-codegen: Tag properties so annotated with G_PARAM_DEPRECATED · 52ce05aa
      Debarshi Ray authored
      If a D-Bus interface has a property that's annotated with
      o.fd.DBus.Deprecated, then the corresponding GObject property was not
      being marked with G_PARAM_DEPRECATED, even though the gtk-doc snippet
      had the 'Deprecated: ' tag.
      G_PARAM_DEPRECATED is older than gdbus-codegen, 2.26 and 2.30
      respectively, hence it can be used unconditionally.
  7. 29 Oct, 2018 1 commit
  8. 23 Sep, 2018 1 commit
    • Simon McVittie's avatar
      Remove unnecessary +x permissions · fa32ee64
      Simon McVittie authored
      None of these files starts with a #! line, and they are not native
      binary executables, so if a user attempts to execute them as a program,
      Unix shells will run them as /bin/sh scripts. This is not going to end
      well, since none of them are shell scripts (the gio bash completion
      is for bash, which is not a lowest-common-denominator POSIX shell, and
      in any case is designed to be sourced rather than executed).
      Fixes: #1539Signed-off-by: 's avatarSimon McVittie <smcv@collabora.com>
  9. 06 Sep, 2018 1 commit
    • Robert Ancell's avatar
      codegen: Change pointer casting to remove type-punning warnings · 64b76c7c
      Robert Ancell authored
      The existing code was generating code with undefined results that modern compilers warn about:
      accounts-generated.c:204:23: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
           (GDBusArgInfo **) &_accounts_accounts_method_info_list_cached_users_OUT_ARG_pointers,
  10. 19 Jul, 2018 2 commits
    • Christoph Reiter's avatar
      meson: use the new 'python' module instead of the 'python3' one. Closes #1455 · 631c3534
      Christoph Reiter authored
      The new python module, added with 0.46, works with Python 2 and 3 and
      allows to pass a path for the interpreter to use, if the need arises.
      Previously the meson build set PYTHON, used in the shebang line of
      the scripts installed by glib, to the full path of the interpreter.
      The new meson module doesn't expose that atm, but we should set it to
      a executable name anyway, and not a full path.
    • Nirbheek Chauhan's avatar
      meson: Provide our Python tools for builds · 057f393b
      Nirbheek Chauhan authored
      Several of our tools are installed and are used by other projects to
      generate code. However, there is no 'install' when projects use glib
      as a subproject.
      We need some way for glib to 'provide' these tools so that when some
      project uses glib as a subproject, find_program('glib-mkenums') will
      transparently return the glib-mkenums we just built.
      Starting from Meson 0.46, this can be done with the
      `meson.override_find_program()` function.
      As a bonus, the Meson GNOME module will also use these
      'overriden'/'provided' programs instead of looking for them in PATH.
  11. 12 Jul, 2018 1 commit
    • Thomas H.P. Andersen's avatar
      python: avoid equality check for None · a8b416f9
      Thomas H.P. Andersen authored
      PEP8 says that:
      "Comparisons to singletons like None should always be done with is or
      is not, never the equality operators."
      glib uses a mix of "== None" and "is None". This patch changes all
      cases to the latter.
  12. 03 Jul, 2018 1 commit
  13. 14 Jun, 2018 4 commits
  14. 04 May, 2018 1 commit
  15. 23 Apr, 2018 1 commit
  16. 06 Feb, 2018 1 commit
  17. 31 Jan, 2018 1 commit
    • Iñigo Martínez's avatar
      gdbus-codegen: Fix issue with docbook generation · 93042e00
      Iñigo Martínez authored
      In cases where gdbus-codegen is used only for docbook generation,
      the execution stops with the following error message:
        `Using --header or --body requires --output`
      This is because it was assumed that, in addition to the docbook
      generation, the header or source code were always generated.
      This patch fixes this, and the header or source code generation
      is not mandatory, so the docbook can be generated separately.
  18. 15 Jan, 2018 8 commits
  19. 09 Jan, 2018 1 commit
  20. 13 Dec, 2017 1 commit
  21. 29 Nov, 2017 1 commit
  22. 28 Nov, 2017 1 commit
  23. 20 Nov, 2017 1 commit
  24. 17 Nov, 2017 1 commit
  25. 06 Nov, 2017 1 commit
  26. 11 Oct, 2017 1 commit