[comp.windows.x] Tgif-1.12

william@oahu.cs.ucla.edu (William Cheng) (08/02/90)

I've just put tgif-1.12 in the following places for anonymous ftp:

	expo.lcs.mit.edu	contrib/tgif-1.12.tar.Z
	rye.cs.ucla.edu		pub/tgif-1.12.tar.Z

Here's a short list of added features/bug fixes.

1) Fix bugs related to stretching boxes and ovals.  It used to complain
   that object width or height is ZERO while it's not.
2) Fix a minor bug related to a seg fault when exiting tgif.  This doesn't
   really cause problem before.

The following is the patch to take tgif from version 1.11 to 1.12.
---------------------------------> cut here <---------------------------------
*** color.c.orig	Thu Aug  2 09:20:39 1990
--- color.c	Thu Aug  2 09:20:40 1990
***************
*** 6,10 ****
  #ifndef lint
  static char RCSid[] =
!       "@(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/color.c,v 1.10 90/07/15 17:47:00 william Exp $";
  #endif
  
--- 6,10 ----
  #ifndef lint
  static char RCSid[] =
!       "@(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/color.c,v 1.11 90/07/31 15:11:08 william Exp $";
  #endif
  
***************
*** 376,380 ****
     cfree (colorPixels);
     cfree (xorColorPixels);
!    for (i = 0; i < maxColors; i++) cfree (colorMenuItems[i]);
     cfree (colorMenuItems);
  
--- 376,380 ----
     cfree (colorPixels);
     cfree (xorColorPixels);
!    if (colorDisplay) for (i = 0; i < maxColors; i++) cfree (colorMenuItems[i]);
     cfree (colorMenuItems);
  
*** stretch.c.orig	Thu Aug  2 09:21:01 1990
--- stretch.c	Thu Aug  2 09:21:03 1990
***************
*** 6,10 ****
  #ifndef lint
  static char RCSid[] =
!       "@(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/stretch.c,v 1.6 90/07/08 22:22:08 william Exp $";
  #endif
  
--- 6,10 ----
  #ifndef lint
  static char RCSid[] =
!       "@(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/stretch.c,v 1.8 90/08/02 08:57:17 william Exp $";
  #endif
  
***************
*** 531,541 ****
           stretched_rbx, stretched_rby);
  
!    if (moveX == pivotX)
     {
!       Msg ("Can not stretch!  Object has ZERO width!"); return;
     }
!    else if (moveY == pivotY)
     {
!       Msg ("Can not stretch!  Object has ZERO height!"); return;
     }
  
--- 531,551 ----
           stretched_rbx, stretched_rby);
  
!    if (ltx == rbx)
     {
!       Msg ("Can not stretch!  Object has ZERO width!");
!       SelBox (drawWindow, revDefaultGC, stretched_ltx, stretched_lty,
!             stretched_rbx, stretched_rby);
!       SelBox (drawWindow, revDefaultGC, stretched_sel_ltx-1,
!             stretched_sel_lty-1, stretched_sel_rbx+1, stretched_sel_rby+1);
!       return;
     }
!    else if (lty == rby)
     {
!       Msg ("Can not stretch!  Object has ZERO height!");
!       SelBox (drawWindow, revDefaultGC, stretched_ltx, stretched_lty,
!             stretched_rbx, stretched_rby);
!       SelBox (drawWindow, revDefaultGC, stretched_sel_ltx-1,
!             stretched_sel_lty-1, stretched_sel_rbx+1, stretched_sel_rby+1);
!       return;
     }
  
*** version.c.orig	Thu Aug  2 09:21:10 1990
--- version.c	Thu Aug  2 09:21:10 1990
***************
*** 6,11 ****
  #ifndef lint
  static char RCSid[] =
!       "@(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/version.c,v 1.14 90/07/27 14:44:12 william Exp $";
  #endif
  
! char	* version_string = "1.11";
--- 6,11 ----
  #ifndef lint
  static char RCSid[] =
!       "@(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/version.c,v 1.15 90/08/02 09:05:03 william Exp $";
  #endif
  
! char	* version_string = "1.12";
*** Imakefile.orig	Thu Aug  2 09:21:15 1990
--- Imakefile	Thu Aug  2 09:21:16 1990
***************
*** 4,14 ****
  /**/# Copyright (C) 1990, William Cheng.
  /**/#
! /**/# @(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/Imakefile,v 1.19 90/07/27 14:44:28 william Exp $
  /**/#
  
! TGIFVERSION	= 1.11
  PROGRAMS	= tgif prtgif tgif2ps frontend11.o
  CDEBUGFLAGS	= -g
  BINDIR		= /u/tangram/bin
  DEFINES		= -DTGIF_PATH=\"/u/tangram/u/william/X11/TGIF\" \
  		  -DPSFILE_MOD=\"664\"
--- 4,15 ----
  /**/# Copyright (C) 1990, William Cheng.
  /**/#
! /**/# @(#)$Header: /n/kona/u/tangram/u/william/X11/TGIF/RCS/Imakefile,v 1.21 90/08/02 09:15:42 william Exp $
  /**/#
  
! TGIFVERSION	= 1.12
  PROGRAMS	= tgif prtgif tgif2ps frontend11.o
  CDEBUGFLAGS	= -g
  BINDIR		= /u/tangram/bin
+ MANPATH		= /u/tangram/man
  DEFINES		= -DTGIF_PATH=\"/u/tangram/u/william/X11/TGIF\" \
  		  -DPSFILE_MOD=\"664\"
***************
*** 56,60 ****
  MISCTAR = *.man README Copyright tgif.pl spice//**/*.mod example.tex
  
! distr: tar shar version
  
  tar:
--- 57,61 ----
  MISCTAR = *.man README Copyright tgif.pl spice//**/*.mod example.tex
  
! distr: tar version
  
  tar:
---------------------------------> cut here <---------------------------------
--
Bill Cheng // UCLA Computer Science Department // (213) 206-7135
3277 Boelter Hall // Los Angeles, California 90024 // USA
william@CS.UCLA.EDU      ...!{uunet|ucbvax}!cs.ucla.edu!william