Go to the documentation of this file.00001
00040 int
00041 change_main_window_title (Widget *widget, char *filename)
00042 {
00043 Arg args[3];
00044 int n;
00045 char title[256];
00046 char *p = NULL;
00047
00048
00049 program_name = XtNewString ("pcb-lfpw");
00050 fpw_filename = XtNewString ("no_name.fpw");
00051
00052 if (filename)
00053 {
00054 p = strrchr (filename, '/');
00055 if (p)
00056 {
00057 p++;
00058 }
00059 else
00060 {
00061 p = filename;
00062 }
00063 }
00064 sprintf (title, "pcb-lfpw FootPrint Wizard%s%s", (p ? ": " : ""), (p ? p : ""));
00065
00066 n = 0;
00067 XtSetArg (args[n], XmNtitle, title);
00068 n++;
00069 XtSetArg (args[n], XmNiconName, "gFootprintWizard.xpm");
00070 n++;
00071 XtSetValues (main_window, args, n);
00072 return;
00073 }
00074
00075
00076
00077