]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
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

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

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

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

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

12 years agoAdd documentation for CURRENCY and SCODE wxVariant classes.
Vadim Zeitlin [Sat, 14 Jul 2012 21:35:04 +0000 (21:35 +0000)] 
Add documentation for CURRENCY and SCODE wxVariant classes.

This should have been part of r72081.

See #14225.

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

12 years agoRefactor wxMSW helper functions to allow reuse in wxGTK.
Vadim Zeitlin [Sat, 14 Jul 2012 20:11:04 +0000 (20:11 +0000)] 
Refactor wxMSW helper functions to allow reuse in wxGTK.

Extract wxMSW-specific part of src/msw/utilsgui.cpp into a new
src/msw/utilswin.cpp file to allow reuse the rest of the former file in wxGTK.

Closes #14424.

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

12 years agoAdd support for CURRENCY and SCODE to MSW OLE helpers.
Vadim Zeitlin [Sat, 14 Jul 2012 20:10:58 +0000 (20:10 +0000)] 
Add support for CURRENCY and SCODE to MSW OLE helpers.

This allows to call OLE Automation methods taking parameters or returning
values of these types.

Closes #14225.

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

12 years agoDisable the recently added wxFileSystemWatcher unit case under Windows.
Vadim Zeitlin [Sat, 14 Jul 2012 20:10:54 +0000 (20:10 +0000)] 
Disable the recently added wxFileSystemWatcher unit case under Windows.

It currently fails there, so don't run it until this is fixed to let the tests
pass globally.

See #14480.

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

12 years agoMinor fixes to wxGTK3 with Broadway backend build.
Vadim Zeitlin [Sat, 14 Jul 2012 20:10:50 +0000 (20:10 +0000)] 
Minor fixes to wxGTK3 with Broadway backend build.

Reuse some functions for both Broadway and X11 backends. Fix invalid casts
from Broadway screen/display types to X11 ones.

Closes #14469.

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

12 years agofix creation of wxBitmapComboBox with GTK3
Paul Cornett [Sat, 14 Jul 2012 05:26:59 +0000 (05:26 +0000)] 
fix creation of wxBitmapComboBox with GTK3

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

12 years agoAllow building wxGTK3 with Broadway backend.
Vadim Zeitlin [Fri, 13 Jul 2012 18:22:22 +0000 (18:22 +0000)] 
Allow building wxGTK3 with Broadway backend.

Use GDK_WINDOWING_BROADWAY to fix compilation with it.

Closes #14469.

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

12 years agoFix for caret positioning bug when selecting content
Julian Smart [Fri, 13 Jul 2012 18:11:24 +0000 (18:11 +0000)] 
Fix for caret positioning bug when selecting content

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

12 years agoavoid creating and immediately destroying a wxGraphicsContext when creating a wxDC...
Paul Cornett [Fri, 13 Jul 2012 16:58:37 +0000 (16:58 +0000)] 
avoid creating and immediately destroying a wxGraphicsContext when creating a wxDC with wxGTK3

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

12 years agoFixed wxRichTextCtrl caret test case
Julian Smart [Fri, 13 Jul 2012 16:38:15 +0000 (16:38 +0000)] 
Fixed wxRichTextCtrl caret test case

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

12 years agoRename wxFileSystemWatcherBase::DoAdd() to AddAny() and make it public.
Vadim Zeitlin [Fri, 13 Jul 2012 12:00:14 +0000 (12:00 +0000)] 
Rename wxFileSystemWatcherBase::DoAdd() to AddAny() and make it public.

Make this method public to fix compilation after the recent changes as
traverser classes can't call it otherwise (no idea why did it compile with
g++). And give it a better name just in case people decide to call it even
though it's not documented and described as private in comment (but perhaps we
could make it really public later).

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

12 years agoAdd possibility to hide and show again wxRibbonBar pages.
Vadim Zeitlin [Fri, 13 Jul 2012 11:46:43 +0000 (11:46 +0000)] 
Add possibility to hide and show again wxRibbonBar pages.

