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

@ -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;
}