From: Marijn van Vliet Date: Sat, 18 Dec 2010 23:44:27 +0000 (+0100) Subject: Fixed default font retrieval for windows. This caused a minor issue with X-Git-Tag: v0.9~159^2~6 X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=66bbd9296bdb139e6abe95661b7d11d72a52f3c3;p=projects%2Fchimara%2Fchimara.git Fixed default font retrieval for windows. This caused a minor issue with textgrid size calcuations. --- diff --git a/libchimara/style.c b/libchimara/style.c index 74a6437..c42a659 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -1083,21 +1083,21 @@ PangoFontDescription * get_current_font(guint32 wintype) { ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key); - GtkTextTag *normal; + GtkTextTag *tag; switch(wintype) { case wintype_TextGrid: - normal = g_hash_table_lookup(glk_data->styles->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; }