glib/docs/reference
Matthias Clasen fd0dd9e93c gobject: Add G_TYPE_FLAG_DEPRECATED
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.
2022-11-09 12:07:31 +00:00
..
gio gtask: Add g_task_set_static_name() 2022-11-01 11:48:38 +00:00
glib Merge branch 'variant-spec-updates' into 'main' 2022-11-08 16:13:59 +00:00
gobject gobject: Add G_TYPE_FLAG_DEPRECATED 2022-11-09 12:07:31 +00:00
.gitignore .gitignore manpages (*.1) 2010-05-24 23:21:01 -04:00
AUTHORS Initial revision 1999-08-16 17:58:30 +00:00
COPYING Initial revision 1999-08-16 17:58:30 +00:00
meson.build meson: Expose library build type as global variables 2022-10-31 14:08:31 +01:00
NEWS Initial revision 1999-08-16 17:58:30 +00:00