]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoMake wxGraphicsContext::GetSize() const.
Vadim Zeitlin [Fri, 3 Aug 2012 13:05:11 +0000 (13:05 +0000)] 
Make wxGraphicsContext::GetSize() const.

Closes #14556.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake wxRect2D::Get{Position,Size}() const.
Vadim Zeitlin [Fri, 3 Aug 2012 12:50:03 +0000 (12:50 +0000)] 
Make wxRect2D::Get{Position,Size}() const.

Accessors should be const.

Closes #14555.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRevert change that installs the wx/gtk/dc.h header file, since we no longer need...
Robin Dunn [Fri, 3 Aug 2012 03:57:06 +0000 (03:57 +0000)] 
Revert change that installs the wx/gtk/dc.h header file, since we no longer need wxDCImpl classes to be public.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd the ability to trigger a print from JavaScript for the OSX backend of the wxWebVi...
Robin Dunn [Fri, 3 Aug 2012 03:56:59 +0000 (03:56 +0000)] 
Add the ability to trigger a print from JavaScript for the OSX backend of the wxWebView control.  Closes #14241

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd the ability to trigger a print from JavaScript for the old wxWebKitCtrl.
Robin Dunn [Fri, 3 Aug 2012 03:56:54 +0000 (03:56 +0000)] 
Add the ability to trigger a print from JavaScript for the old wxWebKitCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoEnable the wxMediaCtrl backend for wxOSX-cocoa in the build and fix some bugs that...
Robin Dunn [Thu, 2 Aug 2012 20:25:16 +0000 (20:25 +0000)] 
Enable the wxMediaCtrl backend for wxOSX-cocoa in the build and fix some bugs that were causing it to not send the EVT_MEDIA_LOADED events and to not have a valid best size set.  Closes #13065

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoHave wxDCImpl::GetHandle return NULL by default instead of being pure virtual.
Robin Dunn [Thu, 2 Aug 2012 20:25:06 +0000 (20:25 +0000)] 
Have wxDCImpl::GetHandle return NULL by default instead of being pure virtual.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremove unused OSX includes
Paul Cornett [Thu, 2 Aug 2012 16:37:09 +0000 (16:37 +0000)] 
remove unused OSX includes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxGCDC::Clear() for Cairo, and possibly MSW.
Paul Cornett [Thu, 2 Aug 2012 16:25:14 +0000 (16:25 +0000)] 
Fix wxGCDC::Clear() for Cairo, and possibly MSW.
Maximum positive coordinate Cairo can handle is 2^23 - 1.
Also convert coordinates to logical so it works right with modified origin or scale.
See #14529

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd ctors for wxFileSystemWatcherEvent
Robin Dunn [Thu, 2 Aug 2012 05:38:39 +0000 (05:38 +0000)] 
Add ctors for wxFileSystemWatcherEvent

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just fix typos in comments in wxOSX files.
Vadim Zeitlin [Wed, 1 Aug 2012 22:05:48 +0000 (22:05 +0000)] 
No changes, just fix typos in comments in wxOSX files.

Closes #14549, #14552.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUncomment and improve wxFileName::CreateTempFileName() documentation.
Vadim Zeitlin [Tue, 31 Jul 2012 16:49:42 +0000 (16:49 +0000)] 
Uncomment and improve wxFileName::CreateTempFileName() documentation.

Most of CreateTempFileName() documentation was commented out in r57994 for
some reason, uncomment it back and also improve it.

Closes #14545.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix comparisons of char and wchar_t with wxUniChar[Ref].
Vadim Zeitlin [Tue, 31 Jul 2012 16:49:36 +0000 (16:49 +0000)] 
Fix comparisons of char and wchar_t with wxUniChar[Ref].

Comparisons didn't work correctly in the other direction as they were not
reversed as needed. Fix this by adding wxDEFINE_COMPARISON_REV() macro which
defines comparisons in terms of the reverse operations and use it for both
wxUniChar and wxUniCharRef.

Closes #14547.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxKeyEvent::m_uniChar for EVT_CHAR for native controls in wxGTK.
Vadim Zeitlin [Tue, 31 Jul 2012 11:29:00 +0000 (11:29 +0000)] 
Fix wxKeyEvent::m_uniChar for EVT_CHAR for native controls in wxGTK.

It was mistakenly set to the same value as in EVT_KEY_DOWN event but, just as
m_keyCode, it may be different for EVT_CHAR.

Use gdk_keyval_to_unicode() to set it correctly instead of inheriting
EVT_KEY_DOWN value.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd an option to use wxTextCtrl as input window in keyboard sample.
Vadim Zeitlin [Tue, 31 Jul 2012 11:09:00 +0000 (11:09 +0000)] 
Add an option to use wxTextCtrl as input window in keyboard sample.

