summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-01-24 17:19:21 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-01-24 17:19:21 +0000
commita1cc053be2925b7eea6fc5b890db52658c2fcfef (patch)
tree7b624fd27f6b43fed126c749f5770a3ecf5bd36c /gdk
parent42ffb3727e72e9b5ed61e14447f0122f79def4a3 (diff)
downloadgdk-pixbuf-a1cc053be2925b7eea6fc5b890db52658c2fcfef.tar.gz
Fix reversed assertion. (Pointed out by Austin Donnelly
Sun Jan 24 12:17:39 1999 Owen Taylor <otaylor@redhat.com> * gdk/gdkcolor.c (gdk_colormap_real_destroy): Fix reversed assertion. (Pointed out by Austin Donnelly <austin@greenend.org.uk>) * gtk/gtkruler.c (gtk_ruler_expose): Remove unecessary and harmful call to gtk_paint_box(). We are going to paint onto the backing store later anyways.
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkcolor.c2
-rw-r--r--gdk/x11/gdkcolor-x11.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkcolor.c b/gdk/gdkcolor.c
index f84f57025..41f6286de 100644
--- a/gdk/gdkcolor.c
+++ b/gdk/gdkcolor.c
@@ -145,7 +145,7 @@ gdk_colormap_real_destroy (GdkColormap *colormap)
GdkColormapPrivate *private = (GdkColormapPrivate*) colormap;
g_return_if_fail (colormap != NULL);
- g_return_if_fail (private->ref_count > 0);
+ g_return_if_fail (private->ref_count == 0);
gdk_colormap_remove (colormap);
XFreeColormap (private->xdisplay, private->xcolormap);
diff --git a/gdk/x11/gdkcolor-x11.c b/gdk/x11/gdkcolor-x11.c
index f84f57025..41f6286de 100644
--- a/gdk/x11/gdkcolor-x11.c
+++ b/gdk/x11/gdkcolor-x11.c
@@ -145,7 +145,7 @@ gdk_colormap_real_destroy (GdkColormap *colormap)
GdkColormapPrivate *private = (GdkColormapPrivate*) colormap;
g_return_if_fail (colormap != NULL);
- g_return_if_fail (private->ref_count > 0);
+ g_return_if_fail (private->ref_count == 0);
gdk_colormap_remove (colormap);
XFreeColormap (private->xdisplay, private->xcolormap);