Top | ![]() |
![]() |
![]() |
![]() |
DhBook * | dh_book_new () |
GList * | dh_book_get_links () |
GList * | dh_book_get_completions () |
GNode * | dh_book_get_tree () |
const gchar * | dh_book_get_id () |
const gchar * | dh_book_get_title () |
const gchar * | dh_book_get_language () |
GFile * | dh_book_get_index_file () |
gboolean | dh_book_get_enabled () |
void | dh_book_set_enabled () |
gint | dh_book_cmp_by_path () |
gint | dh_book_cmp_by_id () |
gint | dh_book_cmp_by_title () |
A DhBook usually contains the documentation for one library (or
application), for example GLib or GTK+. There is one DhBook for each index
file found and parsed (an index file is a file with the extension *.devhelp
or *.devhelp2
).
GNode *
dh_book_get_tree (DhBook *book
);
Gets the general structure of the book, as a tree. The tree contains only
DhLink's of type DH_LINK_TYPE_BOOK
or DH_LINK_TYPE_PAGE
. The other
DhLink's are not contained in the tree. To have a list of
all DhLink's part of the book, you need to call
dh_book_get_links()
.
const gchar *
dh_book_get_id (DhBook *book
);
Gets the book ID. In the Devhelp index file format version 2, it is actually the “name”, not the ID, but “book ID” is clearer, “book name” can be confused with the title.
void dh_book_set_enabled (DhBook *book
,gboolean enabled
);
Enables or disables the book.
gint dh_book_cmp_by_path (DhBook *a
,DhBook *b
);
Compares the DhBook's by their path to the index file.
gint dh_book_cmp_by_id (DhBook *a
,DhBook *b
);
Compares the DhBook's by their IDs, with g_ascii_strcasecmp()
.
“deleted”
signalvoid user_function (DhBook *book, gpointer user_data)
book |
the DhBook emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“disabled”
signalvoid user_function (DhBook *book, gpointer user_data)
book |
the DhBook emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“enabled”
signalvoid user_function (DhBook *book, gpointer user_data)
book |
the DhBook emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last