Keyboard handling is subtly different in wxGTK for native controls and generic
wxWindows so add a way to test both of them in the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAllow setting LCID used by wxAutomationObject.
Vadim Zeitlin [Tue, 31 Jul 2012 10:31:55 +0000 (10:31 +0000)] 
Allow setting LCID used by wxAutomationObject.

Default user-locale-dependent LCID may be inappropriate for some situations,
notably Microsoft Excel uses localized formula names for non-English LCIDs.
So add a way to change the LCID to use at wxAutomationObject level while
preserving the old behaviour by default.

Closes #14540.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse compatibility_iterator instead of "Node*" in wxWinCE toolbar code.
Vadim Zeitlin [Tue, 31 Jul 2012 10:31:48 +0000 (10:31 +0000)] 
Use compatibility_iterator instead of "Node*" in wxWinCE toolbar code.

This allows the code to compile in all build configurations.

Closes #14541.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just fix some typos in wxDFB comments.
Vadim Zeitlin [Tue, 31 Jul 2012 10:31:42 +0000 (10:31 +0000)] 
No changes, just fix some typos in wxDFB comments.

Closes #14538.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse (newly) added wxStaticCastVariantData() to fix wxNO_RTTI build.
Vadim Zeitlin [Mon, 30 Jul 2012 19:16:30 +0000 (19:16 +0000)] 
Use (newly) added wxStaticCastVariantData() to fix wxNO_RTTI build.

Don't define wxDynamicCastVariantData if RTTI is disabled and don't use it in
wxConvertVariantToOle() code as we don't really need it there anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd expand/collapse button to wxRibbonBar.
Vadim Zeitlin [Mon, 30 Jul 2012 17:53:36 +0000 (17:53 +0000)] 
Add expand/collapse button to wxRibbonBar.

This allows the user to toggle the ribbon bar visibility.

Closes #14530.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix the size of the buffer passed to wxTmemcpy() in wxTextDataObject.
Vadim Zeitlin [Mon, 30 Jul 2012 11:39:08 +0000 (11:39 +0000)] 
Fix the size of the buffer passed to wxTmemcpy() in wxTextDataObject.

This corrects fatal bug introduced in r72259: we must not multiply the string
length by sizeof(wxChar) as wxTmemcpy() does this internally.

See #14444.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoTranslate wxTextDataObject to/from native EOL format.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:50 +0000 (22:08 +0000)] 
Translate wxTextDataObject to/from native EOL format.

The text data should use CR LF EOLs under Windows but the data inside the
program typically has only LF EOLs, so translate between them automatically in
wxTextDataObject.

Closes #14444.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo real changes, just use accessors in wxTextDataObject.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:46 +0000 (22:08 +0000)] 
No real changes, just use accessors in wxTextDataObject.

Use {Set,Get}Text() instead of using m_text directly in wxTextDataObject as
these virtual methods overridable and should be called in case the class
doesn't actually use m_text for its storage at all.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoSupport wxID_HELP_{INDEX,SEARCH} and wxID_MDI_WINDOW_XXX in XRC.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:42 +0000 (22:08 +0000)] 
Support wxID_HELP_{INDEX,SEARCH} and wxID_MDI_WINDOW_XXX in XRC.

Add missing wxStandardID enum elements to AddStdXRCID_Records().

Also add blank lines to make the code in this function align with the enum
declaration to make side-by-side comparison easier.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix bug in wxNumberFormatter::ToString() for negative numbers.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:37 +0000 (22:08 +0000)] 
Fix bug in wxNumberFormatter::ToString() for negative numbers.

Don't include the possible leading sign in the span of digits to be grouped as
this gave nonsensical strings such as "-,123" when adding thousands separators
to "123".

Closes #14526.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove workaround for slow scrolling in wxStyledTextCtrl.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:31 +0000 (22:08 +0000)] 
Remove workaround for slow scrolling in wxStyledTextCtrl.

We don't need to drop mouse wheel events coming too fast after the previous
commit as now scrolling in wxStyledTextCtrl works quickly enough.

Closes #9057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove unnecessary Update() in wxStyledTextCtrl scrolling code.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:24 +0000 (22:08 +0000)] 
Remove unnecessary Update() in wxStyledTextCtrl scrolling code.

Calling Update() every time ScrollText() dramatically slowed down scrolling
and doesn't seem to be necessary, so remove it.

See #9057.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMake keyboard sample output less confusing.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:21 +0000 (22:08 +0000)] 
Make keyboard sample output less confusing.

