Skip to content

Commit

Permalink
Fix XY, XYZ and diff autoscale button response
Browse files Browse the repository at this point in the history
The autoscale and autotics buttons both have multiple callbacks.  Turns
out the order of the callbacks was important.  Worked for main
time-series plot, others the order was backwards.
  • Loading branch information
topher800 committed Apr 21, 2022
1 parent 4cbbf2f commit 2c13cc9
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ed_diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ static void CreateDiffParmsWindow()
XtManageChild(RC[4]);

XtAddCallback(autoScaleButton, XmNvalueChangedCallback, SetDiffAutoScale, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetDiffAutoTics, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyDiffParms, NULL);
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyDiffParms, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetDiffAutoTics, NULL);

for (i = 0; i < TOTAL_PARMS-1; ++i)
if (parmsText[i])
Expand Down
4 changes: 2 additions & 2 deletions ed_xy.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,10 @@ static void CreateXYParmsWindow()
XtManageChild(RC[2]); XtManageChild(RC[3]);
XtManageChild(RC[4]);

XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyXYParms, NULL);
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, SetXYAutoScale, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyXYParms, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetXYAutoTics, NULL);
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyXYParms, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyXYParms, NULL);

for (i = 0; i < TOTAL_PARMS-1; ++i)
if (parmsText[i])
Expand Down
4 changes: 2 additions & 2 deletions ed_xyz.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ static void CreateTrackParmsWindow()
XtManageChild(RC[2]); XtManageChild(RC[3]);
XtManageChild(RC[4]);

XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, SetTrackAutoScale, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, SetTrackAutoTics, NULL);
XtAddCallback(autoScaleButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);
XtAddCallback(autoTicsButton, XmNvalueChangedCallback, ApplyTrackParms, NULL);

for (i = 0; i < TOTAL_PARMS-1; ++i)
if (parmsText[i])
Expand Down
2 changes: 1 addition & 1 deletion fbr.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static String fallback_resources[] =
"*XmTextField.foreground: black",
"*XmForm.horizontalSpacing: 4",
"*XmForm.verticalSpacing: 4",
"*topLevelShell.title: ncplot 4.9.13",
"*topLevelShell.title: ncplot 4.9.14",
"*topLevelShell.iconName: ncplot",
"*topLevelShell.allowShellResize: True",
"*topLevelShell.x: 0",
Expand Down
2 changes: 1 addition & 1 deletion ncplot.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: Spec file for ncplot
Name: ncplot
Version: 4.9
Release: 13%{?dist}
Release: 14%{?dist}
License: GPL
Group: System Environment/Daemons
Url: http://www.eol.ucar.edu/
Expand Down

0 comments on commit 2c13cc9

Please sign in to comment.