+2007-02-28 Matthias Clasen <mclasen@redhat.com>
+
+ * gtk/gtksettings.c: Make color scheme update properly
+ when changing themes. (#402131, Benjamin Berg)
+
2007-02-28 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c: Don't leak references to the color-hash
GdkColor *color,
GHashTable *target)
{
- GdkColor *old, *new;
+ GdkColor *old;
old = g_hash_table_lookup (target, name);
if (!old || !gdk_color_equal (old, color))
{
- new = gdk_color_copy (color);
- g_hash_table_insert (target, g_strdup (name), new);
+ g_hash_table_insert (target, g_strdup (name), gdk_color_copy (color));
return TRUE;
}
}
if (gdk_color_parse (p, &color))
- changed = add_color_to_hash (name, &color, hash);
+ changed |= add_color_to_hash (name, &color, hash);
}
g_free (copy);