mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-26 15:36:14 +01:00
fd0dd9e93c
This can be used to mark entire types as deprecated, and trigger a warning when they are instantiated and `G_ENABLE_DIAGNOSTIC=1` is set in the environment. There's currently no convenient macros for defining types with the new flag, but you can do: ```c _G_DEFINE_TYPE_EXTENDED_BEGIN (GtkAppChooserWidget, gtk_app_chooser_widget, GTK_TYPE_WIDGET, G_TYPE_FLAG_DEPRECATED) ... _G_DEFINE_TYPE_EXTENDED_END () ``` Includes a unit test by Philip Withnall. |
||
---|---|---|
.. | ||
images | ||
xml | ||
glib-genmarshal.xml | ||
glib-mkenums.xml | ||
gobject-docs.xml | ||
gobject-overrides.txt | ||
gobject-query.xml | ||
gobject-sections.txt | ||
meson.build | ||
tut_gobject.xml | ||
tut_gsignal.xml | ||
tut_gtype.xml | ||
tut_howto.xml | ||
tut_intro.xml | ||
tut_tools.xml | ||
version.xml.in |