Warn if key presses occur when the input window doesn't have focus as the
usual key events are not generated then which could be understood as a bug in
the sample instead of the correct result.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoGenerate clipboard events for wxComboBox in wxGTK too.
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:15 +0000 (22:08 +0000)] 
Generate clipboard events for wxComboBox in wxGTK too.

These events were only generated for wxTextCtrl but should be sent for
non-readonly wxComboBox too, so refactor the code to allow its reuse from
wxComboBox.

Also add EVT_TEXT_PASTE handlers for both controls to the widgets sample for
testing.

Closes #14520.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRevert HasModifiers() change in behaviour, add HasAnyModifiers().
Vadim Zeitlin [Sun, 29 Jul 2012 22:08:09 +0000 (22:08 +0000)] 
Revert HasModifiers() change in behaviour, add HasAnyModifiers().

In 2.8 wxKeyEvent::HasModifiers() returned false if (only) Shift was pressed
as it tested for Control and Alt only but when it was moved to wxKeyboardState
in r55745 it started checking for all modifiers as this made more sense now
that it was used by wxMouseEvent. However it broke existing code using it,
including in wxWidgets itself (in wxTreeCtrl), so revert it now and add
HasAnyModifiers() that does check for all modifiers, including Shift.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd a wxGTK-specific function to set wxNotificationMessage icon name.
Vadim Zeitlin [Sun, 29 Jul 2012 22:07:06 +0000 (22:07 +0000)] 
Add a wxGTK-specific function to set wxNotificationMessage icon name.

It's trivial to use a stock icon with the given name in wxGTK with libnotify,
so provide a way to do it. However this is not as simple as that in other
implementations (notably Windows), so make it private to this port for now.

In the future we should try to support arbitrary wxIcons as well as extend
wxIconLocation to support FreeDesktop stock icon names.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix installed wx-config broken by r72205.
Václav Slavík [Sun, 29 Jul 2012 08:52:52 +0000 (08:52 +0000)] 
Fix installed wx-config broken by r72205.

In an attempt to fix DESTDIR support on platforms without symbolic
links, this commit completely broke the wx-config symlink created by
"make install" everywhere (unless you were insane enough to use
"--prefix=/", that is): $(libdir) is absolute path and so using
../$(libdir) has no chance of working.

Fixed by using `basename $(libdir)`. This is still unsatisfactory,
because it assumes that $(libdir) and $(bindir) are at the same level in
the filesystem -- which, while usually true, is by no means guaranteed.
But at least this works most of the time.

See #14517.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd GetHandle for wxGnomePrinterDCImpl
Robin Dunn [Sat, 28 Jul 2012 21:52:37 +0000 (21:52 +0000)] 
Add GetHandle for wxGnomePrinterDCImpl

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxDC::GetHandle support for wxGTK
Robin Dunn [Sat, 28 Jul 2012 19:31:18 +0000 (19:31 +0000)] 
wxDC::GetHandle support for wxGTK

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxDC::GetHandle support for wxMSW
Robin Dunn [Sat, 28 Jul 2012 19:31:09 +0000 (19:31 +0000)] 
wxDC::GetHandle support for wxMSW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdding wxDC::GetHandle for wxOSX-cocoa and wxOSX-carbon
Robin Dunn [Sat, 28 Jul 2012 19:31:03 +0000 (19:31 +0000)] 
Adding wxDC::GetHandle for wxOSX-cocoa and wxOSX-carbon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoMove new wxGTK wxNotificationMessage files to adv from core.
Vadim Zeitlin [Fri, 27 Jul 2012 19:36:59 +0000 (19:36 +0000)] 
Move new wxGTK wxNotificationMessage files to adv from core.

The new files were erroneously added to the wrong place, move them where they
belong.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix compilation of new wxNotificationMessage for wxGTK without libnotify.
Vadim Zeitlin [Fri, 27 Jul 2012 16:03:35 +0000 (16:03 +0000)] 
Fix compilation of new wxNotificationMessage for wxGTK without libnotify.

Add the wxUSE_LIBNOTIFY check forgotten by the previous commit.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoImplement wxNotificationMessage using libnotify in wxGTK.
Vadim Zeitlin [Fri, 27 Jul 2012 15:36:54 +0000 (15:36 +0000)] 
Implement wxNotificationMessage using libnotify in wxGTK.

Use libnotify -- if detected by configure -- to provide native notifications
in wxGTK. Our API maps to libnotify one in rather straightforward way, we
might consider extending it to cover more of libnotify functionality
(categories, user-defined icons and, especially, actions) later.

Also update the dialogs sample to show another kind of notification and the
documentation to clarify the behaviour of various methods.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd a private wrapper for GError to wxGTK.
Vadim Zeitlin [Fri, 27 Jul 2012 15:36:45 +0000 (15:36 +0000)] 
Add a private wrapper for GError to wxGTK.

