[tracker/sam/ontology-doc-fixes: 2/2] docs: Fix the icons in documentation of RDF properties



commit af08d0c0b179d90d2403eaba3e2669c909528c5f
Author: Sam Thursfield <sam afuera me uk>
Date:   Mon Jun 29 21:45:48 2020 +0200

    docs: Fix the icons in documentation of RDF properties
    
    These needed updating after tracker: properties moved to nrl:
    in https://gitlab.gnome.org/GNOME/tracker/-/merge_requests/274/
    
    This also fixes a mismatch of the <entry> tag that was preventing
    the icons from appearing.
    
    The icons are still without tooltips as this isn't possible with
    gtk-doc[1], making them a bit cryptic. Perhaps we should include
    a key somewhere...
    
    [1]: https://gitlab.gnome.org/GNOME/gtk-doc/-/issues/123

 docs/tools/ttlresource2xml.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/docs/tools/ttlresource2xml.c b/docs/tools/ttlresource2xml.c
index 557df1c23..c21b3fc2c 100644
--- a/docs/tools/ttlresource2xml.c
+++ b/docs/tools/ttlresource2xml.c
@@ -542,7 +542,7 @@ print_property_table (FILE          *f,
                g_fprintf (f, "<entry>");
 
                if (prop->deprecated) {
-                       print_flag (f, "tracker-deprecated", "icon-deprecated.svg",
+                       print_flag (f, "nrl-deprecated", "icon-deprecated.svg",
                                    "This property is deprecated.");
                }
 
@@ -559,7 +559,6 @@ print_property_table (FILE          *f,
                                print_flag (f, superprop_id, "icon-superproperty.svg", message);
                        }
                }
-               g_fprintf (f, "</entry>");
 
                if (prop->max_cardinality != NULL && atoi (prop->max_cardinality) == 1) {
                        /* Single valued properties are most common, so we don't display this. */
@@ -575,10 +574,12 @@ print_property_table (FILE          *f,
                }
 
                if (prop->fulltextIndexed) {
-                       print_flag (f, "tracker-fulltextIndexed", "icon-fulltextindexed.svg",
+                       print_flag (f, "nrl-fulltextIndexed", "icon-fulltextindexed.svg",
                                    "This property is full-text-indexed, and can be looked up through 
<literal>fts:match</literal>");
                }
 
+               g_fprintf (f, "</entry>");
+
                /* Description column */
                g_fprintf (f, "<entry>");
                if (prop->description) {
@@ -622,14 +623,14 @@ print_ontology_class (Ontology      *ontology,
 
                if (klass->deprecated) {
                        g_fprintf (f, "<para>");
-                       print_flag (f, "tracker-deprecated", "icon-deprecated.svg", "Deprecated icon");
+                       print_flag (f, "nrl-deprecated", "icon-deprecated.svg", "Deprecated icon");
                        g_fprintf (f, "This class is deprecated.");
                        g_fprintf (f, "</para>");
                }
 
                if (klass->notify) {
                        g_fprintf (f, "<para>");
-                       print_flag (f, "tracker-notify", "icon-notify.svg", "Notify icon");
+                       print_flag (f, "nrl-notify", "icon-notify.svg", "Notify icon");
                        g_fprintf (f, "This class emits notifications about changes, and can "
                                     "be monitored using <link 
linkend=\"TrackerNotifier\">TrackerNotifier</link>.");
                        g_fprintf (f, "</para>");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]