Bilal Elmoussaoui
c9c64f0990
cogl/pango: Remove various unused private functions
...
A quick cleanup in preparation for moving cogl-pango to libst later
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3823 >
2024-06-18 10:43:20 +00:00
Bilal Elmoussaoui
0f6df633fe
cogl/pango: Drop PANGO_ENABLE_BACKEND usage
...
Dropped before Pango 1.46 which is the min required version
so the backward compatibility is no longer needed
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3491 >
2024-01-05 14:22:22 +01:00
Bilal Elmoussaoui
3fcff05847
cogl/pango: Remove no longer needed version check
...
We require pango 1.46 nowadays
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3491 >
2024-01-05 14:22:22 +01:00
Bilal Elmoussaoui
f5dac3a5d9
build: One config file to rule them all
...
Group all the three config files from clutter/cogl/meta into one
and also remove unnused configurations and replace duplicated ones
This also fixes Cogl usage of HAS_X11/HAS_XLIB to match the expected
build options
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3368 >
2023-11-15 12:00:19 +00:00
Bilal Elmoussaoui
1da42dc3c0
cogl: Port Context away from CoglObject
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193 >
2023-10-29 21:16:24 +00:00
Bilal Elmoussaoui
d10533cc1c
cogl/pango: Fix wrong unref function
...
PangoRenderer is a GObject not a CoglObject
Noticed while working on
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3193
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3197 >
2023-08-21 15:55:18 +00:00
Bilal Elmoussaoui
a955f0e47c
cleanup: Make include macro usages consistent
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3157 >
2023-08-07 22:24:36 +00:00
Bilal Elmoussaoui
3393db942a
docs/cogl-pango: Make use of gi-docgen annotations
...
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2708 >
2022-11-22 13:32:43 +01:00
Marco Trevisan (Treviño)
645d596f9d
cogl: Use autopointers to free structs on return
...
This is a potential leak discovered by static analysis, in fact if
_COGL_GET_CONTEXT returns, the newly allocated struct isn't released.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/1195
2020-04-12 21:40:20 +00:00
Niels De Graef
769a02b630
cogl: Drop _COGL_RETURN_VAL_IF_FAIL macro
...
This was introduced when the Cogl maintainers tried to move away from
GLib. Since we always require it, we can just use
`g_return_val_if_fail()` immediately.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/629
2019-06-19 21:46:22 +02:00
Niels De Graef
576330edce
cogl: Drop _COGL_RETURN_IF_FAIL macro
...
This was introduced when the Cogl maintainers tried to move away from
GLib. Since we always require it, we can just use `g_return_if_fail()`
immediately.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/629
2019-06-19 21:36:19 +02:00
Niels De Graef
a81435ab5f
cogl: Remove CoglBool, use gboolean instead
...
This basically reverts commit 54735dec, which tried to avoid the
GLib-defined types in favor the standard C ones. One exception to this
is the bool type, for which the commit introduces a new type CoglBool.
Let's just get rid of this type in favor of having consistency with the
GLib types. Note by the way that neither CoglBool nor gboolean (which
has a size of `int`) are completely compatible with bool (size `char`).
https://gitlab.gnome.org/GNOME/mutter/merge_requests/321
2019-02-15 16:35:46 +01:00
Jonas Ådahl
0163a0b0cd
cogl: Unconditionally include cogl-config.h
2018-11-06 17:17:36 +01:00
Jonas Ådahl
bf71cb2e3c
Don't use config.h in clutter and cogl
...
In cogl use cogl-config.h and in clutter use clutter-build-config.h. We
can't use clutter-config.h in clutter because its already used and
installed.
https://bugzilla.gnome.org/show_bug.cgi?id=768976
2016-07-20 14:23:48 +08:00
Rui Matos
2d2835f02a
move everything into a cogl/ directory
2016-04-22 16:44:31 +02:00