Browse Source

set X11 window title from `graph->plotname'

in response to a bug report by Dominique Michel
  "#272 no title in plots"
  http://sourceforge.net/p/ngspice/bugs/272/
pre-master-46
rlar 12 years ago
parent
commit
ed23c7e315
  1. 2
      src/frontend/plotting/x11.c

2
src/frontend/plotting/x11.c

@ -388,6 +388,8 @@ X11_NewViewport(GRAPH *graph)
DEVDEP(graph).shell = XtCreateApplicationShell
("shell", topLevelShellWidgetClass, NULL, 0);
XtVaSetValues(DEVDEP(graph).shell, XtNtitle, graph->plotname, NULL);
/* set up form widget */
DEVDEP(graph).form = XtCreateManagedWidget
("form", formWidgetClass, DEVDEP(graph).shell, formargs, XtNumber(formargs));

Loading…
Cancel
Save