git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@149
ddfedd41-794f-dd11-ae45-
00112f111e67
pango_font_description_free(priv->default_font_desc);
pango_font_description_free(priv->monospace_font_desc);
g_free(priv->current_dir);
- g_hash_table_destroy(priv->default_styles);
+ g_hash_table_destroy(priv->default_styles->text_buffer);
+ g_hash_table_destroy(priv->default_styles->text_grid);
+ g_hash_table_destroy(priv->current_styles->text_buffer);
+ g_hash_table_destroy(priv->current_styles->text_grid);
G_OBJECT_CLASS(chimara_glk_parent_class)->finalize(object);
}
glk_set_style_stream(glk_data->current_stream, styl);
}
+static const gchar* TAG_NAMES[] = {
+ "normal",
+ "emphasized",
+ "preformatted",
+ "header",
+ "subheader",
+ "alert",
+ "note",
+ "block-quote",
+ "input",
+ "user1",
+ "user2"
+};
+
/* Internal function: mapping from style enum to tag name */
static gchar*
get_tag_name(glui32 style)
G_GNUC_INTERNAL void style_init_textgrid(GtkTextBuffer *buffer);
G_GNUC_INTERNAL void style_init();
-static const gchar* TAG_NAMES[] = {
- "normal",
- "emphasized",
- "preformatted",
- "header",
- "subheader",
- "alert",
- "note",
- "block-quote",
- "input",
- "user1",
- "user2"
-};
-
typedef struct StyleSet {
GHashTable *text_grid;
GHashTable *text_buffer;