Top | ![]() |
![]() |
![]() |
![]() |
DhLanguage * | dh_language_new () |
void | dh_language_free () |
const gchar * | dh_language_get_name () |
gint | dh_language_compare () |
gint | dh_language_compare_by_name () |
gint | dh_language_get_n_books_enabled () |
void | dh_language_inc_n_books_enabled () |
gboolean | dh_language_dec_n_books_enabled () |
DhLanguage *
dh_language_new (const gchar *name
);
Create a new DhLanguage object.
void
dh_language_free (DhLanguage *language
);
dh_language_free
has been deprecated since version 3.24 and should not be used in newly-written code.
Use g_object_unref()
instead.
Free memory associated with the language.
const gchar *
dh_language_get_name (DhLanguage *language
);
Get the language name.
gint dh_language_compare (DhLanguage *language_a
,DhLanguage *language_b
);
Compares the name of language_a
with the name language_b
.
gint dh_language_compare_by_name (DhLanguage *language_a
,const gchar *language_name_b
);
Compares the name of language_a
with language_name_b
.
gint
dh_language_get_n_books_enabled (DhLanguage *language
);
Get the number of enabled books
void
dh_language_inc_n_books_enabled (DhLanguage *language
);
Increase the number of enabled books for this language.
gboolean
dh_language_dec_n_books_enabled (DhLanguage *language
);
Decrease the number of enabled books for this language.