[tracker] Add deprecation notice (as note)
- From: Ivan Frade <ifrade src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Add deprecation notice (as note)
- Date: Thu, 28 Jan 2010 19:44:09 +0000 (UTC)
commit c83c81f61120100fd690f7680363e21e6496dab0
Author: Ivan Frade <ivan frade nokia com>
Date: Thu Jan 28 21:42:04 2010 +0200
Add deprecation notice (as note)
docs/tools/ttl_sgml.c | 16 +++++++++-------
1 files changed, 9 insertions(+), 7 deletions(-)
---
diff --git a/docs/tools/ttl_sgml.c b/docs/tools/ttl_sgml.c
index 6fdcf3b..4cd200b 100644
--- a/docs/tools/ttl_sgml.c
+++ b/docs/tools/ttl_sgml.c
@@ -192,11 +192,8 @@ print_ontology_class (gpointer key, gpointer value, gpointer user_data)
name = qname_to_shortname (def->classname);
id = shortname_to_id (name);
- if (!def->deprecated) {
- g_fprintf (f, "<refsect2 id='%s' condition='deprecated'>\n", id);
- } else {
- g_fprintf (f, "<refsect2 id='%s'>\n", id);
- }
+ g_fprintf (f, "<refsect2 id='%s'>\n", id);
+
g_free (id);
g_fprintf (f, "<title>%s</title>\n", name);
@@ -218,10 +215,15 @@ print_ontology_class (gpointer key, gpointer value, gpointer user_data)
g_fprintf (f, "</variablelist>\n");
- if (def->notify) {
+ if (def->notify || def->deprecated) {
g_fprintf (f, "<note>\n");
g_fprintf (f, "<title>Note:</title>\n");
- g_fprintf (f, "<para>This class notifies about changes</para>\n");
+ if (def->notify) {
+ g_fprintf (f, "<para>This class notifies about changes</para>\n");
+ }
+ if (def->deprecated) {
+ g_fprintf (f, "<para>This class is deprecated</para>\n", id);
+ }
g_fprintf (f, "</note>\n");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]