Skip to main content

Search

Items tagged with: glib


PSA: Improvements to #GCC's static analyzer are going to cause (at least) `g_error()` to throw an error about an infinite loop.

Wrap the call in a few pragmas:

```c
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wanalyzer-infinite-loop"
g_error ("Just like this");
#pragma GCC diagnostic pop
```

https://gcc.gnu.org/onlinedocs/gcc/Diagnostic-Pragmas.html

#GNOME #GLib #C #StaticAnalyzer


PSA: if you are spawning callbacks with something other than g_idle_add you should think hard about what priority you want and hopefully you can use G_PRIORITY_DEFAULT_IDLE or lower.

(Instead of G_PRIORITY_DEFAULT)

https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/304

#gnome #gtk #glib


Embloggeration happened: https://www.bassi.io/articles/2023/10/25/introspections-edge/

In which I talk about the current plans for gobject-introspection and GLib.

If you work on language bindings, and/or packaging glib, you should reach out to the GLib maintainers.

#gnome #glib #gnome


Does anyone care deeply about macOS support for GLib? If so, you might want to get involved

https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3463

#GLib #macOS


If you’re using the GLib reference on docs.gtk.org and you’re missing the documentation for various C pre-processor macros, you can now find it here:

- https://docs.gtk.org/glib/macros.html
- https://docs.gtk.org/glib/conversion-macros.html
- https://docs.gtk.org/glib/auto-cleanup.html

#gtk #glib #documentation