Skip to content
  1. Dec 29, 2024
  2. Dec 22, 2024
  3. Dec 21, 2024
  4. Dec 20, 2024
  5. Dec 19, 2024
  6. Dec 18, 2024
  7. Dec 17, 2024
  8. Dec 16, 2024
  9. Dec 15, 2024
    • FeRD (Frank Dana)'s avatar
      Fix pointer-to-paramref syntax in docs · 9f016e5d
      FeRD (Frank Dana) authored
      The documentation for GLib and Gio contains a number of documentation
      comment blocks where a parameter reference (e.g. `@err`) is also
      discussed in its dereferenced pointer form, which is generally
      annotated as `*@err`. This inevitably confuses the MarkDown parser,
      which sees the `*` as the beginning of an italicized text span.
      
      To avoid this, replace all `*@foo` with <code>`*foo`</code>, which
      loses the `@`-sigil linking it to the `@foo` parameter, but formats
      correctly in the rendered documentation. (`@foo` is automatically
      formatted like <code>`foo`</code>, so the resulting appearance in
      the docs is as intended.)
      9f016e5d
  10. Dec 14, 2024
  11. Dec 13, 2024
    • Simon McVittie's avatar
      gio, gobject: Improve reproducibility of enumtypes headers · a4d084e9
      Simon McVittie authored
      
      
      `@filename@` expands to the (absolute or relative) path from the
      build directory to the source directory, which can be rather verbose.
      In practice Meson usually (always?) generates a relative path, but
      even so, the resulting installed header is not necessarily reproducible
      if using different build directories outside the source directory.
      
      We don't really need a full path here anyway: the basename is enough
      of a hint to point a reader towards the file where the underlying
      enum was defined.
      
      Signed-off-by: default avatarSimon McVittie <[email protected]>
      a4d084e9
    • Simon McVittie's avatar
      girepository: Correct --c-include arguments for GIO Unix/Windows headers · feca93e5
      Simon McVittie authored
      The deprecated construct '@0@'.format(h) (where h is a file object)
      expanded to the filename relative to the project root, which in this
      particular case happens to be what we wanted:
      `--c-include=gio/gunixmounts.h` resulted in a recommendation to
      `#include <gio/gunixmounts.h>` and so on. Replacing it with
      h.full_path() resulted in GIR XML and documentation that recommended
      constructs like `#include </home/me/src/glib/gio/gunixmounts.h>`,
      which is not what was intended (and caused new differences between
      different architectures' Gio-2.0.gir on multiarch systems, which is
      how I discovered this).
      
      Hard-coding `gio/` and appending the basename of the header seems like
      the simplest non-deprecated spelling that will do what we wanted.
      
      Fixes: 51e3e7d9 "build: Bump Meson dependency to 1.4.0"
      Resolves: #3564
      
      
      Signed-off-by: default avatarSimon McVittie <[email protected]>
      feca93e5
    • Philip Withnall's avatar
      Merge branch 'fix_GVfsFileLookupFunc' into 'main' · bc56578a
      Philip Withnall authored
      Add nullable annotations for GVfsFileLookupFunc
      
      Closes #3561
      
      See merge request !4438
      bc56578a
    • Philip Withnall's avatar
      Merge branch 'win32-clear-com' into 'main' · 7ac15640
      Philip Withnall authored
      GWin32: Add g_win32_com_clear()
      
      See merge request !4392
      7ac15640
    • Chun-wei Fan's avatar
      tests: Add more tests for COM refcounts · 2af6baad
      Chun-wei Fan authored
      As suggested by Luca Bacci, so that we keep track of things more clearly
      in terms of COM.
      2af6baad
    • Chun-wei Fan's avatar
      gwin32.h: Make g_win32_clear_com() static inline · 4ab7977a
      Chun-wei Fan authored
      ...for C++ implementations, as suggested by Luca Bacci.
      
      Make things safer in terms of avoiding ODR violations[1].
      
      [1]: !4392 (comment 2296862)
      4ab7977a
    • Chun-wei Fan's avatar
      glib/tests: Add C++ test for g_win32_clear_com() · a3a95c2a
      Chun-wei Fan authored
      This tests the C++ version of g_win32_clear_com() as there are some
      COM interfaces that are only available in C++, such as DirectWrite from
      the headers shipped with the Windows SDK.
      
      This mimicks the test for the same function in glib/tests/win32.c but
      done in a C++ fashion.
      a3a95c2a
    • Chun-wei Fan's avatar
      GLib tests: Add test for g_win32_clear_com() · 56423316
      Chun-wei Fan authored
      This mimicks the test for g_clear_object() in gobject/tests/reference.c.
      
      We use the system's wincodec library for our sample here.
      56423316
    • Chun-wei Fan's avatar
      gwin32: Add g_win32_clear_com() · aff6b930
      Chun-wei Fan authored
      This is quite similar in concept to what g_clear_object() does, except
      that is meant to deal with Windows COM objects. Note that there is a
      separate C++ version available for this as there are COM interfaces that
      are available in C++ only, such as DirectWrite that is shipped with the
      Windows SDK (albeit a C interface is provided with the mingw-w64
      toolchain.
      
      This will call `->Release()` on the non-NULL COM object referenced by its
      pointer  and sets the COM object to NULL; if the pointer refers to a
      NULL COM object, this is a no-op.
      aff6b930
  12. Dec 12, 2024
  13. Dec 11, 2024
Loading