"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tktable/generic/tkTableUtil.c" between
ds9.8.2.tar.gz and ds9.8.2.1.tar.gz

About: SAOImage DS9 is an astronomical imaging and data visualization application that supports FITS images and binary tables, multiple frame buffers, region manipulation, and many scale algorithms and colormaps.

tkTableUtil.c  (ds9.8.2):tkTableUtil.c  (ds9.8.2.1)
skipping to change at line 107 skipping to change at line 107
TableTag *tagPtr = (TableTag *) (widgRec + offset); TableTag *tagPtr = (TableTag *) (widgRec + offset);
borderStr = &(tagPtr->borderStr); borderStr = &(tagPtr->borderStr);
bordersPtr = &(tagPtr->borders); bordersPtr = &(tagPtr->borders);
bdPtr = tagPtr->bd; bdPtr = tagPtr->bd;
} else if (type == BD_TABLE_WIN) { } else if (type == BD_TABLE_WIN) {
TableEmbWindow *tagPtr = (TableEmbWindow *) widgRec; TableEmbWindow *tagPtr = (TableEmbWindow *) widgRec;
borderStr = &(tagPtr->borderStr); borderStr = &(tagPtr->borderStr);
bordersPtr = &(tagPtr->borders); bordersPtr = &(tagPtr->borders);
bdPtr = tagPtr->bd; bdPtr = tagPtr->bd;
} else { } else {
Tcl_PanicVA("invalid type given to TableOptionBdSet\n",NULL); Tcl_Panic("invalid type given to TableOptionBdSet\n");
return TCL_ERROR; /* lint */ return TCL_ERROR; /* lint */
} }
result = Tcl_SplitList(interp, value, &argc, &argv); result = Tcl_SplitList(interp, value, &argc, &argv);
if (result == TCL_OK) { if (result == TCL_OK) {
int i, bd[4]; int i, bd[4];
if (((type == BD_TABLE) && (argc == 0)) || (argc == 3) || (argc > 4)) { if (((type == BD_TABLE) && (argc == 0)) || (argc == 3) || (argc > 4)) {
Tcl_AppendResult(interp, Tcl_AppendResult(interp,
"1, 2 or 4 values must be specified for borderwidth", "1, 2 or 4 values must be specified for borderwidth",
skipping to change at line 189 skipping to change at line 189
{ {
register int type = (int) clientData; register int type = (int) clientData;
if (type == BD_TABLE) { if (type == BD_TABLE) {
return ((TableTag *) (widgRec + offset))->borderStr; return ((TableTag *) (widgRec + offset))->borderStr;
} else if (type == BD_TABLE_TAG) { } else if (type == BD_TABLE_TAG) {
return ((TableTag *) widgRec)->borderStr; return ((TableTag *) widgRec)->borderStr;
} else if (type == BD_TABLE_WIN) { } else if (type == BD_TABLE_WIN) {
return ((TableEmbWindow *) widgRec)->borderStr; return ((TableEmbWindow *) widgRec)->borderStr;
} else { } else {
Tcl_PanicVA("invalid type given to TableOptionBdSet\n",NULL); Tcl_Panic("invalid type given to TableOptionBdSet\n");
return NULL; /* lint */ return NULL; /* lint */
} }
} }
/* /*
*---------------------------------------------------------------------- *----------------------------------------------------------------------
* *
* TableTagConfigureBd -- * TableTagConfigureBd --
* This routine configures the border values based on a tag. * This routine configures the border values based on a tag.
* The previous value of the bd string (oldValue) is assumed to * The previous value of the bd string (oldValue) is assumed to
* be a valid value for this tag. * be a valid value for this tag.
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)