[tracker] Add deprecated in the class definition (not working in gtk-doc)
- From: Ivan Frade <ifrade src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Add deprecated in the class definition (not working in gtk-doc)
- Date: Thu, 28 Jan 2010 17:18:55 +0000 (UTC)
commit 863eb61b2dbd8bbe0b65edc8d09f9f12b96a2ec1
Author: Ivan Frade <ivan frade nokia com>
Date: Thu Jan 28 19:06:27 2010 +0200
Add deprecated in the class definition (not working in gtk-doc)
docs/tools/ttl_sgml.c | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/docs/tools/ttl_sgml.c b/docs/tools/ttl_sgml.c
index 7230375..6fdcf3b 100644
--- a/docs/tools/ttl_sgml.c
+++ b/docs/tools/ttl_sgml.c
@@ -126,9 +126,10 @@ print_variablelist_entry_list (FILE *f,
static void
print_deprecated_message (FILE *f)
{
- g_fprintf (f,"<tr>");
- g_fprintf (f,"<td class=\"deprecated\" colspan=\"2\">This item is deprecated.</td>\n");
- g_fprintf (f,"</tr>\n");
+ g_fprintf (f, "<note>\n");
+ g_fprintf (f, "<title>Note:</title>\n");
+ g_fprintf (f, "<para>This item is deprecated</para>\n");
+ g_fprintf (f, "</note>\n");
}
static void
@@ -191,7 +192,11 @@ print_ontology_class (gpointer key, gpointer value, gpointer user_data)
name = qname_to_shortname (def->classname);
id = shortname_to_id (name);
- g_fprintf (f, "<refsect2 id='%s'>\n", id);
+ if (!def->deprecated) {
+ g_fprintf (f, "<refsect2 id='%s' condition='deprecated'>\n", id);
+ } else {
+ g_fprintf (f, "<refsect2 id='%s'>\n", id);
+ }
g_free (id);
g_fprintf (f, "<title>%s</title>\n", name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]