devhelp r1101 - in trunk: . src



Author: rhult
Date: Fri Oct  3 12:05:51 2008
New Revision: 1101
URL: http://svn.gnome.org/viewvc/devhelp?rev=1101&view=rev

Log:
2008-10-03  Richard Hult  <richard imendio com>

	* src/dh-parser.c: (parser_start_node_cb): Use getters for link
	members.


Modified:
   trunk/ChangeLog
   trunk/src/dh-parser.c

Modified: trunk/src/dh-parser.c
==============================================================================
--- trunk/src/dh-parser.c	(original)
+++ trunk/src/dh-parser.c	Fri Oct  3 12:05:51 2008
@@ -220,7 +220,7 @@
 		full_link = g_strconcat (parser->base, "/", link, NULL);
 		page = extract_page_name (link);
 		dh_link = dh_link_new (DH_LINK_TYPE_PAGE, name, 
-				       ((DhLink *)parser->book_node->data)->book,
+				       dh_link_get_book (parser->book_node->data),
 				       page, full_link);
 		g_free (full_link);
 		g_free (page);
@@ -373,7 +373,7 @@
 		}
 
 		dh_link = dh_link_new (link_type, name, 
-				       ((DhLink *) parser->book_node->data)->book,
+				       dh_link_get_book (parser->book_node->data),
 				       page, full_link);
 
 		g_free (tmp);
@@ -382,7 +382,9 @@
 		g_free (page);
 
 		if (deprecated) {
-			dh_link_set_is_deprecated (dh_link, TRUE);
+			dh_link_set_flags (
+                                dh_link,
+                                dh_link_get_flags (dh_link) | DH_LINK_FLAGS_DEPRECATED);
 		}
 		
  		*parser->keywords = g_list_prepend (*parser->keywords,



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