[valadoc] doclets/gtkdoc: Do not document target_destroy_notify if type is not owned
- From: Luca Bruno <lucabru src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] doclets/gtkdoc: Do not document target_destroy_notify if type is not owned
- Date: Thu, 28 Jul 2011 08:37:29 +0000 (UTC)
commit b43fcb08dc1552663b0445e03ed18bc10feb63de
Author: Luca Bruno <lucabru src gnome org>
Date: Thu Jul 28 10:36:35 2011 +0200
doclets/gtkdoc: Do not document target_destroy_notify if type is not owned
Fixes bug 637088.
src/doclets/gtkdoc/generator.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/doclets/gtkdoc/generator.vala b/src/doclets/gtkdoc/generator.vala
index e1a1c9d..950d57e 100644
--- a/src/doclets/gtkdoc/generator.vala
+++ b/src/doclets/gtkdoc/generator.vala
@@ -697,9 +697,11 @@ It is important that your <link linkend=\"GValue\"><type>GValue</type></link> ho
if (param.parameter_type.data_type is Api.Delegate) {
add_custom_header ("%s_target".printf (param_name), "user data to pass to @%s".printf (param_name),
{"allow-none", "closure"}, get_parameter_pos (current_method_or_delegate, param_name)+0.1);
- add_custom_header ("%s_target_destroy_notify".printf (param_name),
- "function to call when @%s_target is no longer needed".printf (param_name), {"allow-none"},
- get_parameter_pos (current_method_or_delegate, param_name)+0.2);
+ if (param.parameter_type.is_owned) {
+ add_custom_header ("%s_target_destroy_notify".printf (param_name),
+ "function to call when @%s_target is no longer needed".printf (param_name), {"allow-none"},
+ get_parameter_pos (current_method_or_delegate, param_name)+0.2);
+ }
}
if (current_dbus_member != null) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]