Small patch to gtkstyle.c
- From: "Geoffrey T. Dairiki" <dairiki apl washington edu>
- To: gtk-list redhat com
- Cc: ftp-admin gimp org
- Subject: Small patch to gtkstyle.c
- Date: Fri, 5 Dec 1997 17:12:23 -0800
Hi,
I've just uploaded this patch to ftp.gimp.org. I've also included
it in it's entirety here, since it's miniscule.
Jeff
====
Patch: gtk-dairiki-971205-0
This is a bug fig for gtkstyle.c.
Without this patch, if a style is attached twice or more, then
unattached (down to zero attach_count), its gc's get destroyed,
but it doesn't get removed from the attached style GCache.
If the style is later re-attached, it doesn't get re-initialized,
and attempts are made to use null gc's.
(This is because GCache's implement their own reference counts ---
a key must be removed as many times as it's been inserted before
it goes away.)
The patch is on snapshot gtk+-971201.
--- gtk/gtkstyle.c.orig Mon, 01 Dec 1997 11:12:40 -0800 dairiki (gtk/e/37_gtkstyle.c 1.2 644) snapshot.971201.3
+++ gtk/gtkstyle.c Fri, 05 Dec 1997 16:49:43 -0800 dairiki (gtk/e/37_gtkstyle.c 1.2 644) snapshot.971201.3(w)
@@ -297,8 +297,8 @@
style->depth = -1;
style->colormap = NULL;
- gtk_style_remove (style);
}
+ gtk_style_remove (style);
}
GtkStyle*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]