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/
This commit is contained in:
rlar 2014-01-10 21:48:52 +01:00
parent 74b32f392c
commit ed23c7e315
1 changed files with 2 additions and 0 deletions

View File

@ -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));