Commit Graph

62611 Commits

Author SHA1 Message Date
Stefan Csomor
d28dd3333b change code to help analyzer trace ownership properly 2017-06-07 23:00:28 +02:00
Dimitri Schoolwerth
249b76baef Fix Xcode-based builds using wxSecretStore
Add the Security framework which is required for linking.
2017-06-07 23:38:54 +04:00
Dimitri Schoolwerth
61e195e6bd Regenerate Xcode projects
Update the Xcode projects to include new Scintilla and wxSecretStore
sources.
2017-06-07 23:38:06 +04:00
Stefan Csomor
76305b53ad fixing possible null ptr access or memory leaks according to analyzer 2017-06-07 17:50:17 +02:00
Stefan Csomor
2f4b249fcf analyzer warning: setAttributedTitle has copy semantics, therefore we have to release what we allocated 2017-06-07 14:05:30 +02:00
Stefan Csomor
0a178ca374 analyzer warning: super init assign to self and check for nil , NSImageView leaking (contentView is a strong reference, therefore release it after assigning) 2017-06-07 14:03:05 +02:00
Stefan Csomor
e61922b4c7 using return code properly even when using CFUserNotification in non-gui thread, rearranging [alert release] so that callback does not get a zombie as a parameter 2017-06-07 13:55:09 +02:00
Stefan Csomor
4312de64c7 analyzer warnings: assign [super init] to self and check for nil 2017-06-07 10:21:18 +02:00
Stefan Csomor
c6ca6d922f analyzer warning: method should never return nil 2017-06-07 08:09:49 +02:00
Stefan Csomor
99c6d58359 Merge branch 'master' of https://github.com/wxWidgets/wxWidgets 2017-06-06 21:54:24 +02:00
Stefan Csomor
a12a4c25bc support Xcode 9 and 10.13 SDK builds 2017-06-06 21:54:08 +02:00
Tobias Taschner
3aaa2bae6e Include macOS 10.13 name in wxGetOsDescription() 2017-06-06 13:53:58 +02:00
Scott Talbert
42964879bc Fix building with WebKit2GTK+
After 2893f894, the extension define quotes need to be escaped.  Additionally,
this fixes monolithic and non-shared builds with WebKit2GTK+.
2017-06-05 23:34:18 -04:00
Dimitri Schoolwerth
ff44703871 Fix wxOSX' wxThread::Wait() with configure-based wxBase build
Check for platform using __DARWIN__ instead of using __WXOSX__ which
shouldn't be defined in builds with wxUSE_GUI set to 0.

Closes https://github.com/wxWidgets/wxWidgets/pull/93.
2017-06-02 00:02:35 +04:00
Stefan Csomor
6a3b936d0f use built-in that exists since 10.6 2017-06-01 15:10:09 +02:00
Stefan Csomor
ad96f4be55 fixing header button to properly use native themed arrows 2017-06-01 11:30:59 +02:00
Stefan Csomor
e8333ebe71 switching to 10.7 deployment minimum, adding required frameworks 2017-06-01 11:26:30 +02:00
Vadim Zeitlin
c93b35931c Merge branch 'non-ole-clipboard-funcs'
Closes https://github.com/wxWidgets/wxWidgets/pull/491
2017-06-01 00:43:21 +02:00
Vadim Zeitlin
3d6334f0f1 Mention wxGetOsDescription() removal in the change log
Even though this function was private and not available in the default build
(in which wxUSE_OLE==1, while this function was only defined with
wxUSE_OLE==0), still mention its removal for completeness.
2017-06-01 00:40:49 +02:00
Vadim Zeitlin
60d9f403a2 Only declare wxSetClipboardData() in wxMSW when it's defined
This is only the case when full OLE support is disabled.

See https://github.com/wxWidgets/wxWidgets/pull/491
2017-06-01 00:38:08 +02:00
Adrian DC
9b97be52c6 wx/msw/clipbrd.h: Remove unreferenced wxGetClipboardData prototype
* wxGetClipboardData was removed through commit
    b375d81499 "Use wxDataObject methods..."
    but former usages will break with unreferenced
    function as the header still advertises the function

Change-Id: I77e756d2b7d0db7c3833578d2846f4e922a55262
2017-05-31 16:56:09 +02:00
John Roberts
9e83d415ed Remove unused global variable left over from Carbon
This "g_MacLastWindow" was only used in Carbon code and should have been removed
in 5ba67c67e4.
2017-05-31 13:13:21 +02:00
JulianSmart
f14d702e4a Limit LOCALE_SNAME avoidance to VS2010 2017-05-30 19:23:32 +01:00
Vadim Zeitlin
9af43c8c06 Merge branch 'xml-eol'
Add a possibility to change the line endings used in the files generated by
wxXmlDocument.
2017-05-30 19:40:49 +02:00
Vadim Zeitlin
0d8a386c9b Add "@since" tags to the newly added wxXmlDocument methods
Also document the default file type.
2017-05-30 19:40:09 +02:00
Vadim Zeitlin
f8b3ecbb0e Fix bug due to undefined g_wxAnyValueTypeGlobals initialization order
This fixes the changes of commit 3543ae0177
which didn't work if any of the globals using wxPreRegisterAnyToVariant() were
instantiated before g_wxAnyValueTypeGlobals itself.

