also copy icon factories and color hashes. Fixes bug #357132.
2006-09-22 Michael Natterer <mitch@imendio.com> * gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories and color hashes. Fixes bug #357132.
This commit is contained in:
parent
6323f98da8
commit
43dd82ff0e
2 changed files with 18 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-09-22 Michael Natterer <mitch@imendio.com>
|
||||
|
||||
* gtk/gtkstyle.c (gtk_style_real_copy): also copy icon factories
|
||||
and color hashes. Fixes bug #357132.
|
||||
|
||||
2006-09-22 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Make remote bookmarks work better (#354887)
|
||||
|
|
@ -42,7 +47,7 @@
|
|||
over the FG and BG colors (they can't be set separately any more).
|
||||
|
||||
The stipple mask part of the patch doesn't work but seems to take
|
||||
the right approach and doesn't make things worse, so i applied it.
|
||||
the right approach and doesn't make things worse, so I applied it.
|
||||
|
||||
Did *not* apply the clipping part of the patch since I don't
|
||||
understand it (I don't understand the version in CVS either, but
|
||||
|
|
|
|||
|
|
@ -1583,6 +1583,8 @@ static void
|
|||
gtk_style_real_copy (GtkStyle *style,
|
||||
GtkStyle *src)
|
||||
{
|
||||
GtkStylePrivate *priv = GTK_STYLE_GET_PRIVATE (style);
|
||||
GtkStylePrivate *src_priv = GTK_STYLE_GET_PRIVATE (src);
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < 5; i++)
|
||||
|
|
@ -1621,6 +1623,16 @@ gtk_style_real_copy (GtkStyle *style,
|
|||
if (src->rc_style)
|
||||
g_object_ref (src->rc_style);
|
||||
|
||||
g_slist_foreach (style->icon_factories, (GFunc) g_object_unref, NULL);
|
||||
g_slist_free (style->icon_factories);
|
||||
style->icon_factories = g_slist_copy (src->icon_factories);
|
||||
g_slist_foreach (style->icon_factories, (GFunc) g_object_ref, NULL);
|
||||
|
||||
g_slist_foreach (priv->color_hashes, (GFunc) g_hash_table_unref, NULL);
|
||||
g_slist_free (priv->color_hashes);
|
||||
priv->color_hashes = g_slist_copy (src_priv->color_hashes);
|
||||
g_slist_foreach (priv->color_hashes, (GFunc) g_hash_table_ref, NULL);
|
||||
|
||||
/* don't copy, just clear cache */
|
||||
clear_property_cache (style);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue