summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoye <joye>2014-04-09 18:48:00 (GMT)
committerjoye <joye>2014-04-09 18:48:00 (GMT)
commitc6c0a7fca7ce114ee7fa388ff2f18e3e7c49b2b1 (patch)
tree0ddad43028d1164d5fe21e08aad1cea21113f749
parent9044717575c1e57944609e1c6ac8a84ff8b73f84 (diff)
downloadblt-c6c0a7fca7ce114ee7fa388ff2f18e3e7c49b2b1.zip
blt-c6c0a7fca7ce114ee7fa388ff2f18e3e7c49b2b1.tar.gz
blt-c6c0a7fca7ce114ee7fa388ff2f18e3e7c49b2b1.tar.bz2
*** empty log message ***
-rw-r--r--src/bltGrLegd.C2
-rw-r--r--src/bltGrLegdOp.C14
2 files changed, 9 insertions, 7 deletions
diff --git a/src/bltGrLegd.C b/src/bltGrLegd.C
index d97d378..d52fb90 100644
--- a/src/bltGrLegd.C
+++ b/src/bltGrLegd.C
@@ -905,8 +905,6 @@ void Legend::clearSelection()
Tcl_InitHashTable(&selectTable_, TCL_ONE_WORD_KEYS);
Blt_Chain_Reset(selected_);
- // eventuallyRedraw();
-
if (ops->selectCmd)
eventuallyInvokeSelectCmd();
}
diff --git a/src/bltGrLegdOp.C b/src/bltGrLegdOp.C
index 4ba8c3c..da78537 100644
--- a/src/bltGrLegdOp.C
+++ b/src/bltGrLegdOp.C
@@ -271,7 +271,7 @@ static int FocusOp(Graph* graphPtr, Tcl_Interp* interp,
Blt_SetFocusItem(legendPtr->bindTable_, legendPtr->focusPtr_,
CID_LEGEND_ENTRY);
- // graphPtr->legend->eventuallyRedraw();
+ graphPtr->legend->eventuallyRedraw();
if (legendPtr->focusPtr_)
Tcl_SetStringObj(Tcl_GetObjResult(interp),legendPtr->focusPtr_->name(),-1);
@@ -339,7 +339,7 @@ static int SelectionAnchorOp(Graph* graphPtr, Tcl_Interp* interp,
if (elemPtr)
Tcl_SetStringObj(Tcl_GetObjResult(interp), elemPtr->name(), -1);
- // graphPtr->legend->eventuallyRedraw();
+ graphPtr->legend->eventuallyRedraw();
return TCL_OK;
}
@@ -347,7 +347,10 @@ static int SelectionAnchorOp(Graph* graphPtr, Tcl_Interp* interp,
static int SelectionClearallOp(Graph* graphPtr, Tcl_Interp* interp,
int objc, Tcl_Obj* const objv[])
{
- graphPtr->legend->clearSelection();
+ Legend* legendPtr = graphPtr->legend;
+ legendPtr->clearSelection();
+ legendPtr->eventuallyRedraw();
+
return TCL_OK;
}
@@ -398,7 +401,7 @@ static int SelectionMarkOp(Graph* graphPtr, Tcl_Interp* interp,
Tcl_SetStringObj(Tcl_GetObjResult(interp), elemPtr->name(), -1);
legendPtr->selMarkPtr_ = elemPtr;
- // graphPtr->legend->eventuallyRedraw();
+ graphPtr->legend->eventuallyRedraw();
if (ops->selectCmd)
legendPtr->eventuallyInvokeSelectCmd();
@@ -470,7 +473,7 @@ static int SelectionSetOp(Graph* graphPtr, Tcl_Interp* interp,
if (ops->exportSelection)
Tk_OwnSelection(graphPtr->tkwin, XA_PRIMARY, LostSelectionProc, legendPtr);
- // graphPtr->legend->eventuallyRedraw();
+ graphPtr->legend->eventuallyRedraw();
if (ops->selectCmd)
legendPtr->eventuallyInvokeSelectCmd();
@@ -510,6 +513,7 @@ static void LostSelectionProc(ClientData clientData)
if (ops->exportSelection)
legendPtr->clearSelection();
+ legendPtr->eventuallyRedraw();
}