This class simply calls g_error_free() automatically.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd all extra GTK libraries to GUI_TK_LIBRARY in configure.
Vadim Zeitlin [Fri, 27 Jul 2012 15:36:40 +0000 (15:36 +0000)] 
Add all extra GTK libraries to GUI_TK_LIBRARY in configure.

Some libraries (e.g. Pango) were added to GUI_TK_LIBRARY already while others
(e.g. Hildon) had their own EXTRALIBS_HILDON variables that were then added to
EXTRALIBS_GUI separately. Finally, some others were simply broken because
neither EXTRALIBS_GNOMEVFS nor EXTRALIBS_GTKPRINT were set anywhere.

Standardize on using GUI_TK_LIBRARY for everything.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxOSX/Carbon compilation fix after the changes of r72207.
Vadim Zeitlin [Wed, 25 Jul 2012 22:21:45 +0000 (22:21 +0000)] 
wxOSX/Carbon compilation fix after the changes of r72207.

Don't use position for keyboard events in Carbon code neither.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agowxMSW: Use TBSTYLE_AUTOSIZE for toolbar buttons with horizontal text.
Václav Slavík [Wed, 25 Jul 2012 16:31:58 +0000 (16:31 +0000)] 
wxMSW: Use TBSTYLE_AUTOSIZE for toolbar buttons with horizontal text.

Without this style, all buttons share the same width and look ugly when
their labels differ even a little in their lengths. With
TBSTYLE_AUTOSIZE, toolbar buttons use the size of their image plus
label's width and look better, even though their sizes differ.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAnother wxOSX compilation fix after the changes of r72207.
Vadim Zeitlin [Tue, 24 Jul 2012 23:13:30 +0000 (23:13 +0000)] 
Another wxOSX compilation fix after the changes of r72207.

Don't use position for keyboard events in wxWebKitCtrl code neither.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxWebView::GetNativeBackend() method.
Vadim Zeitlin [Tue, 24 Jul 2012 21:59:21 +0000 (21:59 +0000)] 
Add wxWebView::GetNativeBackend() method.

This allows to use platform-specific methods in user code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoBuild fix for wxOSX after removing position in MacCreateKeyEvent().
Vadim Zeitlin [Tue, 24 Jul 2012 21:44:32 +0000 (21:44 +0000)] 
Build fix for wxOSX after removing position in MacCreateKeyEvent().

This fixes compilation after the changes of r72207.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoI don't think this is still necessary, see #13625
Stefan Csomor [Tue, 24 Jul 2012 21:43:15 +0000 (21:43 +0000)] 
I don't think this is still necessary, see #13625

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't eagerly set wxKeyEvent position fields.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:52 +0000 (20:45 +0000)] 
Don't eagerly set wxKeyEvent position fields.

This results in a noticeable delay when using wxGTK via a remote X11
connection for every key event as a round trip to server is needed to get the
mouse pointer position every time a key is pressed or released.

Only provide the position on demand. And explain that it's actually not very
useful as it's simply the same as the current mouse position.

Closes #14361.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72207 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoExtract OS X non-GUI event loop in a separate header.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:43 +0000 (20:45 +0000)] 
Extract OS X non-GUI event loop in a separate header.

This will allow its reuse from non-wxOSX ports, e.g. wxGTK under OS X.

Closes #14519.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse relative path for wx-config symlink in "make install".
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:36 +0000 (20:45 +0000)] 
Use relative path for wx-config symlink in "make install".

This fixes "make DESTDIR=..." Broken by r71050 but still allows "make
DESTDIR=... install" to work even under MinGW where "ln -s" is mapped to "cp"
and so doesn't work with non-existing first argument.

Closes #14517.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxDir::Close().
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:30 +0000 (20:45 +0000)] 
Add wxDir::Close().

This is trivial to have and can sometimes be useful and also is symmetric to
Open().

Closes #14493.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72204 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoSet up scrollbars correctly for wxWebView in wxGTK.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:25 +0000 (20:45 +0000)] 
Set up scrollbars correctly for wxWebView in wxGTK.

This allows Scroll{Lines,Pages}() methods inherited from wxWindow to work with
it.

Add a test of using them to the sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRefactor: extract GtkScrolledWindow creation from wxWindow::Create().
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:21 +0000 (20:45 +0000)] 
Refactor: extract GtkScrolledWindow creation from wxWindow::Create().

No real changes, just make it possible to reuse the scrolled window and
scrollbars creation code from derived classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAllow passing the URL to open to webview sample on command line.
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:14 +0000 (20:45 +0000)] 
Allow passing the URL to open to webview sample on command line.

