Skip site navigation (1) Skip section navigation (2)

Building with wx2.9 on Mac

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Building with wx2.9 on Mac
Date: 2011-02-23 23:51:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgadmin-hackers
Hi Peter,

It seems that the wxWidgets guys have fixed the issue with 2.9 on Mac,
so I was able to try out a build today. Attached is the patch for your
review. Aside from an issue with the font selector dialog (which seems
to work OK now, thus the workaround which is broken on 2.9 anyway
isn't required), the main issue I see is this:

./dlg/dlgDatabase.cpp: In member function ‘bool
dlgDatabase::executeDDLSql(const wxString&)’:
./dlg/dlgDatabase.cpp:425: error: request for member ‘GetClientData’
is ambiguous
/usr/local/include/wx-2.9/wx/ctrlsub.h:297: error: candidates are:
void* wxItemContainer::GetClientData(unsigned int) const
/usr/local/include/wx-2.9/wx/event.h:3204: error:
void* wxEvtHandler::GetClientData() const

It's easily fixed (albeit somewhat ugly) as can be seen in the patch -
but I'm somewhat baffled about why the compiler thinks the two
functions listed are both candidates, given that one takes an argument
and the other doesn't. Any ideas?

Other problems seen so far:

- The toolbars have button labels displayed through them for some
reason (see the attached screenshot).

- Highlighting text in the STC has a weird effect on lower parts of
the sae window (see the attached screenshot).

- The wxDIALOG_MODAL flag seems to be gone.

Dave Page
Twitter: @pgsnake

EnterpriseDB UK:
The Enterprise PostgreSQL Company

Attachment: toolbar.png
Description: image/png (51.0 KB) (inlined above)
Attachment: highlighting.png
Description: image/png (74.4 KB)
Attachment: mac-2.9.diff
Description: application/octet-stream (15.2 KB)


pgadmin-hackers by date

Next:From: Peter GeogheganDate: 2011-02-24 02:52:04
Subject: Re: Building with wx2.9 on Mac
Previous:From: Dave PageDate: 2011-02-23 10:29:00
Subject: pgAdmin III commit: make style

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group