devhelp r1121 - in trunk: . src



Author: rhult
Date: Sat Oct  4 13:53:59 2008
New Revision: 1121
URL: http://svn.gnome.org/viewvc/devhelp?rev=1121&view=rev

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

	* src/dh-link.c (dh_link_get_book_id): Make this work for books as
	well (return their own ids).


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

Modified: trunk/src/dh-link.c
==============================================================================
--- trunk/src/dh-link.c	(original)
+++ trunk/src/dh-link.c	Sat Oct  4 13:53:59 2008
@@ -184,6 +184,10 @@
 const gchar *
 dh_link_get_book_id (DhLink *link)
 {
+        if (link->type == DH_LINK_TYPE_BOOK) {
+                return link->id;
+        }
+
         if (link->book) {
                 return link->book->id;
         }



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