* <listitem><para>An appropriate interpreter plugin for the autodetected
* game file type could not be found.</para></listitem>
* </varlistentry>
+ * <varlistentry>
+ * <term>CHIMARA_PLUGIN_ALREADY_RUNNING</term>
+ * <listitem><para>A plugin was opened while there was already another plugin
+ * running in the widget.</para></listitem>
+ * </varlistentry>
* </variablelist>
*/
typedef enum _ChimaraError {
CHIMARA_LOAD_MODULE_ERROR,
CHIMARA_NO_GLK_MAIN,
- CHIMARA_PLUGIN_NOT_FOUND
+ CHIMARA_PLUGIN_NOT_FOUND,
+ CHIMARA_PLUGIN_ALREADY_RUNNING
} ChimaraError;
/**
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);
gboolean chimara_glk_get_running(ChimaraGlk *glk);
void chimara_glk_feed_char_input(ChimaraGlk *glk, guint32 keycode);
void chimara_glk_feed_line_input(ChimaraGlk *glk, const gchar *text);
-void chimara_glk_reset(ChimaraGlk *self);
G_END_DECLS