summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2011-06-06 19:07:23 +0100
committerJavier Jardón <jjardon@gnome.org>2011-06-10 13:07:54 +0100
commita8f5a8b9190d4c72f46a38579f23f2f2acfb174a (patch)
treea49366a4f7c1cd4f87949295400b1e70ff572dc5 /docs
parent7c688cb8a6cd35990a26d3a4a26d098e3a5fe5a1 (diff)
downloadgtk+-a8f5a8b9190d4c72f46a38579f23f2f2acfb174a.tar.gz
docs: Do not use G_CONST_RETURN
Diffstat (limited to 'docs')
-rw-r--r--docs/CODING-STYLE8
-rw-r--r--docs/reference/gtk/question_index.sgml4
2 files changed, 6 insertions, 6 deletions
diff --git a/docs/CODING-STYLE b/docs/CODING-STYLE
index 7b2e8f23fd..ae6e9fbc7c 100644
--- a/docs/CODING-STYLE
+++ b/docs/CODING-STYLE
@@ -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
column:
- void gtk_type_set_property (GtkType *type,
- const gchar *value,
- GError **error);
- G_CONST_RETURN gchar *gtk_type_get_property (GtkType *type);
+ void gtk_type_set_property (GtkType *type,
+ const gchar *value,
+ GError **error);
+ const gchar *gtk_type_get_property (GtkType *type);
It is also possible to align the columns to the next tab:
diff --git a/docs/reference/gtk/question_index.sgml b/docs/reference/gtk/question_index.sgml
index 24f6b99413..5f72d8a099 100644
--- a/docs/reference/gtk/question_index.sgml
+++ b/docs/reference/gtk/question_index.sgml
@@ -102,8 +102,8 @@ state (explained in its documentation).
</para>
<para>
-For strings returned from functions, they will be declared "const" (using
-#G_CONST_RETURN) if they should not be freed. Non-const strings should be
+For strings returned from functions, they will be declared "const"
+if they should not be freed. Non-const strings should be
freed with g_free(). Arrays follow the same rule. If you find an
undocumented exception to the rules, please report a bug to <ulink
url="http://bugzilla.gnome.org">http://bugzilla.gnome.org</ulink>.