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=/branches/gtk-2-10/; revision=17749
This commit is contained in:
committed by
Matthias Clasen
parent
abf1066d78
commit
5eae4ef392
@@ -1,3 +1,11 @@
|
||||
2007-04-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk:
|
||||
|
||||
* gtk/gtksettings.c (settings_update_color_scheme):
|
||||
Make sure we always have a color_hash. (#423916, Jens
|
||||
Granseuer)
|
||||
|
||||
2007-04-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Merge from trunk:
|
||||
|
||||
@@ -1668,6 +1668,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user