Commit 8ad58cc8 authored by Morten Welinder's avatar Morten Welinder

Oops...

parent 6bb20b43
1999-06-15 Morten Welinder <terra@diku.dk>
* src/style.c (style_font_new_simple): Fix memory access problem.
* src/style.c (font_init): Rework. (Work in progress. Things
should work ok, but will become even better.)
(style_font_new_simple): Revert to loading a font, not a fontset.
......
1999-06-15 Morten Welinder <terra@diku.dk>
* src/style.c (style_font_new_simple): Fix memory access problem.
* src/style.c (font_init): Rework. (Work in progress. Things
should work ok, but will become even better.)
(style_font_new_simple): Revert to loading a font, not a fontset.
......
1999-06-15 Morten Welinder <terra@diku.dk>
* src/style.c (style_font_new_simple): Fix memory access problem.
* src/style.c (font_init): Rework. (Work in progress. Things
should work ok, but will become even better.)
(style_font_new_simple): Revert to loading a font, not a fontset.
......
1999-06-15 Morten Welinder <terra@diku.dk>
* src/style.c (style_font_new_simple): Fix memory access problem.
* src/style.c (font_init): Rework. (Work in progress. Things
should work ok, but will become even better.)
(style_font_new_simple): Revert to loading a font, not a fontset.
......
......@@ -154,10 +154,14 @@ style_font_new_simple (const char *font_name, int units)
#endif
g_free (font_name_with_size);
font = g_new0 (StyleFont, 1);
font->font_name = font_name_copy;
font->units = units;
font->font = gdk_font;
if (!gdk_font) {
key.font_name = font_name_copy;
g_hash_table_insert (style_font_negative_hash,
&key, &key);
font, font);
#ifdef DEBUG_FONTS
printf ("was not resolved.\n\n");
#endif
......@@ -169,11 +173,6 @@ style_font_new_simple (const char *font_name, int units)
my_gdk_actual_font_name (gdk_font));
#endif
font = g_new0 (StyleFont, 1);
font->font_name = font_name_copy;
font->units = units;
font->font = gdk_font;
font_compute_hints (font);
g_hash_table_insert (style_font_hash, font, font);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment