Commit Graph

65326 Commits

Author SHA1 Message Date
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
Steve Browne
1eea936f8f Properly handle tab navigation for wxRadioBoxes on wxOSX. 2017-06-05 01:17:52 -04:00
Steve Browne
39cfbe3b94 Fire wxEVT_CHAR_HOOK and handle tab navigation for wxTextCtrls with wxTE_PASSWORD on wxOSX. 2017-06-05 01:16:23 -04:00
Steve Browne
f4b73fd99e Account for wxTE_PROCESS_TAB when doing tab navigation on wxOSX. 2017-06-05 01:14:43 -04:00
Steve Browne
8bca6deda3 Properly handle tab navigation for most controls on wxOSX #17341. 2017-06-05 01:10:53 -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
tm
0a3720beff Handle wxST_ELLIPSIZE_XXX styles in wxStaticText XRC handler
Add forgotten/missing styles.

See #17850.
2017-05-28 16:05:31 +02:00
Vadim Zeitlin
2f8a343b22 Add an option for reproducible library builds
This can be useful to the library packagers, notably under Debian.

Closes #17000.
2017-05-27 19:03:32 +02:00
Vadim Zeitlin
a7ae3de703 Don't accept nonsensical --without-<toolkit> options in configure
Only --with-<toolkit> options make sense, something like --without-x11
couldn't possibly be useful and was actually actively harmful as it set
wxUSE_UNIVERSAL to 1 as a side effect.

Closes #2306.
2017-05-27 19:03:32 +02:00