This makes it simpler to test the sample with other pages and especially local
HTML files.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo real changes, just avoid overloaded virtual wxWebView::SetPage().
Vadim Zeitlin [Tue, 24 Jul 2012 20:45:10 +0000 (20:45 +0000)] 
No real changes, just avoid overloaded virtual wxWebView::SetPage().

Instead, have two public non-virtual SetPage() methods forwarding to a private
DoSetPage(), as usual.

This avoids the need for "using wxWebView::SetPage" which is needed to avoid
warnings about hiding the other base class virtual when implementing one of
them and which was forgotten in wxMSW version resulting in warnings when using
g++ to compile it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInstall the wx/gtk/dc.h header file.
Robin Dunn [Tue, 24 Jul 2012 19:12:39 +0000 (19:12 +0000)] 
Install the wx/gtk/dc.h header file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoavoid deprecated API, fixes #13727
Stefan Csomor [Tue, 24 Jul 2012 09:14:51 +0000 (09:14 +0000)] 
avoid deprecated API, fixes #13727

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoguard against not-yet-existing font, fixes #14516
Stefan Csomor [Tue, 24 Jul 2012 05:58:19 +0000 (05:58 +0000)] 
guard against not-yet-existing font, fixes #14516

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't constantly reload comctl32.dll in wxTreeCtrl::MSWOnNotify().
Vadim Zeitlin [Mon, 23 Jul 2012 15:04:09 +0000 (15:04 +0000)] 
Don't constantly reload comctl32.dll in wxTreeCtrl::MSWOnNotify().

The "loaded" flag was never set to true, so we kept reloading the DLL on every
callback.

Do set the flag after loading it successfully.

Closes #14512.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxMSW wxStaticBox compilation when wxUSE_UXTHEME==0.
Vadim Zeitlin [Mon, 23 Jul 2012 15:04:04 +0000 (15:04 +0000)] 
Fix wxMSW wxStaticBox compilation when wxUSE_UXTHEME==0.

Don't compile the theme-using code in PaintForeground().

Closes #14511.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxMSW wxTextEntry compilation in wxUSE_DYNLIB_CLASS==0 case.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:57 +0000 (15:03 +0000)] 
Fix wxMSW wxTextEntry compilation in wxUSE_DYNLIB_CLASS==0 case.

Simply don't define DoAutoCompleteFileNames() as it needs wxDynamicLibrary to
compile and work.

Closes #14510.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxUSE_IFILEDIALOG definition in wxUSE_DYNLIB_CLASS==0 case.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:52 +0000 (15:03 +0000)] 
Fix wxUSE_IFILEDIALOG definition in wxUSE_DYNLIB_CLASS==0 case.

wxUSE_XXX symbols such as this one need to be defined as 0 and not as nothing
at all.

Closes #14509.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix wxWindow::MSWShowWithEffect() compilation with wxUSE_DYNLIB_CLASS==0.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:47 +0000 (15:03 +0000)] 
Fix wxWindow::MSWShowWithEffect() compilation with wxUSE_DYNLIB_CLASS==0.

Fall back to just plain Show() if wxDynamicLibrary, which we use to get
function not existing in all Windows versions, is not available.

Closes #14509.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse __DARWIN__ instead of __WXOSX__ in non-GUI code.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:42 +0000 (15:03 +0000)] 
Use __DARWIN__ instead of __WXOSX__ in non-GUI code.

This fixes compilation of non-wxOSX ports (e.g. wxGTK) under OS X.

Also make the difference between the two symbols more clear in the
documentation.

Closes #14503.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix --enable-webview_xxx options names in configure.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:35 +0000 (15:03 +0000)] 
Fix --enable-webview_xxx options names in configure.

Dashes can't be used in the option names, they're filtered out by configure.

Closes #14507.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDefine wxGUIAppTraits for wxGTK/Windows port.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:30 +0000 (15:03 +0000)] 
Define wxGUIAppTraits for wxGTK/Windows port.

Closes #14505.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix compilation of wxOSX event loop without wxUSE_EVENTLOOP_SOURCE.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:25 +0000 (15:03 +0000)] 
Fix compilation of wxOSX event loop without wxUSE_EVENTLOOP_SOURCE.

Closes #14502.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoHandle accelerators earlier in keyboard processing code in wxGTK.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:21 +0000 (15:03 +0000)] 
Handle accelerators earlier in keyboard processing code in wxGTK.

Translate key presses to accelerators before sending wxEVT_KEY_DOWN.
Also check for accelerators even for the key combinations handled by IM,
normally IM should take precedence but IM seems to intercept common keys such
as Shift+anything which it makes sense to use as accelerators.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse wxGTK platform-specific files in wxAdv under OS X.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:15 +0000 (15:03 +0000)] 
Use wxGTK platform-specific files in wxAdv under OS X.

