projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed default font retrieval for windows. This caused a minor issue with
[projects/chimara/chimara.git]
/
libchimara
/
style.c
diff --git
a/libchimara/style.c
b/libchimara/style.c
index 74a64378c9b16d2012ad88a1ab8ed3834ebc5718..c42a659b39cc73ed24df46cc57914c6c1c3c4806 100644
(file)
--- 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);
get_current_font(guint32 wintype)
{
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
- GtkTextTag *
normal
;
+ GtkTextTag *
tag
;
switch(wintype) {
case wintype_TextGrid:
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:
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;
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;
}
return font;
}