mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-09-20 08:11:56 +00:00
Fixed bug 1906 (text size under icons is not always correct)
* libnautilus-extensions/nautilus-font-factory.c: (font_hash_node_lookup_with_insertion): Inserting a font into the font cache hashtable was passing the wrong pointer for the font name: name (which is reused each time in this routine) instead of node->name (which is part of the hash table node and won't change). Also took off unnecessary gpointer and gconstpointer casts. Darin spotted the problem after I aimed him at this function.
This commit is contained in:
parent
cbdd2dded5
commit
e254dbfe1a
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2000-08-07 John Sullivan <sullivan@eazel.com>
|
||||
|
||||
Fixed bug 1906 (text size under icons is not always correct)
|
||||
|
||||
* libnautilus-extensions/nautilus-font-factory.c:
|
||||
(font_hash_node_lookup_with_insertion): Inserting a font into
|
||||
the font cache hashtable was passing the wrong pointer for the
|
||||
font name: name (which is reused each time in this routine) instead
|
||||
of node->name (which is part of the hash table node and won't change).
|
||||
Also took off unnecessary gpointer and gconstpointer casts. Darin
|
||||
spotted the problem after I aimed him at this function.
|
||||
|
||||
Mon Aug 07 05:00:55 2000 George Lebl <jirka@5z.com>
|
||||
|
||||
* libnautilus-extentions/nautilus-list.c (nautilus_list_draw):
|
||||
|
|
|
@ -186,7 +186,7 @@ font_hash_node_lookup_with_insertion (const char *name)
|
|||
|
||||
gdk_font_ref (node->font);
|
||||
|
||||
g_hash_table_insert (factory->fonts, (gpointer) name, (gpointer) node);
|
||||
g_hash_table_insert (factory->fonts, node->name, node);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -186,7 +186,7 @@ font_hash_node_lookup_with_insertion (const char *name)
|
|||
|
||||
gdk_font_ref (node->font);
|
||||
|
||||
g_hash_table_insert (factory->fonts, (gpointer) name, (gpointer) node);
|
||||
g_hash_table_insert (factory->fonts, node->name, node);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue