On Fri, 16 Sep 2005 01:41:29 -0500 David Carr <dc@xxxxxxxxx> wrote: > > I'm using PCB CVS checked out today and I noticed the following behavior: > I have a 1024x768 screen so the window is a bit wide by default. I > enabled the preference "Put layout name on window title bar" in order to > make the PCB window slightly narrower. So far so good---the layout name > moves to the window title bar and the PCB window becomes a bit narrower. > > Now I close PCB and restart it. When I restart PCB, the layout name is > still in the main window rather than the title bar (window too wide). > If I go into preferences I see that "Put layout name on window title > bar" is checked from last time but apparently this setting hasn't been > applied. If I uncheck the option and then re-check it, the layout name > is moved to the window title bar and the window narrows as expected. > > I'm guessing that the PCB startup code doesn't look for/apply this > setting and as a result it doesn't get applied until I toggle it in the > preferences window. I'll try to take a look at the code this weekend > but if someone can fix this trivially or give me some advice on where to > look, please go ahead. It should be working if you load a .pcb file (from command line). The configuration is being read, but it's a bug that the title location is not being set if you just invoke pcb without a .pcb file arg. The attached patch to the gui-top-window.c file is a fix. Dan, DJ, or Harry, can you go ahead and apply this to CVS? Bill
Attachment:
pcb-patch-titlefix
Description: Binary data