forked from AuroraMiddleware/gtk
Fix a crash
This commit is contained in:
parent
d88e9fe58d
commit
af467cfb65
@ -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>
|
2005-12-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilesystem.c (gtk_file_system_module_load):
|
* gtk/gtkfilesystem.c (gtk_file_system_module_load):
|
||||||
|
@ -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>
|
2005-12-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkfilesystem.c (gtk_file_system_module_load):
|
* gtk/gtkfilesystem.c (gtk_file_system_module_load):
|
||||||
|
@ -1749,6 +1749,9 @@ get_color_hash (GtkSettings *settings)
|
|||||||
data = (ColorSchemeData *)g_object_get_data (G_OBJECT (settings),
|
data = (ColorSchemeData *)g_object_get_data (G_OBJECT (settings),
|
||||||
"gtk-color-scheme");
|
"gtk-color-scheme");
|
||||||
|
|
||||||
|
if (!data)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
return data->color_hash;
|
return data->color_hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user