Vadim Zeitlin
f28f0531b9
don't use wxLocale if wxUSE_INTL==0 (fixes 2nd part of bug 1692898)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 00:45:38 +00:00
Vadim Zeitlin
d75c9b05c8
define wxGetTranslation() as (trivial) inline function, not macro, in wxUSE_INTL==0 case to allow compilation of the code using its second domain argument (fixes bug 1692898)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-23 00:43:19 +00:00
Vadim Zeitlin
b46506f365
really ensure that the window being centered is fully visible (fixes bug reported in patch 1683239); also place it on the same display as its parent, if any [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 23:14:30 +00:00
Vadim Zeitlin
c3a30557ce
update wxApp::argc/argv to remove the options parsed by GTK+ itself from them [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 21:18:44 +00:00
Vadim Zeitlin
139779bc3f
don't let def window proc start another drag operation if we just started one ourselves for a multiselection tree (replaces patch 1702133) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 17:49:00 +00:00
Vadim Zeitlin
339a867854
don't leave gaps around hidden columns/rows in wxFlexGridSizer (closes bug 1659872; part of patch 1667343) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 15:17:01 +00:00
Kevin Ollivier
b293119a93
Backport of key handling and selection fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 00:18:10 +00:00
Vadim Zeitlin
d2adcde938
don't pass 0 time_t to Borland localtime(), it crashes (bug 1704438); also check for error return from both localtime() and gmtime() [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-22 00:04:39 +00:00
Vadim Zeitlin
e9ef27252d
allow having children of status bar in XRC (patch 1704125) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 23:24:42 +00:00
Kevin Ollivier
d0c0cecb3d
Backporting support for adding wx Window menu items into the system Window menu.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 23:17:27 +00:00
Vadim Zeitlin
c458cf7a2c
add missing dynarray.h includes (patch 1702312) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 18:17:50 +00:00
Vadim Zeitlin
8e295ee217
fix bug with not updating the last line correctly when a group was deleted and recreated (bug 1685312) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-21 15:10:56 +00:00
Benjamin Williams
a633c45776
fixed bug when a fixed pane is resized inside a fixed dock
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 08:54:25 +00:00
Vadim Zeitlin
0af3e42a1f
create the spin control with the correct range instead of setting it later which results in unwanted events and a crash (patch 1702847) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-20 01:18:13 +00:00
Paul Cornett
71dc04a664
backport rev 1.60: don't clamp scroll position before updating GtkRange
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-18 17:24:52 +00:00
Robin Dunn
ce7feab06b
wx.lib.flatnotebook: Patch from Andrea that implements the following:
...
* A new style FNB_FF2: my intentions were to make it like Firefox 2,
however it turned out to be an hybrid between wxAUI notebook glose
style & FF2 ...I still think it looks OK. The main purpose for
making it more like wxAUI is to allow applications that uses both
to have same look and feel (or as close as it can get...);
* Changed the behavior of the left/right rotation arrows to rotate
single tab at a time and not bulk of tabs;
* Updated the demo module.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 16:40:05 +00:00
Robin Dunn
bf2481b9cf
Patch from Andrea that fixes the following problems/issues:
...
a) ZeroDivisionError when using the Vista selection style and calling
SelectItem; for some strange reason, sometimes the item rect is not
initialized and that generates the ZeroDivisionError when painting the
selection rectangle;
b) Added a DeleteWindow method to GenericTreeItem class, for items
that hold a widget next to them;
c) Renamed CustomTreeCtrl method IsEnabled to IsItemEnabled, otherwise
it conflicts with wx.Window.IsEnabled;
d) Now CustomTreeCtrl behaves correctly when the widget attached to an
item is narrower (in height) than the item text;
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-17 16:26:28 +00:00
Vadim Zeitlin
f962edd617
reverted last change as using pango_version_check() (unavailable in the old Pango versions) makes wx applications impossible to run on older systems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 21:46:59 +00:00
Robin Dunn
275ca791f6
Don't use m_popupInterface pointer if it is still NULL (backport from HEAD)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 20:51:27 +00:00
Vadim Zeitlin
3e07effcf7
call gtk_file_chooser_set_current_folder even if the default file name is empty (but default directory isn't) (bug 1701682) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 18:24:04 +00:00
Vadim Zeitlin
6dced616e6
removed extra semicolons to fix compilation with gcc -Wpedantic (patch 1701236)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 13:03:05 +00:00
Václav Slavík
6a0da7e4b9
added wxMBConv argument to char_str()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-16 11:04:35 +00:00
Vadim Zeitlin
55efbeb23c
adjust the window coordinates for parent client area origin when in Create() too and not only in DoSetSize() [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-15 00:32:27 +00:00
Stefan Csomor
af08919ae0
fixing assert
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 11:41:16 +00:00
Vadim Zeitlin
0a3c4e03f4
even controls with transparent background should draw it if they have an explicitly set background colour, so handle this at wxWindowUniv level instead of adding hacks to individual controls, such as wxStaticText, to deal with this (replaces patch 1700004) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 01:17:28 +00:00
Vadim Zeitlin
127e4f1caf
fix wxTextCtrl::SetSelection(-1, -1) to behave as documented (patch 1700000) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-13 23:41:59 +00:00
Vadim Zeitlin
c8c1e854b1
implement support for right-aligned/centered items owner-drawn items (patch 1699415) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-13 23:38:28 +00:00
Vadim Zeitlin
c477ac5630
include memory.h to help Borland compilation in Unicode mode
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-13 14:13:47 +00:00
Robin Dunn
fa4ae2ba92
Don't use hidden items for size calc (patch 1698314) (backport from HEAD)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 21:54:15 +00:00
Vadim Zeitlin
492d813979
remove documentation of (protected) AutoSizeColumnOrRow()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 19:53:45 +00:00
Vadim Zeitlin
62ea29db7d
removing the files recently added to HEAD from 2.8 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 15:43:11 +00:00
Stefan Csomor
a96745c934
removing duplicated error message
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 11:25:14 +00:00
Stefan Csomor
39183827a1
fixing refcounting for embedded native controls, backporting code for Realize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-10 09:59:44 +00:00
Vadim Zeitlin
fa3eb1ed3c
truncate the static box label to fit the control size (patch 1695228) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 21:41:54 +00:00
Vadim Zeitlin
03f100f508
don't use Pango hack for drawing underlined text when using new enough version of Pango (patch 1697040) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 21:24:16 +00:00
Vadim Zeitlin
d5d363321c
don't return the next line text from GetLineText() for empty lines (patch 1697208) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-09 21:19:59 +00:00
Vadim Zeitlin
a46324a7fb
don't access the window after it had been deleted by the focus event handler (patch 1693063) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-07 11:41:15 +00:00
Stefan Neis
32e3e93e6e
Backported bugfix (comparision vs. assignment).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-06 22:19:21 +00:00
Benjamin Williams
208bec08eb
avoid assert in window list drop down
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-05 16:31:23 +00:00
Vadim Zeitlin
95be621f72
call SetEventObject() for wxHtmlLinkEvents we generate [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-04 02:04:23 +00:00
Robin Dunn
a1732cbc15
Use our own getters and properties for wxVisualAttributes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-03 18:42:01 +00:00
Vadim Zeitlin
e70fb09f3e
replaced more occurrences of 2.8.3 with 2.8.4
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-03 14:06:04 +00:00
Vadim Zeitlin
62274eb11e
updated version to 2.8.4 after addition of wxString::[w]char_str()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-03 13:58:31 +00:00
Paul Cornett
3a570c4285
build fixes for wxUSE_VALIDATORS==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-03 02:44:32 +00:00
Václav Slavík
89b6915f14
added wxString::[w]char_str() to 2.8 for forward compatibility with wx3
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-02 12:25:40 +00:00
Vadim Zeitlin
3646999e0c
fix PangoFontMetrics leak in GetCharHeight() (bug 1691180) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-31 13:05:02 +00:00
Vadim Zeitlin
e224e2ccc8
clear m_oldStatusText after restoring it, otherwise we could restore it again the next time instead of restoring the up-to-date status bar text [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 20:07:29 +00:00
Vadim Zeitlin
5f814f27d9
don't handle orderly socket shutdown by the peer as an error (patch 1688222) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 19:04:25 +00:00
Vadim Zeitlin
beb4cfa4c8
don't crash when attempting to select hidden tree root (bug 1681118)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 12:57:15 +00:00
Vadim Zeitlin
993ad8f9b4
don't call gtk_label_set_line_wrap() from DoGetBestSize() as this results in an infinite resizing loop when the control is inside a GTK+ widget doing its own layout (such as wxToolBar) [backport from HEAD]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 12:16:10 +00:00