summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2010-12-16 12:21:04 +0000
committerAlex Merry <dev@randomguy3.me.uk>2010-12-16 12:21:04 +0000
commit149af482110a953b1a0feedffb075f8c4fe33239 (patch)
tree736a8b2eb2470932d016a3a7710ff753f654273e
parent755fd5266a5f6ae956fa0b98f3950c302dcbe9ba (diff)
Use .is_deprecated, rather than .deprecated in the templates.
This ensures that items marked as deprecated using the D-Bus annotation (and not the telepathy annotation) will be presented correctly.
-rw-r--r--doc/templates/devhelp.devhelp22
-rw-r--r--doc/templates/errors.html4
-rw-r--r--doc/templates/fullindex.html4
-rw-r--r--doc/templates/generic-types.html4
-rw-r--r--doc/templates/index.html4
-rw-r--r--doc/templates/interface.html16
-rw-r--r--doc/templates/interfaces.html4
7 files changed, 19 insertions, 19 deletions
diff --git a/doc/templates/devhelp.devhelp2 b/doc/templates/devhelp.devhelp2
index 6cf685ac..ca0a3ba6 100644
--- a/doc/templates/devhelp.devhelp2
+++ b/doc/templates/devhelp.devhelp2
@@ -12,7 +12,7 @@
#for $obj in $spec.everything.values() + $spec.types.values() + $spec.errors.values()
#for $entry in $obj.get_index_entries()
<keyword type="$obj.devhelp_name" name="$entry" link="$obj.get_url()" #slurp
-#if $obj.deprecated: deprecated="true" #slurp
+#if $obj.is_deprecated: deprecated="true" #slurp
/>
#end for
#end for
diff --git a/doc/templates/errors.html b/doc/templates/errors.html
index dc580eed..4e231a7e 100644
--- a/doc/templates/errors.html
+++ b/doc/templates/errors.html
@@ -19,14 +19,14 @@
<h3>Errors</h3>
<table class="summary">
#for $error in $spec.sorted_errors
- #if $error.deprecated
+ #if $error.is_deprecated
<tr class="deprecated">
#else
<tr>
#end if
<td><a href="$error.get_url()">$error.short_name</a></td>
<td>
- #if $error.deprecated: (deprecated)
+ #if $error.is_deprecated: (deprecated)
</td>
</tr>
#end for
diff --git a/doc/templates/fullindex.html b/doc/templates/fullindex.html
index 7ad3153e..a78116b9 100644
--- a/doc/templates/fullindex.html
+++ b/doc/templates/fullindex.html
@@ -37,14 +37,14 @@
#for l, g in $groups
<tr><th colspan="3"><a name="$l"></a>$l</th></tr>
#for $n in $g
- #if $n[1].deprecated
+ #if $n[1].is_deprecated
<tr class="deprecated">
#else
<tr>
#end if
<td>
<a href="$n[1].get_url()" title="$n[1].get_title()">$n[0]</a>
- #if $n[1].deprecated: (deprecated)
+ #if $n[1].is_deprecated: (deprecated)
</td>
<td>$n[1].get_type_name()</td>
<td>
diff --git a/doc/templates/generic-types.html b/doc/templates/generic-types.html
index c4ed932c..87f72f73 100644
--- a/doc/templates/generic-types.html
+++ b/doc/templates/generic-types.html
@@ -19,7 +19,7 @@
<h3>Generic Types</h3>
<table class="summary">
#for $type in $spec.generic_types
- #if $type.deprecated
+ #if $type.is_deprecated
<tr class="deprecated">
#else
<tr>
@@ -28,7 +28,7 @@
<td>$type.get_type_name()</td>
<td>$type.dbus_type</td>
<td>
- #if $type.deprecated: (deprecated)
+ #if $type.is_deprecated: (deprecated)
</td>
</tr>
#end for
diff --git a/doc/templates/index.html b/doc/templates/index.html
index 7c03fe6c..2b886179 100644
--- a/doc/templates/index.html
+++ b/doc/templates/index.html
@@ -48,7 +48,7 @@
#else
#if $item.causes_havoc
<li class="causes-havoc">
- #elif $item.deprecated
+ #elif $item.is_deprecated
<li class="deprecated">
#else
<li>
@@ -56,7 +56,7 @@
<a href="$item.get_url()">$item.name</a>
#if $item.causes_havoc
(unstable)
- #elif $item.deprecated
+ #elif $item.is_deprecated
(deprecated)
#end if
</li>
diff --git a/doc/templates/interface.html b/doc/templates/interface.html
index 26db20ec..feac841a 100644
--- a/doc/templates/interface.html
+++ b/doc/templates/interface.html
@@ -40,7 +40,7 @@
<h3>Methods</h3>
<table class="summary">
#for $method in $interface.methods
- #if $method.deprecated
+ #if $method.is_deprecated
<tr class="deprecated">
#else
<tr>
@@ -50,7 +50,7 @@
<td>&#8594;</td>
<td>$method.get_out_args()</td>
<td>
- #if $method.deprecated: (deprecated)
+ #if $method.is_deprecated: (deprecated)
</td>
</tr>
#end for
@@ -61,7 +61,7 @@
<h3>Signals</h3>
<table class="summary">
#for $signal in $interface.signals
- #if $signal.deprecated
+ #if $signal.is_deprecated
<tr class="deprecated">
#else
<tr>
@@ -69,7 +69,7 @@
<td><a href="$signal.get_url()">$signal.short_name</a></td>
<td>($signal.get_args())</td>
<td>
- #if $signal.deprecated: (deprecated)
+ #if $signal.is_deprecated: (deprecated)
</td>
</tr>
#end for
@@ -80,7 +80,7 @@
<h3>Properties</h3>
<table class="summary">
#for $property in $interface.properties
- #if $property.deprecated
+ #if $property.is_deprecated
<tr class="deprecated">
#else
<tr>
@@ -93,7 +93,7 @@
<td>$property.get_access()</td>
<td>$property.get_flag_summary()</td>
<td>
- #if $property.deprecated: (deprecated)
+ #if $property.is_deprecated: (deprecated)
</td>
</tr>
#end for
@@ -151,7 +151,7 @@
<h3>Types</h3>
<table class="summary">
#for $type in $interface.types
- #if type.deprecated
+ #if type.is_deprecated
<tr class="deprecated">
#else
<tr>
@@ -160,7 +160,7 @@
<td>$type.get_type_name()</td>
<td>$type.dbus_type</td>
<td>
- #if $type.deprecated: (deprecated)
+ #if $type.is_deprecated: (deprecated)
</td>
</tr>
#end for
diff --git a/doc/templates/interfaces.html b/doc/templates/interfaces.html
index a93334c6..bf9e0ffc 100644
--- a/doc/templates/interfaces.html
+++ b/doc/templates/interfaces.html
@@ -23,7 +23,7 @@
#for $interface in $spec.interfaces
#if $interface.causes_havoc
<li class="causes-havoc">
- #elif $interface.deprecated
+ #elif $interface.is_deprecated
<li class="deprecated">
#else
<li>
@@ -31,7 +31,7 @@
<a href="$interface.get_url()">$interface.name</a>
#if $interface.causes_havoc
(unstable)
- #elif $interface.deprecated
+ #elif $interface.is_deprecated
(deprecated)
#end if
</li>