X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.c;h=c42a659b39cc73ed24df46cc57914c6c1c3c4806;hb=66bbd9296bdb139e6abe95661b7d11d72a52f3c3;hp=0aa4db282bccbcc031d3d4f9dccae2a6450d6b96;hpb=090a87d90e12fd7ad43ba888539238069b4241f4;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/style.c b/libchimara/style.c index 0aa4db2..c42a659 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -38,8 +38,8 @@ glk_set_style(glui32 styl) glk_set_style_stream(glk_data->current_stream, styl); } +/* The first 11 tag names must correspond to the first 11 glk tag names as defined below */ static const gchar* TAG_NAMES[] = { - "default", "normal", "emphasized", "preformatted", @@ -52,9 +52,11 @@ static const gchar* TAG_NAMES[] = { "user1", "user2", "hyperlink", - "pager" + "pager", + "default" }; +/* The first 11 glk tag names must correspond to the first 11 tag names as defined above */ static const gchar* GLK_TAG_NAMES[] = { "glk-normal", "glk-emphasized", @@ -374,6 +376,7 @@ style_init(ChimaraGlk *glk) for(i=0; istyles->text_grid, "normal"); + tag = g_hash_table_lookup(glk_data->styles->text_grid, "default"); break; case wintype_TextBuffer: - normal = g_hash_table_lookup(glk_data->styles->text_buffer, "normal"); + tag = g_hash_table_lookup(glk_data->styles->text_buffer, "default"); break; default: return NULL; } PangoFontDescription *font; - g_object_get( G_OBJECT(normal), "font-desc", &font, NULL ); + g_object_get( G_OBJECT(tag), "font-desc", &font, NULL ); return font; }