X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fstyle.c;h=9779a37e2c474ebf9ad0c6022e88637ee41ff70b;hb=ae15de3b9d5bfa1246c4c11d0ff851ac9a7b5f7c;hp=74a64378c9b16d2012ad88a1ab8ed3834ebc5718;hpb=5140be18f4a2b3e053da53868e54285c99a8afd4;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/style.c b/libchimara/style.c index 74a6437..9779a37 100644 --- a/libchimara/style.c +++ b/libchimara/style.c @@ -319,12 +319,12 @@ style_init(ChimaraGlk *glk) tag = gtk_text_tag_new("header"); //g_object_set(tag, "font-desc", default_font_desc, "size-points", 18.0, "weight", PANGO_WEIGHT_BOLD, NULL); - g_object_set(tag, "size-points", 18.0, "weight", PANGO_WEIGHT_BOLD, NULL); + g_object_set(tag, "weight", PANGO_WEIGHT_BOLD, NULL); g_hash_table_insert(default_text_buffer_styles, "header", tag); tag = gtk_text_tag_new("subheader"); //g_object_set(tag, "font-desc", default_font_desc, "size-points", 14.0, "weight", PANGO_WEIGHT_BOLD, NULL); - g_object_set(tag, "size-points", 14.0, "weight", PANGO_WEIGHT_BOLD, NULL); + g_object_set(tag, "weight", PANGO_WEIGHT_BOLD, NULL); g_hash_table_insert(default_text_buffer_styles, "subheader", tag); tag = gtk_text_tag_new("alert"); @@ -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; }