mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-04 15:44:49 +01:00
Don't copy strings which are marked as static. Don't allow non-canonical
2005-03-20 Matthias Clasen <mclasen@redhat.com> * gparam.c (g_param_spec_internal): Don't copy strings which are marked as static. Don't allow non-canonical static names. * gparam.h (GParamFlags): Add G_PARAM_STATIC_{NAME,NICK,BLURB} flags. (#160655, Ben Maurer)
This commit is contained in:
committed by
Matthias Clasen
parent
446c1f1aa8
commit
4bd613efc4
@@ -53,7 +53,9 @@ typedef enum
|
||||
G_PARAM_CONSTRUCT = 1 << 2,
|
||||
G_PARAM_CONSTRUCT_ONLY = 1 << 3,
|
||||
G_PARAM_LAX_VALIDATION = 1 << 4,
|
||||
G_PARAM_PRIVATE = 1 << 5
|
||||
G_PARAM_STATIC_NAME = 1 << 5,
|
||||
G_PARAM_STATIC_NICK = 1 << 6,
|
||||
G_PARAM_STATIC_BLURB = 1 << 7
|
||||
} GParamFlags;
|
||||
#define G_PARAM_READWRITE (G_PARAM_READABLE | G_PARAM_WRITABLE)
|
||||
#define G_PARAM_MASK (0x000000ff)
|
||||
|
||||
Reference in New Issue
Block a user