summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2005-12-19 05:28:49 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-12-19 05:28:49 +0000
commitaf467cfb654135daf66fdf6d0cf14f6ae9aeb01c (patch)
tree87c56ae814c7841888de5718fc4ce12e56249b91
parentd88e9fe58d3afb14a2c4bb2823aea5fc0355144c (diff)
downloadgtk+-af467cfb654135daf66fdf6d0cf14f6ae9aeb01c.tar.gz
Fix a crash
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--gtk/gtksettings.c3
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index c0957a8e50..0605fee1b5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10
index c0957a8e50..0605fee1b5 100644
--- a/ChangeLog.pre-2-10
+++ b/ChangeLog.pre-2-10
@@ -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):
diff --git a/gtk/gtksettings.c b/gtk/gtksettings.c
index 399c8e78f7..1199c452e3 100644
--- a/gtk/gtksettings.c
+++ b/gtk/gtksettings.c
@@ -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;
}