bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gnubg] 3 small bug fixes


From: Philippe Michel
Subject: [Bug-gnubg] 3 small bug fixes
Date: Sun, 5 Feb 2006 23:02:18 +0100 (CET)

You may want to check in the following fixes in CVS.

The file widget displays a strange "Show error files (*.) only" filter when one uses the "Open commands" menu.

*** gtkfile.c.orig      Sun Feb  5 21:57:28 2006
--- gtkfile.c   Sun Feb  5 22:39:37 2006
***************
*** 365,371 ****
                gtk_file_filter_add_pattern (anyFileFilter, "*");
                gtk_file_filter_set_name    (anyFileFilter, "Show all Files 
(*)");
                gtk_file_filter_set_name    (suffixFileFilter, 
filterDescription);
!               gtk_file_chooser_add_filter ((GtkFileChooser *) filechooser, 
suffixFileFilter);
                gtk_file_chooser_add_filter ((GtkFileChooser *) filechooser, 
anyFileFilter);

                if (filterDescription) g_free(filterDescription);
--- 365,374 ----
                gtk_file_filter_add_pattern (anyFileFilter, "*");
                gtk_file_filter_set_name    (anyFileFilter, "Show all Files 
(*)");
                gtk_file_filter_set_name    (suffixFileFilter, 
filterDescription);
!               if (strncmp(eiof->file_suffix, "", 1) != 0) {
!                 /* Show *.suffix filter only if suffix is not empty */
!                 gtk_file_chooser_add_filter ((GtkFileChooser *) filechooser, 
suffixFileFilter);
!               }
                gtk_file_chooser_add_filter ((GtkFileChooser *) filechooser, 
anyFileFilter);

                if (filterDescription) g_free(filterDescription);


matchequity.c didn't compile on RedHat 9. xmlNewValidCtxt() and xmlFreeValidCtxt() appeared in libxml2 2.5.8 only.

*** matchequity.c.orig  Fri Oct  7 06:53:52 2005
--- matchequity.c       Sun Feb  5 22:35:41 2006
***************
*** 1426,1432 ****
      goto finish;

    }
!
    /* validate against the DTD */
    ctxt = xmlNewValidCtxt();
    ctxt->error = validateError;
--- 1426,1432 ----
      goto finish;

    }
! #if (LIBXML_VERSION > 20507)
    /* validate against the DTD */
    ctxt = xmlNewValidCtxt();
    ctxt->error = validateError;
***************
*** 1442,1449 ****

    if (ctxt) xmlFreeValidCtxt(ctxt);
    if (dtd) xmlFreeDtd(dtd);
  }
! #endif /* XMLVERSION */

    /* initialise data */

--- 1442,1450 ----

    if (ctxt) xmlFreeValidCtxt(ctxt);
    if (dtd) xmlFreeDtd(dtd);
+ #endif /* XMLVERSION > 20507 */
  }
! #endif /* XMLVERSION > 20412 */

    /* initialise data */


The options for makebearoff seem to have changed at some point.

*** eval.c.orig Sun Feb  5 21:57:28 2006
--- eval.c      Sun Feb  5 22:09:29 2006
***************
*** 894,900 ****
                      "You should obtain the file gnubg_ts0.bd or generate\n"
                      "it yourself using the program 'makebearoff'.\n"
                      "You can generate the file with the command:\n"
!                     "makebearoff -t 6x6 > gnubg_ts0.bd\n"
                      "You can also generate other bearoff databases; see\n"
                      "README for more details\n\n" );

--- 894,900 ----
                      "You should obtain the file gnubg_ts0.bd or generate\n"
                      "it yourself using the program 'makebearoff'.\n"
                      "You can generate the file with the command:\n"
!                     "makebearoff -t 6x6 -f gnubg_ts0.bd\n"
                      "You can also generate other bearoff databases; see\n"
                      "README for more details\n\n" );





reply via email to

[Prev in Thread] Current Thread [Next in Thread]