Wrap the global inside a function to ensure that we initialized it before it
is used by wxPreRegisterAnyToVariant() and not after.
2017-05-30 19:18:53 +02:00
Paul Cornett
4ffb9d342c Fix use of PANGO_VERSION_CHECK macro
PANGO_VERSION_CHECK is not available before Pango version 1.16
2017-05-30 09:50:03 -07:00
Paul Cornett
d7b616d507 Fix crash when notification is closed.
"closed" signal callback function had incorrect signature. See #17876
2017-05-30 09:43:23 -07:00
Adrian DC
11e5413558 wx/xml: Implement line-ending modes for xml saves
* Add 'wxTextFileType m_fileType' to hold the type
 * Add 'wxString m_eol' to hold the end of lines string

 * Add SetFileType() and GetFileType() to set and get the type
 * Add GetEOL() to get the end of lines wxString

 * Backwards compatibility preserved by using wxTextFileType_Unix

Change-Id: I3e8547b377e2c4060a3a2d97c299a08ea2c0a376
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-05-30 14:31:59 +02:00
Dimitri Schoolwerth
e6928077e2 Fix wxOSX/Cocoa Xcode compilation
Define NO_CXX11_REGEX to be able to compile Scintilla after it was
updated to 3.6.6.

Regression since c03ce59b86 .
2017-05-30 16:02:29 +04:00
Artur Wieczorek
2afd8bfcaf Use faster function to retrieve a line from the paragraph
Because contents of the retrieved line is not going to be modified, faster
read-only function can be used for retrieval.
2017-05-29 20:31:42 +02:00
Artur Wieczorek
136f909f58 Free object representing font description in wxGtkPrinterDC dtor
Closes #14233.
2017-05-29 20:30:22 +02:00
Artur Wieczorek
ab6bdb94be Release temporary object representing page setup
See #14233.
2017-05-29 20:28:01 +02:00
Artur Wieczorek
fe7854933a Release old print settings object prior to storing a new one
Old GtkPrintSettings object should be released before copying its new
instance.

See #14233.
2017-05-29 20:25:33 +02:00
Artur Wieczorek
de047e1ad9 Delete temporary device context used in wxGtkPrinter
Lifetime of wxPrinterDC created in BeginPrint() handler (associated with
"begin-print" signal) is limited to the current print job and therefore
this object should be destroyed when the actual printing is finished.

See #14233.
2017-05-29 20:23:03 +02:00
Artur Wieczorek
79a7fa0330 Create new instance of wxPrintDC in wxGtkPrintDialog
GetPrintDC() should return a new device context created by the print
dialog, not the duplicate of existing context passed from the caller
(e.g. from wxGtkPrinter) through SetPrintDC(). Therefore SetPrintDC() is
no longer useful and can be removed.
2017-05-29 20:17:19 +02:00
JulianSmart
91cb0b4875 Restore previous GetLocaleName behaviour except for Norwegian Bokmål since wxLocale::Init fails otherwise for VS2010 2017-05-29 13:18:13 +01:00
Paul Cornett
c1f2bbce5d Use wxString::empty() instead of comparison to wxEmptyString 2017-05-29 00:05:52 -07:00
Paul Cornett
d16afbd3c1 Use const reference for wxPoint parameter 2017-05-28 23:56:46 -07:00
Paul Cornett
01909a20c8 Remove initializations of wxString with wxEmptyString
An empty string is the default
2017-05-28 23:53:44 -07:00
Paul Cornett
7358202d29 Use ctor initializer for non-trivial data members 2017-05-28 23:49:55 -07:00
Paul Cornett
1532afcb2f Use ctor initializer for non-trivial data members 2017-05-28 23:40:34 -07:00
Paul Cornett
d35e516fd5 Use compiler-generated copy ctor and assignment operator for wxHtmlLinkInfo 2017-05-28 23:29:10 -07:00
Paul Cornett
3fe9d59651 Fix build with wxNO_RTTI, see #17781 2017-05-28 23:14:26 -07:00
Paul Cornett
5feb43c8a2 Fix accidental use of comma operator 2017-05-28 22:42:13 -07:00
Paul Cornett
33f21c8244 Fix building with WebKitGTK+
Duplicate conditionals don't work in bakefiles.
Broken since support was added for WebKit2GTK+ in cbe0a1f
See #17865
2017-05-28 22:40:56 -07:00
Vadim Zeitlin
de47af2f0f Merge branch 'configure-enhance'
Miscellaneous enhancements to configure
2017-05-28 16:21:21 +02:00
Vadim Zeitlin
e2dfa8e477 Regenerate comments in setup.h headers
Update the generated files after 338629e314.

The only changes are in the comments.
2017-05-28 16:20:19 +02:00
Vadim Zeitlin
5283fa14a7 Fix wxUSE_XTEST location in include/wx/osx/setup.h
Move it out from the auto-generated section to avoid losing it during the next
build/update-setup-h execution (see e24bc249e4
which added this option in the wrong place).
2017-05-28 16:18:12 +02:00
tm
7ce3693956 Add support for bitmaps to wxToggleButton XRC handler
Handle "bitmap" and "bitmapposition" attributes in wxToggleButton XRC handler,
just as it's already done for wxBitmap and wxBitmapToggleButton.

Closes #17850.
2017-05-28 16:05:38 +02:00