Commit e00ef950 authored by Matthias Clasen's avatar Matthias Clasen

Avoid a crash

parent 35de5c5b
2005-11-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
Don't crash if there is no builtin icon.
2005-11-14 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
......
2005-11-14 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c (gtk_icon_theme_get_icon_sizes):
Don't crash if there is no builtin icon.
2005-11-14 Michael Natterer <mitch@imendio.com>
* gtk/gtkcellrenderertoggle.c (gtk_cell_renderer_toggle_set_property):
......
......@@ -1517,12 +1517,13 @@ gtk_icon_theme_get_icon_sizes (GtkIconTheme *icon_theme,
{
icons = g_hash_table_lookup (icon_theme_builtin_icons, icon_name);
for ( ; icons; icons = icons->next);
{
BuiltinIcon *icon = icons->data;
while (icons)
{
BuiltinIcon *icon = icons->data;
g_hash_table_insert (sizes, GINT_TO_POINTER (icon->size), NULL);
}
g_hash_table_insert (sizes, GINT_TO_POINTER (icon->size), NULL);
icons = icons->next;
}
}
r = result = g_new0 (gint, g_hash_table_size (sizes) + 1);
......
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