Added wxRibbonBar::ShowPage(), HidePage() and IsPageShown() methods and show
them in the sample.

Also add GetPageNumber() helper.

Closes #14471.

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

12 years agoGenerate tags for ribbon headers and sources too.
Vadim Zeitlin [Fri, 13 Jul 2012 11:46:39 +0000 (11:46 +0000)] 
Generate tags for ribbon headers and sources too.

Add the files in {include/wx,src}/ribbon to the list of ctags inputs.

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

12 years agoTest calling wxFileSystemWatcher::{Add,Remove}Tree().
Vadim Zeitlin [Fri, 13 Jul 2012 11:22:13 +0000 (11:22 +0000)] 
Test calling wxFileSystemWatcher::{Add,Remove}Tree().

Add a test for tree monitoring functions to the unit test.

See #14480.

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

12 years agoProperly use RemoveTree() in fswatcher sample.
Vadim Zeitlin [Fri, 13 Jul 2012 11:22:10 +0000 (11:22 +0000)] 
Properly use RemoveTree() in fswatcher sample.

We need to use RemoveTree() to remove watches for the paths added with
AddTree().

See #14480.

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

12 years agoAdd the root and all the files in wxFileSystemWatcherBase::AddTree().
Vadim Zeitlin [Fri, 13 Jul 2012 11:22:06 +0000 (11:22 +0000)] 
Add the root and all the files in wxFileSystemWatcherBase::AddTree().

When watching a tree recursively, add the files and not only the directories.

Also, add -- and remove in RemoveTree() -- the root directory itself and not
only its children.

Closes #14480.

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

12 years agoalways use calibrated colors, fixes #14482
Stefan Csomor [Fri, 13 Jul 2012 06:51:04 +0000 (06:51 +0000)] 
always use calibrated colors, fixes #14482

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

12 years agoInterface fix for Phoenix.
Robin Dunn [Thu, 12 Jul 2012 20:50:31 +0000 (20:50 +0000)] 
Interface fix for Phoenix.

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

12 years agoFix bogus asserts in Unix wxFileSystemWatcher for removed files.
Vadim Zeitlin [Thu, 12 Jul 2012 18:34:22 +0000 (18:34 +0000)] 
Fix bogus asserts in Unix wxFileSystemWatcher for removed files.

Store the recently removed file descriptors and don't assert if we get an
event for one of them, this can happen and is normal unlike unexpected events
for completely unknown descriptors for which we still keep an assert.

Closes #14465.

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

12 years agoFix item data access in wxDataViewListCtrl.
Vadim Zeitlin [Thu, 12 Jul 2012 18:34:18 +0000 (18:34 +0000)] 
Fix item data access in wxDataViewListCtrl.

Map items to rows correctly, just using wxPtrToUInt()-1 is not the right thing
to do if any items were deleted or changed.

Closes #14479.

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

12 years agoAdded more items to the release check list.
Vadim Zeitlin [Thu, 12 Jul 2012 13:18:06 +0000 (13:18 +0000)] 
Added more items to the release check list.

Mention that the change log should be uploaded too (it would be perhaps more
useful to have a change log for just this release but for now upload the
entire file) and that the llatest available version must be update on the web
site.

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

12 years agoNo changes, just remove TABs from configure.in.
Vadim Zeitlin [Wed, 11 Jul 2012 19:28:46 +0000 (19:28 +0000)] 
No changes, just remove TABs from configure.in.

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

12 years agoJust like dependency tracking don't disable precompiled headers if there is only...
Robin Dunn [Wed, 11 Jul 2012 19:16:10 +0000 (19:16 +0000)] 
Just like dependency tracking don't disable precompiled headers if there is only one architecture being built.

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

12 years agofix some more improper widget casts
Paul Cornett [Wed, 11 Jul 2012 17:08:03 +0000 (17:08 +0000)] 
fix some more improper widget casts

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

