On Thu, Jan 29, 2009 at 10:40 PM, Guillaume Lelarge <guilla...@lelarge.info> wrote:
> So here is the next one. I fixed a few issues, added some more comments, > moved some code to get something easy to read, and used the four timers. > It seems to be working right on my laptop. I did a quick check on > Windows and it was working all right too. Hi, There are a few issues immediately apparent: - There's debug code in checkConnection - MNU_REFRESH/OnRefresh() seem redundant now. - The default size of the dialog is tall and thin - if I so much as touch the resize corner it doubles in width to a more sensible size. Observed on Windows. - You need a lock to prevent the four refresh functions running simultaneously and doing nasty things to the connection. You should probably use a wxCriticalSectionLocker. - It looks like we still refresh each tab even if it's not visible (or even closed). We should check that to minimise the database traffic. - If a tab is closed and re-opened (from the View menu), it returns to it's default position on the tabset, not to whereever it previously was. - The tab layout is not remembered if the window is closed and reopened. -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers