Fixed default font retrieval for windows. This caused a minor issue with
authorMarijn van Vliet <marijn.vanvliet@med.kuleuven.be>
Sat, 18 Dec 2010 23:44:27 +0000 (00:44 +0100)
committerMarijn van Vliet <marijn.vanvliet@med.kuleuven.be>
Sat, 18 Dec 2010 23:46:09 +0000 (00:46 +0100)
textgrid size calcuations.

libchimara/style.c

index 74a64378c9b16d2012ad88a1ab8ed3834ebc5718..c42a659b39cc73ed24df46cc57914c6c1c3c4806 100644 (file)
@@ -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;
 }