mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 09:58:54 +02:00
docs: Use G_PARAM_STATIC_STRINGS in examples and explain it more
Make it a bit clearer in the documentation that using `G_PARAM_STATIC_STRINGS` everywhere is a good thing. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
@@ -172,6 +172,12 @@ typedef enum
|
||||
*
|
||||
* #GParamFlags value alias for %G_PARAM_STATIC_NAME | %G_PARAM_STATIC_NICK | %G_PARAM_STATIC_BLURB.
|
||||
*
|
||||
* It is recommended to use this for all properties by default, as it allows for
|
||||
* internal performance improvements in GObject.
|
||||
*
|
||||
* It is very rare that a property would have a dynamically constructed name,
|
||||
* nickname or blurb.
|
||||
*
|
||||
* Since 2.13.0
|
||||
*/
|
||||
#define G_PARAM_STATIC_STRINGS (G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)
|
||||
|
Reference in New Issue
Block a user