Make sure we always have a color_hash. (#423916, Jens Granseuer)

2007-04-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtksettings.c (settings_update_color_scheme):
        Make sure we always have a color_hash.  (#423916, Jens Granseuer)



svn path=/trunk/; revision=17748
This commit is contained in:
Matthias Clasen 2007-04-30 19:27:08 +00:00 committed by Matthias Clasen
parent 1aa8a09fc2
commit c3d16b2780
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-04-30 Matthias Clasen <mclasen@redhat.com>
* gtk/gtksettings.c (settings_update_color_scheme):
Make sure we always have a color_hash. (#423916, Jens Granseuer)
2007-04-30 Christian Persch <chpe@gnome.org>
* docs/reference/gtk/gtk-sections.txt:

View File

@ -1945,6 +1945,8 @@ settings_update_color_scheme (GtkSettings *settings)
GValue value = { 0, };
data = g_new0 (ColorSchemeData, 1);
data->color_hash = g_hash_table_new_full (g_str_hash, g_str_equal, g_free,
(GDestroyNotify) gdk_color_free);
g_object_set_data_full (G_OBJECT (settings), "gtk-color-scheme",
data, (GDestroyNotify) color_scheme_data_free);