home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / x / volume10 / contool / patch1 / patch
Encoding:
Text File  |  1990-10-30  |  9.0 KB  |  292 lines

  1. *** Makefile.orig    Thu Oct 18 10:48:43 1990
  2. --- Makefile    Fri Aug 31 14:15:32 1990
  3. ***************
  4. *** 46,52 ****
  5.       cp -p contool.man $(MAN)/contool.$(MANEXT)
  6.   
  7.   clean:
  8. !     rm -f *~ $(OFILES) contool core
  9.   
  10.   #dependencies
  11.   
  12. --- 46,52 ----
  13.       cp -p contool.man $(MAN)/contool.$(MANEXT)
  14.   
  15.   clean:
  16. !     rm -f *~ *.o contool core
  17.   
  18.   #dependencies
  19.   
  20. *** Imakefile.orig    Thu Oct 18 10:48:45 1990
  21. --- Imakefile    Thu Oct 18 10:27:16 1990
  22. ***************
  23. *** 0 ****
  24. --- 1,22 ----
  25. + OPENWINHOME    = /usr/openwin
  26. + HELPDIR        = /usr/local/lib/help
  27. + LOCAL_LIBRARIES = -lxview -lolgx $(XLIB)
  28. + LDOPTIONS    = -L$(OPENWINHOME)/lib
  29. + CFLAGS        = -O -I$(OPENWINHOME)/include
  30. + SRCS        = contool.c contool_ui.c error.c expand.c filters.c \
  31. +           load.c load_icon.c logging.c misc.c parse.y props.c \
  32. +           regexp.c store.c window_misc.c
  33. + OBJS        = contool.o contool_ui.o error.o expand.o filters.o \
  34. +           load.o load_icon.o logging.o misc.o parse.o props.o \
  35. +           regexp.o store.o window_misc.o
  36. + ComplexProgramTarget(contool)
  37. + install:: install.man
  38. +     $(INSTALL) -c $(INSTMANFLAGS) contool.info $(HELPDIR)/contool.info
  39. *** README.orig    Thu Oct 18 10:48:46 1990
  40. --- README    Thu Oct 18 10:22:55 1990
  41. ***************
  42. *** 171,173 ****
  43. --- 171,180 ----
  44.                   Reworked console overflow handling,
  45.                      courtesy of Matt Cohen
  46.                      (sysnmc@magic706.chron.com).
  47. +     3.0a            Allowed reading of 1.0 filter files.
  48. +                 Fixed handling of custom default icon
  49. +                    when blinking stops.
  50. +                 Tweaked Makefile slightly.
  51. +                 Fixed handling of dialog boxes under
  52. +                    window managers other than olwm.
  53. +                 Add Imakefile.
  54. *** contool.man.orig    Thu Oct 18 10:48:47 1990
  55. --- contool.man    Mon Oct  1 14:35:10 1990
  56. ***************
  57. *** 16,22 ****
  58.   \f2Contool\fP must be run under either Open Windows or X Windows.
  59.   It accepts the standard Open Windows command line options.
  60.   .SH OPTIONS
  61. ! .IP "\fB\\(hyf\fP \fIfile\fP"
  62.   specifies an alternate configuration file.  \f2Contool\fP normally
  63.   reads its configuration information from ~/.contool.
  64.   .IP "\fB\\(hyl\fP"
  65. --- 16,22 ----
  66.   \f2Contool\fP must be run under either Open Windows or X Windows.
  67.   It accepts the standard Open Windows command line options.
  68.   .SH OPTIONS
  69. ! .IP "\fB\\(hyc\fP \fIfile\fP"
  70.   specifies an alternate configuration file.  \f2Contool\fP normally
  71.   reads its configuration information from ~/.contool.
  72.   .IP "\fB\\(hyl\fP"
  73. ***************
  74. *** 46,52 ****
  75.   filters from the file.
  76.   .IP ""
  77.   The text field contains the path of the configuration file.  By default,
  78. ! this is either ~/.contool, or the value of the \fB-f\fP option (above).
  79.   This text field provides file name completion, like \f2csh\fP(1), by typing
  80.   a space or carriage return.
  81.   .IP ""
  82. --- 46,52 ----
  83.   filters from the file.
  84.   .IP ""
  85.   The text field contains the path of the configuration file.  By default,
  86. ! this is either ~/.contool, or the value of the \fB-c\fP option (above).
  87.   This text field provides file name completion, like \f2csh\fP(1), by typing
  88.   a space or carriage return.
  89.   .IP ""
  90. ***************
  91. *** 56,64 ****
  92.   discarded.  If \f2contool\fP was in the middle of filtering a multi-line message,
  93.   that filtering action is terminated.
  94.   .IP ""
  95. ! \f2Contool\fP can read files created by versions 2.0, 2.1, 2.2, and 3.0 of
  96. ! \f2contool\fP.  Files used by version 1.0 will need to be manually converted
  97. ! by first reading and writing them with any 2.x release of \f2contool\fP.
  98.   .IP "\fBFile: Save Configuration...\fP"
  99.   is analogous to the \fBLoad Configuration\fP operation, bringing up a dialog
  100.   box containing a non-exclusive setting, a text field, and a \fBSave\fP
  101. --- 56,64 ----
  102.   discarded.  If \f2contool\fP was in the middle of filtering a multi-line message,
  103.   that filtering action is terminated.
  104.   .IP ""
  105. ! \f2Contool\fP can read files created by all previous versions of
  106. ! \f2contool\fP.  Files written by \f2contool\fP cannot be read by any previous
  107. ! version.
  108.   .IP "\fBFile: Save Configuration...\fP"
  109.   is analogous to the \fBLoad Configuration\fP operation, bringing up a dialog
  110.   box containing a non-exclusive setting, a text field, and a \fBSave\fP
  111. *** contool.c.orig    Thu Oct 18 10:48:50 1990
  112. --- contool.c    Thu Oct 11 10:38:59 1990
  113. ***************
  114. *** 365,371 ****
  115.       event_in_progress = TRUE;
  116.       if (event_action(event) == ACTION_OPEN && blinking) {
  117.          notify_set_itimer_func(contool_base->base, blink_proc, ITIMER_REAL, NULL, NULL);
  118. !        change_icon(good, good = default_good_icon);
  119.          blinking = FALSE;
  120.          }
  121.       event_in_progress = FALSE;
  122. --- 365,371 ----
  123.       event_in_progress = TRUE;
  124.       if (event_action(event) == ACTION_OPEN && blinking) {
  125.          notify_set_itimer_func(contool_base->base, blink_proc, ITIMER_REAL, NULL, NULL);
  126. !        change_icon(good, good == default_good_icon);
  127.          blinking = FALSE;
  128.          }
  129.       event_in_progress = FALSE;
  130. *** contool_ui.c.orig    Thu Oct 18 10:48:52 1990
  131. --- contool_ui.c    Thu Oct 18 10:40:18 1990
  132. ***************
  133. *** 307,313 ****
  134.           XV_KEY_DATA, INSTANCE, ip,
  135.           XV_WIDTH, 575,
  136.           XV_HEIGHT, 246,
  137. !         XV_LABEL, "Contool 3.0",
  138.           FRAME_CLOSED, FALSE,
  139.           FRAME_SHOW_FOOTER, TRUE,
  140.           FRAME_SHOW_RESIZE_CORNER, TRUE,
  141. --- 307,313 ----
  142.           XV_KEY_DATA, INSTANCE, ip,
  143.           XV_WIDTH, 575,
  144.           XV_HEIGHT, 246,
  145. !         XV_LABEL, "Contool 3.0a",
  146.           FRAME_CLOSED, FALSE,
  147.           FRAME_SHOW_FOOTER, TRUE,
  148.           FRAME_SHOW_RESIZE_CORNER, TRUE,
  149. *** lex.c.orig    Thu Oct 18 10:48:58 1990
  150. --- lex.c    Fri Aug 31 13:58:54 1990
  151. ***************
  152. *** 49,54 ****
  153. --- 49,55 ----
  154.                    {"nostamp",              NOSTAMP},
  155.                    {"open",                 OPEN},
  156.                    {"print",                PRINT},
  157. +                  {"quiet",                QUIET},
  158.                    {"save",                 SAVE},
  159.                    {"stamp",                STAMP},
  160.                    {"timestamp",            TIMESTAMP},
  161. *** parse.y.orig    Thu Oct 18 10:49:03 1990
  162. --- parse.y    Fri Aug 31 14:08:54 1990
  163. ***************
  164. *** 53,63 ****
  165.   
  166.   %token        BEEP CHECK_ICON COMMAND COMMENT DEFAULTS DELETE DISPLAY FILTERS
  167.           FLASH FLASH_ICON GOOD_ICON IGNORE LOG_BEFORE_FILTERING LOG_FILE
  168. !         MATCH NO NOFLASH NOOPEN NOSTAMP OPEN PRINT SAVE STAMP TIMESTAMP TO YES
  169.   
  170.   %type    <ival>    beep flash old_flash old_open old_stamp open stamp yes_no
  171.   %type    <cpval>    command old_end_string string
  172. ! %type    <fval>    filter filter_list old_filter old_filter_list old_ignore old_save
  173.   
  174.   %%
  175.   
  176. --- 53,63 ----
  177.   
  178.   %token        BEEP CHECK_ICON COMMAND COMMENT DEFAULTS DELETE DISPLAY FILTERS
  179.           FLASH FLASH_ICON GOOD_ICON IGNORE LOG_BEFORE_FILTERING LOG_FILE
  180. !         MATCH NO NOFLASH NOOPEN NOSTAMP OPEN PRINT QUIET SAVE STAMP TIMESTAMP TO YES
  181.   
  182.   %type    <ival>    beep flash old_flash old_open old_stamp open stamp yes_no
  183.   %type    <cpval>    command old_end_string string
  184. ! %type    <fval>    filter filter_list old_filter old_filter_list old_ignore old_quiet old_save
  185.   
  186.   %%
  187.   
  188. ***************
  189. *** 86,91 ****
  190. --- 86,92 ----
  191.   
  192.   old_filter    :    old_save
  193.           |    old_ignore
  194. +         |    old_quiet
  195.           ;
  196.   
  197.   old_save    :    SAVE beep old_flash old_open old_stamp STRING old_end_string
  198. ***************
  199. *** 121,126 ****
  200. --- 122,150 ----
  201.                         f->flash    = FALSE;
  202.                         f->open     = FALSE;
  203.                         f->stamp    = FALSE;
  204. +                       f->start    = $2;
  205. +                       f->stop     = $3;
  206. +                       f->start_re = NULL;
  207. +                       f->stop_re  = NULL;
  208. +                       f->command  = NULL;
  209. +                       f->comment  = NULL;
  210. +                       f->next     = NULL;
  211. +                       if (msg = compile_exp(f, f->start, f->stop))
  212. +                          yyerror(msg);
  213. +                       $$ = f;
  214. +                     }
  215. +         ;
  216. + old_quiet    :    QUIET STRING old_end_string
  217. +                     { Filter    *f;
  218. +                       char        *msg;
  219. +                     
  220. +                       f = (Filter *) malloc(sizeof(Filter));
  221. +                       f->save     = TRUE;
  222. +                       f->beep     = 0;
  223. +                       f->flash    = FALSE;
  224. +                       f->open     = FALSE;
  225. +                       f->stamp    = TRUE;
  226.                         f->start    = $2;
  227.                         f->stop     = $3;
  228.                         f->start_re = NULL;
  229. *** patchlevel.h.orig    Thu Oct 18 10:49:04 1990
  230. --- patchlevel.h    Tue Sep 18 15:06:44 1990
  231. ***************
  232. *** 3,6 ****
  233. --- 3,8 ----
  234.   /*    Patch        Comments                    */
  235.   /*      0        Initial release for XView            */
  236.   /*                                    */
  237. + /*      1        Bug fixes; see README for details        */
  238. + /*                                    */
  239.   /************************************************************************/
  240. *** window_misc.c.orig    Thu Oct 18 10:49:09 1990
  241. --- window_misc.c    Thu Oct 18 09:48:19 1990
  242. ***************
  243. *** 28,33 ****
  244. --- 28,34 ----
  245.   #include    <xview/xview.h>
  246.   #include    <xview/panel.h>
  247.   #include    <xview/xv_xrect.h>
  248. + #include    <X11/Xutil.h>
  249.   
  250.   #include    "manifest.h"
  251.   #include    "contool_ui.h"
  252. ***************
  253. *** 80,86 ****
  254.   Xv_opaque    base;
  255.   Xv_opaque    dialog;
  256.   
  257. ! {    Rect    br, dr, sr;
  258.   
  259.       sr = *((Rect *) xv_get(base, WIN_SCREEN_RECT));
  260.       frame_get_rect(base, &br);
  261. --- 81,88 ----
  262.   Xv_opaque    base;
  263.   Xv_opaque    dialog;
  264.   
  265. ! {    Rect        br, dr, sr;
  266. !     XWMHints    *hints;
  267.   
  268.       sr = *((Rect *) xv_get(base, WIN_SCREEN_RECT));
  269.       frame_get_rect(base, &br);
  270. ***************
  271. *** 98,101 ****
  272. --- 100,109 ----
  273.          dr.r_top = br.r_top + 32;
  274.          }
  275.       frame_set_rect(dialog, &dr);
  276. +     hints = XGetWMHints(xv_get(dialog, XV_DISPLAY), xv_get(dialog, XV_XID));
  277. +     hints->flags |= StateHint;
  278. +     hints->initial_state = NormalState;
  279. +     XSetWMHints(xv_get(dialog, XV_DISPLAY), xv_get(dialog, XV_XID), hints);
  280. +     XFree(hints);
  281.   }
  282.