12 years agoUse GTK_IS_ENTRY() to determine if widget is a GtkEntry.
Paul Cornett [Wed, 11 Jul 2012 16:49:07 +0000 (16:49 +0000)] 
Use GTK_IS_ENTRY() to determine if widget is a GtkEntry.
If widget is not a GtkEntry, using GTK_ENTRY() will result in assertion or crash

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

12 years agoRevert "Temporarily disable the failing wxRichTextCtrl case."
Vadim Zeitlin [Wed, 11 Jul 2012 12:16:41 +0000 (12:16 +0000)] 
Revert "Temporarily disable the failing wxRichTextCtrl case."

Revert r71945 which disabled failing wxRichTextCtrl unit test. It fails again
now and hopefully will be fixed before 2.9.5.

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

12 years agoAllow saving images under a different name in the image sample.
Vadim Zeitlin [Wed, 11 Jul 2012 11:42:47 +0000 (11:42 +0000)] 
Allow saving images under a different name in the image sample.

Also allow saving in XPM format.

See #13905.

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

12 years agoEnsure that names of saved XPMs are valid C identifiers.
Vadim Zeitlin [Wed, 11 Jul 2012 11:42:43 +0000 (11:42 +0000)] 
Ensure that names of saved XPMs are valid C identifiers.

The name of the XPM should be based on the file name but can't always be
exactly equal to it as it's possible (and relatively common, e.g.
"foo-24.xpm") to have characters forbidden in identifiers to appear in the
file names. Ensure that we use a valid C identifier here.

Closes #13905.

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

12 years agoFix bug with using invalid date in wxMSW wxCalendarCtrl.
Vadim Zeitlin [Wed, 11 Jul 2012 11:42:39 +0000 (11:42 +0000)] 
Fix bug with using invalid date in wxMSW wxCalendarCtrl.

Fall back to the start date of the native control if our own date was not set
yet.

Closes #14476.

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

12 years agoActivate OLE ActiveX controls before requesting their window.
Vadim Zeitlin [Wed, 11 Jul 2012 11:42:34 +0000 (11:42 +0000)] 
Activate OLE ActiveX controls before requesting their window.

Change the order of IOkeInPlaceActiveObject::GetWindow() and
DoVerb(OLEIVERB_INPLACEACTIVATE) calls and do the latter first now as
otherwise GetWindow() returned NULL for standard ActiveX controls created by
MFC.

Closes #14209.

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

12 years agoChange the format of the documentation archives for the release.
Vadim Zeitlin [Wed, 11 Jul 2012 11:42:32 +0000 (11:42 +0000)] 
Change the format of the documentation archives for the release.

Call them wxWidgets-x.y.z-docs-nnn instead of wxWidgets-docs-nnn.x.y.z.

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

12 years agoFix compilation of newly added msw/evtloopconsole.cpp without PCH.
Vadim Zeitlin [Wed, 11 Jul 2012 11:42:28 +0000 (11:42 +0000)] 
Fix compilation of newly added msw/evtloopconsole.cpp without PCH.

Include <windows.h> and "wx/log.h" explicitly when not using PCH.

Closes #14475.

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

12 years agofake paint events don't work with wxGTK3 either
Paul Cornett [Wed, 11 Jul 2012 07:32:10 +0000 (07:32 +0000)] 
fake paint events don't work with wxGTK3 either

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

12 years agoremove code in SetFont which modifies font for no apparent purpose
Paul Cornett [Wed, 11 Jul 2012 07:05:55 +0000 (07:05 +0000)] 
remove code in SetFont which modifies font for no apparent purpose

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

12 years agoAvoid creating and immediately destroying a wxGraphicsContext for most uses of wxGCDC.
Paul Cornett [Wed, 11 Jul 2012 06:36:38 +0000 (06:36 +0000)] 
Avoid creating and immediately destroying a wxGraphicsContext for most uses of wxGCDC.
This also causes the dummy "measuring context" to be properly initialized with a default font

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

12 years agoInterface fixes for Phoenix.
Robin Dunn [Wed, 11 Jul 2012 04:23:58 +0000 (04:23 +0000)] 
Interface fixes for Phoenix.

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