Closes #14501.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix assert in webview sample when viewing pages without a title.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:09 +0000 (15:03 +0000)] 
Fix assert in webview sample when viewing pages without a title.

Trying to append a menu item with empty label resulted in an assert (at least
under wxGTK but probably elsewhere too), and in any case wasn't very useful,
so use "(untitled)" instead in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix crash on wxWebViewWebKit window destruction.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:05 +0000 (15:03 +0000)] 
Fix crash on wxWebViewWebKit window destruction.

We were getting crashes due to using methods of already half-destroyed object
when wxWebView window was destroyed in wxGTK, with the following abbreviated
stack:

 #0  wxgtk_webview_webkit_load_status (widget=0x12eb380, webKitCtrl=0x13ee040) at src/gtk/webview_webkit.cpp:38
...
 #8  0x00007ffff05ca281 in dispatchDidFailLoad (error=..., this=0x7fffe32db900) at ../Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:1054
 #9  WebKit::FrameLoaderClient::dispatchDidFailLoad (this=0x7fffe32db900, error=...) at ../Source/WebKit/gtk/WebCoreSupport/FrameLoaderClientGtk.cpp:1049
 #10 0x00007ffff0b0de54 in WebCore::FrameLoader::checkLoadCompleteForThisFrame (this=0x7fffe3221b70) at ../Source/WebCore/loader/FrameLoader.cpp:2128
 #11 0x00007ffff0b0cfde in WebCore::FrameLoader::checkLoadComplete (this=<optimized out>) at ../Source/WebCore/loader/FrameLoader.cpp:2370
 #12 0x00007ffff0b0a3b2 in WebCore::FrameLoader::receivedMainResourceError (this=0x7fffe3221b70, error=..., isComplete=true) at ../Source/WebCore/loader/FrameLoader.cpp:2640
 #13 0x00007ffff0b423b7 in cancel (error=..., this=0x7fffe3279680) at ../Source/WebCore/loader/ResourceLoader.cpp:399
 #14 WebCore::ResourceLoader::cancel (this=0x7fffe3279680, error=...) at ../Source/WebCore/loader/ResourceLoader.cpp:353
 #15 0x00007ffff0b420c0 in WebCore::ResourceLoader::cancel (this=<optimized out>) at ../Source/WebCore/loader/ResourceLoader.cpp:350
 #16 0x00007ffff0afda9e in WebCore::DocumentLoader::stopLoading (this=0x7fffa081d800) at ../Source/WebCore/loader/DocumentLoader.cpp:258
 #17 0x00007ffff0b09561 in stopAllLoaders (clearProvisionalItemPolicy=WebCore::ShouldClearProvisionalItem, this=0x7fffe3221b70) at ../Source/WebCore/loader/FrameLoader.cpp:1523
 #18 WebCore::FrameLoader::stopAllLoaders (this=0x7fffe3221b70, clearProvisionalItemPolicy=WebCore::ShouldClearProvisionalItem) at ../Source/WebCore/loader/FrameLoader.cpp:1501
 #19 0x00007ffff0b0d17a in WebCore::FrameLoader::stopForUserCancel (this=0x7fffe3221b70, deferCheckLoadComplete=false) at ../Source/WebCore/loader/FrameLoader.cpp:1541
 #20 0x00007ffff05f3a36 in webkit_web_view_dispose (object=0x12eb380) at ../Source/WebKit/gtk/webkit/webkitwebview.cpp:1327
 #21 0x00007ffff27ff7a0 in g_object_run_dispose (object=0x12eb380) at /tmp/buildd/glib2.0-2.32.3/./gobject/gobject.c:1061
 #22 0x00007ffff4476c1e in gtk_scrolled_window_forall (container=0x7fff9c007d10, include_internals=0, callback=0x7ffff452cd20 <IA__gtk_widget_destroy>, callback_data=0x0)
     at /tmp/buildd/gtk+2.0-2.24.10/gtk/gtkscrolledwindow.c:1085
 #23 0x00007ffff439872f in gtk_container_destroy (object=0x7fff9c007d10) at /tmp/buildd/gtk+2.0-2.24.10/gtk/gtkcontainer.c:1073
