]>
git.saurik.com Git - wxWidgets.git/log
Paul Cornett [Wed, 2 Jan 2013 18:11:30 +0000 (18:11 +0000)]
look for backtrace() in -lexecinfo, fixes #14942
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73333
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 2 Jan 2013 16:41:41 +0000 (16:41 +0000)]
Chinese translations update from William Jiang.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73332
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 31 Dec 2012 13:40:17 +0000 (13:40 +0000)]
Slight improvements to wxWebView::EnableContextMenu() documentation.
Explain that the menu is enabled by default so the main use of this method is
to disable it.
Also add "@since" tags for the new methods.
And mention this in the changelog.
See #14789.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73327
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 31 Dec 2012 13:21:21 +0000 (13:21 +0000)]
Add context menu enabling and disabling to wxWebView, all backends supported.
Closes #14789.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73326
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sun, 30 Dec 2012 20:19:58 +0000 (20:19 +0000)]
Add handling of http errors to wxWebViewIE. Tidy up existing large case statement.
Closes #14877.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73325
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 29 Dec 2012 23:47:03 +0000 (23:47 +0000)]
Slovenian translations update from Martin Srebotnjak.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73324
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 29 Dec 2012 21:53:13 +0000 (21:53 +0000)]
Fix wxLocale::GetInfo() in C locale under Windows.
Don't use LOCALE_USER_DEFAULT when the locale hadn't been changed because the
user default locale often (and maybe even always) is different from "C" locale
used by the CRT resulting in mismatch between the conventions used by
wxDateTime::Format(), which uses the CRT locale, and wxDateTime::Parse(),
which uses Windows format. Instead use the hard-coded values corresponding to
the "C" locale to ensure we use the same values as the CRT in this case.
This also reverts r73244 which was applies to make the unit tests pass before
this fix as it's not necessary any longer.
Closes #14918.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73320
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 29 Dec 2012 21:53:09 +0000 (21:53 +0000)]
Ensure that scrollbars are shown in scrolled popup in the popup sample.
Don't call SetScrollbars(), this is overridden by sizer logic later. Instead,
add a sufficiently big window to the popup and make fix the size of the popup
itself to be smaller to ensure that the scrollbars do show.
Closes #14900.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73319
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 29 Dec 2012 21:53:05 +0000 (21:53 +0000)]
No changes, just fix unused variable in wxUSE_STATBMP==0 build.
Move the condition used only for wxStaticBitmap positioning inside "#if
wxUSE_STATBMP" section.
Closes #14929.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73318
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 29 Dec 2012 21:53:03 +0000 (21:53 +0000)]
Including wx/msw/missing.h to define INVALID_FILE_ATTRIBUTES for MSVC6.
This should fix the remaining problem in VC6 build.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73317
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 29 Dec 2012 20:15:50 +0000 (20:15 +0000)]
No changes, just remove unneeded variable initialization.
Don't initialize htmlWindowBorder in wxHtmlHelpWindow::Create() just to
overwrite it with another value on the next line.
Closes #14933.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73315
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 29 Dec 2012 20:15:44 +0000 (20:15 +0000)]
Spelling fixes in comments in wxOSX.
No real changes.
Closes #14932.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73314
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 29 Dec 2012 07:07:29 +0000 (07:07 +0000)]
reference count the GtkMenuItem in wxMenuItem as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73311
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 29 Dec 2012 06:29:52 +0000 (06:29 +0000)]
make GTKNeedsParent() private
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73310
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 29 Dec 2012 06:21:01 +0000 (06:21 +0000)]
m_menubar does not need to be public for hildon, it's the same as m_widget in that case
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73309
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 29 Dec 2012 02:32:16 +0000 (02:32 +0000)]
Fix missing or broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73300
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 28 Dec 2012 18:38:55 +0000 (18:38 +0000)]
use wxDEPRECATED_CONSTRUCTOR() instead of inline
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73298
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 28 Dec 2012 17:04:01 +0000 (17:04 +0000)]
remove unused variable assignment, closes #14928
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73297
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 28 Dec 2012 16:56:01 +0000 (16:56 +0000)]
Use gtk_menu_item_remove_submenu() with GTK2
because gtk_menu_item_set_submenu() with NULL menu argument does not work
before GTK 2.12 and there is no need to avoid calling it on later GTK2 versions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73296
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:24 +0000 (16:03 +0000)]
Suppress warning about _set_se_translator() for VC++ 10 and 11 too.
Previously we disabled this warning for VC versions up to 9 but the warning
still seems to be as harmless as before for the newer versions too.
Closes #13607.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73295
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:20 +0000 (16:03 +0000)]
Don't assume that wxTE_RICH(2) implies wxTE_MULTILINE for wxTextCtrl in wxOSX.
Under MSW single line text controls can still use these styles, so don't
assume that the control should be made multi-line just because one of them is
specified.
This fixes the appearance of the in-place text control in wxGridCellTextEditor
which is created with wxTE_RICH2 style to work around some wxMSW problem.
Closes #11681.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73294
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:16 +0000 (16:03 +0000)]
Process HDN_TRACK in wxMSW wxHeaderCtrl just in case.
This message is not supposed to be sent but apparently some buggy comctl32.dll
versions do send it instead of HDN_ITEMCHANGING, so handle it too.
Closes #13506.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73293
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:12 +0000 (16:03 +0000)]
Don't call wxTextMeasure::BeginMeasuring() when using non-native wxDC.
This is useless as we don't use wxTextMeasure in this case but just forward to
the wxDC itself, and also results in an assert in wxMSW wxTextMeasure
implementation.
Closes #14916.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73292
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:09 +0000 (16:03 +0000)]
Parse files from include/wx/*.h when making wxMSW tags.
Fix missing wxTextMeasure &c in wxMSW tags.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73291
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:03:03 +0000 (16:03 +0000)]
Allow building wxGTK under Windows with MSVC.
Replace a few more __WXMSW__ tests with __WINDOWS__ ones and modify bakefiles
to allow specifying the toolkit to be built in wxMSW makefiles.
Closes #13902.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73290
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:02:11 +0000 (16:02 +0000)]
Remove connection of MyDllApp::OnIdle() handler in the dll sample.
This method didn't really exist, the code only worked because it connected to
wxApp::OnIdle() which exists in wxMSW but not the other ports.
Simply remove the apparently unnecessary call.
See #13902.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73289
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:02:07 +0000 (16:02 +0000)]
No changes, just avoid unused variable in wxUSE_TOOLTIPS==0 build.
Move the declaration of a variable only used for tooltip setting inside "#if
wxUSE_TOOLTIPS" test.
Closes #14927.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73288
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:02:04 +0000 (16:02 +0000)]
Use a single taskbar icon for all notifications in wxMSW.
Allocating a new icon for every notification could result in showing many
identical icons in the taskbar notification area if several notification
messages were generated which looked like a bug to the user. It was also
inconsistent with the behaviour in the case when UseTaskBarIcon() was called.
Always behave as in the latter case now, i.e. any subsequent notification
replaces the previous one instead of being shown in addition to it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73287
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 16:01:59 +0000 (16:01 +0000)]
Remove extra "#" operator in wxFAIL_COND_MSG macro.
The argument of this macro is already a string, so we don't need to stringify
it again.
This fixes VC6 build, unlike all the other compilers this one didn't apply "#"
to an argument which was already a quoted string correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73286
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 28 Dec 2012 13:15:08 +0000 (13:15 +0000)]
silence unused var warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73285
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 28 Dec 2012 01:50:33 +0000 (01:50 +0000)]
non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73284
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:13 +0000 (00:44 +0000)]
Fix regression with wxHTML table elements background handling.
Wrong background was used for the text inside HTML tables since r72589, fix
this by setting the correct background before processing the table elements
and restoring it after doing it.
Closes #14909.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73283
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:09 +0000 (00:44 +0000)]
Ensure that client display rectangle is always less than its total area.
Under Unix we could return client display rectangle that was bigger than the
entire display size as it corresponded to the total screen size when
_NET_WORKAREA was not supported or was not correctly implemented by the WM.
Fix this by explicitly intersecting the client rect with the total one.
Closes #14419.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73282
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:05 +0000 (00:44 +0000)]
Document wxListBox and wxChoice as inheriting from wxItemContainer.
Due to an apparent Doxygen bug, methods inherited from wxItemContainer via
wxControlWithItems didn't appear in the documentation, so work around this by
using wxItemContainer as a direct base class.
Closes #14882.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73281
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 00:44:01 +0000 (00:44 +0000)]
Add wxGCC_WARNING_{SUPPRESS,RESTORE} macros and use them for -Wfloat-equal.
Suppress the warnings about comparing floating point values for equality in
wxWidgets headers when the user code is compiled with -Wfloat-equal (at least
when using g++ 4.6 or later).
Closes #14895.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73280
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 00:43:57 +0000 (00:43 +0000)]
No changes, just don't initialize the variable twice.
Remove the inactive code probably copy-and-pasted from somewhere else.
Closes #14924.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73279
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 28 Dec 2012 00:43:53 +0000 (00:43 +0000)]
No changes, just remove an unused variable.
Closes #14923.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73278
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 27 Dec 2012 05:59:23 +0000 (05:59 +0000)]
Use proper reference counting on GtkMenuItem that we keep a pointer to
Fixes crash that occurs with Ubuntu libdbusmenu
See #14292
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73277
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 27 Dec 2012 05:28:32 +0000 (05:28 +0000)]
Better fix for avoiding warnings from Ubuntu libdbusmenu
Previous workaround from r71648, modified in r72560, broke MDI child menu handling
See #14292
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73276
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Wed, 26 Dec 2012 17:47:47 +0000 (17:47 +0000)]
remove unused private member m_ordered from wxDataViewVirtualListModel
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73271
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Wed, 26 Dec 2012 17:32:38 +0000 (17:32 +0000)]
fix consruction of string
thanks to clang for finding this one
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73270
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 23 Dec 2012 19:28:03 +0000 (19:28 +0000)]
removing 10.5 version checks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73269
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sun, 23 Dec 2012 19:04:11 +0000 (19:04 +0000)]
Fix webview compilation for the mingw-w64 compiler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73268
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 23 Dec 2012 18:44:31 +0000 (18:44 +0000)]
removing outdated code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73267
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 23 Dec 2012 18:42:34 +0000 (18:42 +0000)]
making sure we are using correct implementation for shades
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73266
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 23 Dec 2012 15:46:39 +0000 (15:46 +0000)]
adding isFlipped to userpane
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73265
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 23 Dec 2012 11:50:33 +0000 (11:50 +0000)]
try support for native isFlipped usage and coalesce update rects into bounding box by default
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73264
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 23 Dec 2012 11:33:50 +0000 (11:33 +0000)]
Fix wrong tab order in wxAuiNotebook after dragging.
Update the tab index correctly to keep tabs list and windows list in sync.
Closes #10848.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73263
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Sat, 22 Dec 2012 21:31:13 +0000 (21:31 +0000)]
Fix for bug #14915 - wxRichTextCtrl: Not able to move up to empty first line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73258
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 12:51:21 +0000 (12:51 +0000)]
Sort wxPAPER_XXX constants alphabetically in the documentation.
This makes it much simpler to find the one you want.
See #14919.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73257
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 22 Dec 2012 08:00:04 +0000 (08:00 +0000)]
Various interface fixes for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73246
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 22 Dec 2012 07:59:58 +0000 (07:59 +0000)]
Interface fixes for wxGrid classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73245
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 02:35:07 +0000 (02:35 +0000)]
Add a temporary workaround to make the tests pass.
Call SetCLocale() on tests startup to avoid problems with wxDateTime parsing
that happen when the user locale is different from "C" one under Windows.
See #14918.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73244
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 02:34:49 +0000 (02:34 +0000)]
Invalidate wxGrid best size when its associated table changes.
The number of grid cells changes too, so the old best size can't be used any
more.
Closes #14761.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73243
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 02:34:26 +0000 (02:34 +0000)]
Fix libtiff compilation with VC6 after upgrade to 4.0.3.
VC6 headers don't define INVALID_SET_FILE_POINTER constant so do it ourselves
if necessary.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73242
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 02:34:07 +0000 (02:34 +0000)]
No changes, just improve wxScrolled::EnableScrolling() documentation.
Explain that, in spite of its name, this function doesn't disable scrolling
when called with false argument but just changes the mechanism used to
implement it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73241
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 02:33:44 +0000 (02:33 +0000)]
Remove unnecessary variable assignment from wxBoxSizer::RecalcSizes().
The "delta" variable was assigned a value that was never used afterwards.
Closes #14908.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73240
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 02:33:23 +0000 (02:33 +0000)]
Add wxListCtrl::EnableAlternateRowColours() and SetAlternateRowColour().
Add methods to simply enable alternative row background colours in wxListCtrl.
Closes #14618.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73239
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 22 Dec 2012 02:33:04 +0000 (02:33 +0000)]
Don't use "Cancel" button in the about dialog of the listctrl sample.
No real changes, just remove the unnecessary button.
See #14618.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73238
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 21 Dec 2012 05:45:02 +0000 (05:45 +0000)]
revert r73185, it should no longer be needed after r73231
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73232
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 20 Dec 2012 18:46:58 +0000 (18:46 +0000)]
Use client size determined by size-allocate when possible
Our client size calculation can be wrong for reasons beyond our control,
notably on Ubuntu 12.04 with overlay scrollbars where the GtkScrolledWindow
"scrollbar-spacing" is wrong. By using the true size from size-allocate
when it becomes available, we can recover from an earlier incorrect client
size calculation. See #14871
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73231
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 20 Dec 2012 13:00:42 +0000 (13:00 +0000)]
benefit from 10.5+ call HIShapeUnionWithRect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73230
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 19 Dec 2012 19:27:29 +0000 (19:27 +0000)]
Add accessors for some of the data members in wxXmlResourceHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73217
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 19 Dec 2012 15:41:44 +0000 (15:41 +0000)]
activating DrawRectangle optimization
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73210
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 19 Dec 2012 15:31:57 +0000 (15:31 +0000)]
fixing typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73209
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 19 Dec 2012 15:30:40 +0000 (15:30 +0000)]
HIThemeBrushCreateCGColor seems to have become very CPU-expensive, cache the results for better performance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73208
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 19 Dec 2012 09:58:33 +0000 (09:58 +0000)]
making Xcode builds work against against libtiff, copied over from a console build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73207
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 18 Dec 2012 17:59:22 +0000 (17:59 +0000)]
setting offsets for window and client dcs when not in a paint event, see #14904
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73199
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sun, 16 Dec 2012 07:14:40 +0000 (07:14 +0000)]
Fix for toolbars and menus not being disabled on Ubuntu
Ubuntu overlay scrollbar changes the GtkWindowGroup for its toplevel, which is
disastrous for modal windows. Put in a hack to detect and undo this.
Fixes #14855
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73196
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 14 Dec 2012 20:04:57 +0000 (20:04 +0000)]
support SDK < 10.6, fixes #14902
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73192
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 14 Dec 2012 16:21:17 +0000 (16:21 +0000)]
supporting private types in DnD on osx_cocoa, fixes #14884
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73191
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 14 Dec 2012 12:29:07 +0000 (12:29 +0000)]
Fix libtiff compilation with MinGW.
At least some versions of MinGW don't define 64 bit integer types resulting in
errors when they're used in libtiff code, so explicitly include basetyps.h to
make sure these types are defined.
Closes #14897.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73190
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 14 Dec 2012 10:42:06 +0000 (10:42 +0000)]
avoid double up events for static text, fixes #14902
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73189
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 14 Dec 2012 06:29:54 +0000 (06:29 +0000)]
compute scrollbar spacing the same way GtkScrolledWindow does it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73186
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 14 Dec 2012 06:25:00 +0000 (06:25 +0000)]
Get DC size from GDK window if possible, client size can unfortunately be wrong
This should fix wxDC::Clear() not clearing the whole window on Ubuntu 12.04 with overlay scrollbars
see #14871
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73185
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 14 Dec 2012 02:10:15 +0000 (02:10 +0000)]
Patch from niki@vintech.bg allowing builds for Python 2.5 (using MSVC 7.1) to work again.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73184
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 13 Dec 2012 04:41:52 +0000 (04:41 +0000)]
decrease number of skipped frames in assert dialog backtrace, 7 is not the minimum, closes #14690
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73178
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 12 Dec 2012 13:52:36 +0000 (13:52 +0000)]
Brazilian Portuguese translations update from Felipe.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73167
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 11 Dec 2012 06:43:19 +0000 (06:43 +0000)]
use correct signature for callback
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73165
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 11 Dec 2012 06:37:14 +0000 (06:37 +0000)]
make local functions static
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73164
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 11 Dec 2012 06:31:23 +0000 (06:31 +0000)]
add wrappers to avoid compiling code which will never be used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73163
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 11 Dec 2012 01:32:42 +0000 (01:32 +0000)]
Handle IN_MOVE inotify events better.
Set the new path correctly for moved or renamed files.
Closes #14889.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73162
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 11 Dec 2012 01:32:38 +0000 (01:32 +0000)]
Initialize wxRibbonBar::m_help_button_hovered.
This variable was never initialized, do it now.
See #14868.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73161
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 10 Dec 2012 14:41:31 +0000 (14:41 +0000)]
Use wxSetWorkingDirectory() instead of chdir().
This fixes compilation of wxGTK under Windows after the changes of r72779 and
r72780, where _wchdir() would need to be used but we don't currently have a
wxChdir() CRT function wrapper so use wxSetWorkingDirectory() instead.
Closes #14886.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73160
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 10 Dec 2012 14:30:37 +0000 (14:30 +0000)]
Readded tiffconf.h removed by libtiff 4.0.3 merge.
This file is needed by Windows builds.
Should have been part of r73157, see #12301.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73159
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 10 Dec 2012 14:27:44 +0000 (14:27 +0000)]
Bakefile updates for libtiff 4.0.3 merge.
This should have been part of r73157,
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73158
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 10 Dec 2012 14:01:44 +0000 (14:01 +0000)]
Merged libtiff 4.0.3 changes into the trunk.
This should help with making libtiff work better in 64 bit builds as libtiff 4
is supposed to support them much better.
Closes #12301.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73157
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 8 Dec 2012 21:04:50 +0000 (21:04 +0000)]
typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73155
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 13:47:45 +0000 (13:47 +0000)]
Document wxXmlResourceHandler::GetFloat().
Closes #14879.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73151
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 13:27:55 +0000 (13:27 +0000)]
Also account for EOL chars correctly in wxStyledTextCtrl::GetLineLength().
Make GetLineLength() consistent with GetLineText() after the changes of
r73140.
Closes #13646.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73150
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 13:22:28 +0000 (13:22 +0000)]
Document wxWindow::Get{Min,Max}{Width,Height}().
These methods were not documented and somehow inherited the description of the
first method of the group they were in, which didn't make any sense for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73149
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:38 +0000 (00:37 +0000)]
Don't test for key code being valid unnecessarily.
The key code was already found to be valid just above, so suppress Coverity
warning about an always true test by not checking it again. This also makes
the code more clear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73148
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:36 +0000 (00:37 +0000)]
Remove unnecessary default from a switch statement.
Don't check for impossible enum element value, it's better to not have the
default clause at all to get a warning from g++ if this enum ever changes
later. And for now the presence of default results in a warning from Coverity
about unreachable code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73147
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:33 +0000 (00:37 +0000)]
Fix copy/paste error in UnsetConstraints().
"top" was mistakenly used in the code dealing with "left" constraint.
Thanks to Coverity for finding this one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73146
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:31 +0000 (00:37 +0000)]
Check gtk_tree_model_iter_nth_child() return value in wxChoice code.
This is probably harmless but check the return value just to suppress Coverity
warning about not doing it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73145
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:28 +0000 (00:37 +0000)]
Don't use values returned by lstat() if it failed in wxFileCtrl code.
The buffer may be uninitialized or at least not contain the correct data if
lstat() failed, don't use it in this case.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73144
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:25 +0000 (00:37 +0000)]
Check wxDir::GetNext() return value in wxFindNextFile().
This doesn't really change anything as the returned value would be empty
anyhow in case of an error, but suppresses Coverity warning about not checking
the return value of a function whose return value is checked in other places.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73143
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:21 +0000 (00:37 +0000)]
Add a wxHtmlTag helper parsing both absolute values and percents.
This allows to avoid some code duplication in different handlers.
Closes #14868.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73142
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:17 +0000 (00:37 +0000)]
Don't unnecessarily NUL-terminate wxCharBuffer contents.
wxCharBuffer already initializes the last byte of the buffer it allocates to 0
so there is no need to do it explicitly.
Also don't allocate an extra byte, wxCharBuffer already adds one to the length
passed to it for the trailing NUL.
See #13885.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73141
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 8 Dec 2012 00:37:13 +0000 (00:37 +0000)]
Strip EOL characters from wxStyledTextCtrl::GetLineText() return value.
For consistency with all the other wxTextCtrl-like classes, the value returned
by this method must not include line terminator characters (like '\n'). Notice
that Scintilla-specific GetLine() does still include them, for consistency
with the Scintilla API itself.
Closes #13646.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73140
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775