X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fchimara-glk.h;h=b0709c0c3ae9019b729b8575797b2f186fedf453;hb=8074ac45857e41586d907edc3e3b88425908170e;hp=dfa669e3afa1b4f281712ec65a47876be89dfbd3;hpb=2090f5576f520435b22417c3246ad2286d95a391;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/chimara-glk.h b/libchimara/chimara-glk.h index dfa669e..b0709c0 100644 --- a/libchimara/chimara-glk.h +++ b/libchimara/chimara-glk.h @@ -60,12 +60,18 @@ typedef struct _ChimaraGlkClass { * An appropriate interpreter plugin for the autodetected * game file type could not be found. * + * + * CHIMARA_PLUGIN_ALREADY_RUNNING + * A plugin was opened while there was already another plugin + * running in the widget. + * * */ typedef enum _ChimaraError { CHIMARA_LOAD_MODULE_ERROR, CHIMARA_NO_GLK_MAIN, - CHIMARA_PLUGIN_NOT_FOUND + CHIMARA_PLUGIN_NOT_FOUND, + CHIMARA_PLUGIN_ALREADY_RUNNING } ChimaraError; /** @@ -82,12 +88,9 @@ void chimara_glk_set_interactive(ChimaraGlk *glk, gboolean interactive); gboolean chimara_glk_get_interactive(ChimaraGlk *glk); void chimara_glk_set_protect(ChimaraGlk *glk, gboolean protect); gboolean chimara_glk_get_protect(ChimaraGlk *glk); -void chimara_glk_set_default_font_description(ChimaraGlk *glk, PangoFontDescription *font); -void chimara_glk_set_default_font_string(ChimaraGlk *glk, const gchar *font); -PangoFontDescription *chimara_glk_get_default_font_description(ChimaraGlk *glk); -void chimara_glk_set_monospace_font_description(ChimaraGlk *glk, PangoFontDescription *font); -void chimara_glk_set_monospace_font_string(ChimaraGlk *glk, const gchar *font); -PangoFontDescription *chimara_glk_get_monospace_font_description(ChimaraGlk *glk); +void chimara_glk_set_css_to_default(ChimaraGlk *glk); +gboolean chimara_glk_set_css_from_file(ChimaraGlk *glk, const gchar *filename, GError **error); +void chimara_glk_set_css_from_string(ChimaraGlk *glk, const gchar *css); void chimara_glk_set_spacing(ChimaraGlk *glk, guint spacing); guint chimara_glk_get_spacing(ChimaraGlk *glk); gboolean chimara_glk_run(ChimaraGlk *glk, const gchar *plugin, int argc, char *argv[], GError **error);