...
 #28 0x00007ffff443cd60 in gtk_object_dispose (gobject=0x7fff9c007d10) at /tmp/buildd/gtk+2.0-2.24.10/gtk/gtkobject.c:421
 #29 0x00007ffff27ff7a0 in g_object_run_dispose (object=0x7fff9c007d10) at /tmp/buildd/glib2.0-2.32.3/./gobject/gobject.c:1061
 #30 0x00007ffff6cb65ac in wxWindow::~wxWindow (this=0x13ee040, __in_chrg=<optimized out>) at src/gtk/window.cpp:2367
 #31 0x00007ffff6d71241 in wxControlBase::~wxControlBase (this=0x13ee040, __in_chrg=<optimized out>) at src/common/ctrlcmn.cpp:49
 #32 0x00000000005cf761 in wxControl::~wxControl (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/gtk/control.h:27
 #33 0x00007ffff7bd1eae in wxWebView::~wxWebView (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/webview.h:96
 #34 0x00007ffff7bd3443 in wxWebViewWebKit::~wxWebViewWebKit (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/gtk/webview_webkit.h:26
 #35 0x00007ffff7bd34ae in wxWebViewWebKit::~wxWebViewWebKit (this=0x13ee040, __in_chrg=<optimized out>) at include/wx/gtk/webview_webkit.h:26

Fix this by setting m_isBeingDeleted flag for wxWebViewWebKit early and
checking it in the callback.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd missing wxSTDCALL to fix wxWebView compilation with Borland.
Vadim Zeitlin [Mon, 23 Jul 2012 15:03:01 +0000 (15:03 +0000)] 
Add missing wxSTDCALL to fix wxWebView compilation with Borland.

This patch from Guru Kathiresan fixes compilation with Borland C++ Builder
2007 and XE2.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDocument wxGTK limitation for accelerators involving Shift.
Vadim Zeitlin [Mon, 23 Jul 2012 15:02:57 +0000 (15:02 +0000)] 
Document wxGTK limitation for accelerators involving Shift.

Using Shift with non-alphabetic characters doesn't work due to GTK+ bug, see
https://bugzilla.gnome.org/show_bug.cgi?id=614146

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't change client size of TLW when centering it in wxGTK.
Vadim Zeitlin [Mon, 23 Jul 2012 15:02:53 +0000 (15:02 +0000)] 
Don't change client size of TLW when centering it in wxGTK.

Setting the frame client size and then calling Centre() on it resulted in the
frame coming up with a wrong client size in wxGTK because the call to Centre()
resulted in calling wxTopLevelWindow::DoSetSize() which unconditionally reset
m_deferShowAllowed to true, undoing setting it to false in DoSetClientSize().

