Fix a crash

This commit is contained in:
Matthias Clasen 2005-12-19 05:28:49 +00:00
parent d88e9fe58d
commit af467cfb65
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-12-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (get_color_hash): Don't crash if
there is no color scheme. (#324429, Diego Gonzalez)
2005-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_module_load):

View File

@ -1,3 +1,8 @@
2005-12-17 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (get_color_hash): Don't crash if
there is no color scheme. (#324429, Diego Gonzalez)
2005-12-16 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystem.c (gtk_file_system_module_load):

View File

@ -1749,6 +1749,9 @@ get_color_hash (GtkSettings *settings)
data = (ColorSchemeData *)g_object_get_data (G_OBJECT (settings),
"gtk-color-scheme");
if (!data)
return NULL;
return data->color_hash;
}