docs: Do not use G_CONST_RETURN
This commit is contained in:
@ -421,10 +421,10 @@ definitions should be vertically aligned in three columns:
|
|||||||
The maximum width of each column is given by the longest element in the
|
The maximum width of each column is given by the longest element in the
|
||||||
column:
|
column:
|
||||||
|
|
||||||
void gtk_type_set_property (GtkType *type,
|
void gtk_type_set_property (GtkType *type,
|
||||||
const gchar *value,
|
const gchar *value,
|
||||||
GError **error);
|
GError **error);
|
||||||
G_CONST_RETURN gchar *gtk_type_get_property (GtkType *type);
|
const gchar *gtk_type_get_property (GtkType *type);
|
||||||
|
|
||||||
It is also possible to align the columns to the next tab:
|
It is also possible to align the columns to the next tab:
|
||||||
|
|
||||||
|
|||||||
@ -102,8 +102,8 @@ state (explained in its documentation).
|
|||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
For strings returned from functions, they will be declared "const" (using
|
For strings returned from functions, they will be declared "const"
|
||||||
#G_CONST_RETURN) if they should not be freed. Non-const strings should be
|
if they should not be freed. Non-const strings should be
|
||||||
freed with g_free(). Arrays follow the same rule. If you find an
|
freed with g_free(). Arrays follow the same rule. If you find an
|
||||||
undocumented exception to the rules, please report a bug to <ulink
|
undocumented exception to the rules, please report a bug to <ulink
|
||||||
url="http://bugzilla.gnome.org">http://bugzilla.gnome.org</ulink>.
|
url="http://bugzilla.gnome.org">http://bugzilla.gnome.org</ulink>.
|
||||||
|
|||||||
Reference in New Issue
Block a user