Index: background.c
===================================================================
RCS file: /cvs/gnome/libzvt/libzvt/background.c,v
retrieving revision 1.18
diff -u -r1.18 background.c
--- background.c	13 May 2002 18:02:43 -0000	1.18
+++ background.c	18 May 2002 09:40:13 -0000
@@ -649,6 +649,9 @@
   GdkColor pen;
   GdkColormap *cmap = 0;
 
+  if (!GTK_WIDGET_REALIZED (term))
+      return;
+  
   /* if we have no 'background image', use a solid colour */
   if (b == NULL
       || b->type == ZVT_BGTYPE_NONE) {
@@ -805,6 +808,9 @@
   struct zvt_background *b = zp->background;
   int forcedraw = 0;
 
+  if (!GTK_WIDGET_REALIZED (term))
+      return;
+  
   if (b == NULL ||
       !(b->scale.type == ZVT_BGSCALE_WINDOW
         || b->offset.type == ZVT_BGTRANSLATE_ROOT))
