diff --git a/src/actions.c b/src/actions.c index ac7c4e3d..42b6b5d7 100644 --- a/src/actions.c +++ b/src/actions.c @@ -151,8 +151,8 @@ int set_modify(int mod) if(mod == 1 || (mod == 0 && xctx->prev_set_modify) || mod == -2) { tclvareval(xctx->top_path, ".menubar.netlist configure -bg $simulate_bg", NULL); tclvareval(xctx->top_path, ".menubar.simulate configure -bg $simulate_bg", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_netlist $simulate_bg", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_simulate $simulate_bg", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_netlist $simulate_bg", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_simulate $simulate_bg", NULL); } /* clear floater caches */ diff --git a/src/callback.c b/src/callback.c index 8535c810..1909ef12 100644 --- a/src/callback.c +++ b/src/callback.c @@ -2388,11 +2388,11 @@ int rstate; /* (reduced state, without ShiftMask) */ } if(err) { tclvareval(xctx->top_path, ".menubar.netlist configure -bg red", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_netlist red", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_netlist red", NULL); } else { tclvareval(xctx->top_path, ".menubar.netlist configure -bg LightGreen", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_netlist LightGreen", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_netlist LightGreen", NULL); } break; } @@ -2419,10 +2419,10 @@ int rstate; /* (reduced state, without ShiftMask) */ } if(err) { tclvareval(xctx->top_path, ".menubar.netlist configure -bg red", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_netlist red", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_netlist red", NULL); } else { tclvareval(xctx->top_path, ".menubar.netlist configure -bg LightGreen", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_netlist LightGreen", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_netlist LightGreen", NULL); } break; diff --git a/src/scheduler.c b/src/scheduler.c index 199d8a10..fca2e2d3 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -2710,10 +2710,10 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg } if(err) { tclvareval(xctx->top_path, ".menubar.netlist configure -bg red", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_netlist red", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_netlist red", NULL); } else { tclvareval(xctx->top_path, ".menubar.netlist configure -bg LightGreen", NULL); - tclvareval(xctx->top_path, "set tctx::", xctx->current_win_path, "_netlist LightGreen", NULL); + tclvareval("set tctx::", xctx->current_win_path, "_netlist LightGreen", NULL); } tclsetvar("show_infowindow_after_netlist", saveshow); my_free(_ALLOC_ID_, &saveshow);