Only reset m_deferShowAllowed if the size was really changed but not if the
window was only moved, as happens when centering it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agofixing capture problem for mouse moved events, fixes #14486
Stefan Csomor [Mon, 23 Jul 2012 13:18:47 +0000 (13:18 +0000)] 
fixing capture problem for mouse moved events, fixes #14486

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoFix typo introduced in r72167.
Václav Slavík [Sun, 22 Jul 2012 10:07:40 +0000 (10:07 +0000)] 
Fix typo introduced in r72167.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDocument wxWindow::Close() return value.
Václav Slavík [Sun, 22 Jul 2012 09:21:34 +0000 (09:21 +0000)] 
Document wxWindow::Close() return value.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoturning off undo for setter, otherwise memory gets used up for the undo stack, fixes...
Stefan Csomor [Sat, 21 Jul 2012 05:14:44 +0000 (05:14 +0000)] 
turning off undo for setter, otherwise memory gets used up for the undo stack, fixes #14500

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoCall Realize() later in XRC toolbar handler (patch #13888).
Václav Slavík [Fri, 20 Jul 2012 20:23:45 +0000 (20:23 +0000)] 
Call Realize() later in XRC toolbar handler (patch #13888).

This is a workaround for a deeper compatibility problem in Cocoa
implementation (see the bug for detailed discussion), but for now, this
simple workaround is much better than not doing nothing.

See #13888.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoNo changes, just fix some typos in comments.
Vadim Zeitlin [Fri, 20 Jul 2012 11:55:18 +0000 (11:55 +0000)] 
No changes, just fix some typos in comments.

Closes #14494.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoRemove unnecessary configure options from wxOSX install.txt.
Vadim Zeitlin [Fri, 20 Jul 2012 11:55:14 +0000 (11:55 +0000)] 
Remove unnecessary configure options from wxOSX install.txt.

There is no need to specify --enable-unicode nor --disable-shared. The latter
is mentioned below anyhow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse both URL-specific and plain text formats in wxGTK wxURLDataObject.
Vadim Zeitlin [Fri, 20 Jul 2012 11:55:10 +0000 (11:55 +0000)] 
Use both URL-specific and plain text formats in wxGTK wxURLDataObject.

Just as in wxMSW, it makes sense to put URLs on clipboard (or drag them) in
both URL-specific and plain text formats to facilitate pasting (or dropping)
them into other applications.

So make wxURLDataObject in wxGTK a composite data object containing both its
old data object and wxTextDataObject.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse proper format in wxGTK clipboard selection handler.
Vadim Zeitlin [Fri, 20 Jul 2012 11:55:04 +0000 (11:55 +0000)] 
Use proper format in wxGTK clipboard selection handler.

For some incomprehensible reason, GDK_SELECTION_TYPE_STRING was hard coded for
all non-text formats even though it was clearly never the right format to use.
Use the correct value specified by the format instead.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoUse text/uri-list instead of x-moz-url in wxGTK wxURLDataObject.
Vadim Zeitlin [Fri, 20 Jul 2012 11:55:00 +0000 (11:55 +0000)] 
Use text/uri-list instead of x-moz-url in wxGTK wxURLDataObject.

The standard exchange format for URLs is text/uri-list and not the deprecated
and Firefox-specific x-moz-url, support for which was moreover implemented
incorrectly anyhow.

Also add an example of copying URLs to the dnd sample.

See https://developer.mozilla.org/En/DragDrop/Recommended_Drag_Types for more
information.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoDon't use delayed destruction for sockets in other threads.
Vadim Zeitlin [Fri, 20 Jul 2012 11:54:56 +0000 (11:54 +0000)] 
Don't use delayed destruction for sockets in other threads.

The delayed destruction mechanism is not MT-safe, so using it for wxSocket
objects destroyed from threads other than main resulted in crashes. Luckily,
it is not necessary to use it for such sockets anyhow as they don't risk
receiving any events -- which are only dispatched in the main thread -- and so
can be destroyed immediately.

So do destroy them directly instead of just scheduling for later destruction
when wxSocket::Destroy() is called.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosimplify mouse button handling code
Paul Cornett [Fri, 20 Jul 2012 04:59:20 +0000 (04:59 +0000)] 
simplify mouse button handling code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoI think the "specific to PostScript" methods have been gone since 2.6, so let's stop...
Robin Dunn [Fri, 20 Jul 2012 00:53:31 +0000 (00:53 +0000)] 
I think the "specific to PostScript" methods have been gone since 2.6, so let's stop saying that they are there but undocumented.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoimprove appearance of themed borders
Paul Cornett [Thu, 19 Jul 2012 15:39:48 +0000 (15:39 +0000)] 
improve appearance of themed borders

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoInterface fixes for Phoenix
Robin Dunn [Thu, 19 Jul 2012 06:46:44 +0000 (06:46 +0000)] 
Interface fixes for Phoenix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoReverted format changes since 2.9 works differently
Julian Smart [Wed, 18 Jul 2012 15:00:38 +0000 (15:00 +0000)] 
Reverted format changes since 2.9 works differently

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoString formatting fixes
Julian Smart [Wed, 18 Jul 2012 14:04:34 +0000 (14:04 +0000)] 
String formatting fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoString formatting fix
Julian Smart [Wed, 18 Jul 2012 14:01:46 +0000 (14:01 +0000)] 
String formatting fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoadapting order to preference
Stefan Csomor [Mon, 16 Jul 2012 19:12:48 +0000 (19:12 +0000)] 
adapting order to preference

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agocorrect handling of order of preference of formats
Stefan Csomor [Mon, 16 Jul 2012 19:09:34 +0000 (19:09 +0000)] 
correct handling of order of preference of formats

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoremoving workaround for listbox, finishing drop target support, fixes #14484, see...
Stefan Csomor [Sun, 15 Jul 2012 18:05:17 +0000 (18:05 +0000)] 
removing workaround for listbox, finishing drop target support, fixes #14484, see #14281

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoA better panel label font size on Mac
Julian Smart [Sun, 15 Jul 2012 10:26:56 +0000 (10:26 +0000)] 
A better panel label font size on Mac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdded continuation bullet style for supporting multiple paragraphs in a list item
Julian Smart [Sun, 15 Jul 2012 06:42:15 +0000 (06:42 +0000)] 
Added continuation bullet style for supporting multiple paragraphs in a list item
The user can 'delete' the bullet to create a continuation paragraph

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agosimplify ifdefs, deferred show and _NET_FRAME_EXTENTS are X11-only
Paul Cornett [Sun, 15 Jul 2012 01:40:39 +0000 (01:40 +0000)] 
simplify ifdefs, deferred show and _NET_FRAME_EXTENTS are X11-only

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd wxSHOW_EFFECT_MAX
Robin Dunn [Sat, 14 Jul 2012 21:36:44 +0000 (21:36 +0000)] 
Add wxSHOW_EFFECT_MAX

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

12 years agoAdd missing Calc[Un]ScrolledPosition overloads taking a wxPoint.
Robin Dunn [Sat, 14 Jul 2012 21:36:38 +0000 (21:36 +0000)] 
Add missing Calc[Un]ScrolledPosition overloads taking a wxPoint.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775