mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
1aa8a09fc2
commit
c3d16b2780
@ -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:
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user