projects
/
rodin
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed style_init() related errors
[rodin/chimara.git]
/
libchimara
/
style.c
diff --git
a/libchimara/style.c
b/libchimara/style.c
index 24e9833dfff1bb2a4c7f842b9e0d86dfe3122cb2..e4169d6a6aa5ade98c58a7ec43dc04e8057c7eed 100644
(file)
--- a/
libchimara/style.c
+++ b/
libchimara/style.c
@@
-826,6
+826,10
@@
get_current_font(guint32 wintype)
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
GtkTextTag *normal;
ChimaraGlkPrivate *glk_data = g_private_get(glk_data_key);
GtkTextTag *normal;
+ if( G_UNLIKELY(!glk_data->style_initialized) ) {
+ style_init();
+ }
+
switch(wintype) {
case wintype_TextGrid:
normal = g_hash_table_lookup(glk_data->current_styles->text_grid, "normal");
switch(wintype) {
case wintype_TextGrid:
normal = g_hash_table_lookup(glk_data->current_styles->text_grid, "normal");