Vadim Zeitlin
1d043598b7
replace wxAddProcessCallback() with wxAppTraits::AddProcessCallback() to fix linking problems in Unix ports; also reduce code duplication between GUI and base versions making src/unix/baseunix.cpp unnecessary any longer
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52667 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 00:07:13 +00:00
Vadim Zeitlin
9243700fb2
add support for asynchronous execution in wxBase (patch 1906889)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 16:46:38 +00:00
David Elliott
96b35b2505
Rework the dl* Darwin compatibility code so it uses the real functions when
...
available. If compiled to allow for pre-10.3 systems it will do the check
at runtime and the compatibility functions will be compiled but likely
not used. If compiled with 10.3 or higher as the minimum version, the
compatibility functions will not be compiled and the library will work
identically as it does on all other UNIX.
Even if the compatibility code is compiled in, the function names are now
prefixed with wx_darwin_ and are marked static so they don't make it into
the exported symbols, even in their C++-mangled form.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-18 23:44:46 +00:00
Vadim Zeitlin
ea88b5fa33
more unused parameter warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-14 15:57:11 +00:00
Vadim Zeitlin
01c0355483
don't close UDP socket if it receives an empty datagram (patch 1885472)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 23:51:38 +00:00
Vadim Zeitlin
cf86dc50e0
undid change to GSocket::Select() done in r50831, do call select() here (part of patch 1833150)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 23:59:09 +00:00
Vadim Zeitlin
3f20f7d8a3
added wxGLCanvas::IsDisplaySupported() (patch 1879906)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:55:05 +00:00
Paul Cornett
e8769ed11c
avoid GCC warnings about breaking strict aliasing rules
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-02 21:52:26 +00:00
Vadim Zeitlin
5ec69e9666
made SetCurrent() and SwapBuffers() return boolean status indicator instead of void (slightly modified patch 1844090)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50900 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-22 15:48:03 +00:00
Václav Slavík
2ada746fb4
compilation fix for !wxUSE_THREADS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-20 19:42:04 +00:00
Václav Slavík
df405da528
fixed wxHAS_GENERIC_PROCESS_CALLBACK check to use #ifdef, not #if
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-20 19:34:58 +00:00
Václav Slavík
46c7e1a120
implemented wxExecute() for wxDFB; share the implementation with wxX11
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-19 18:52:55 +00:00
Vadim Zeitlin
2804f77d88
more socket cleanup to allow using wxSocket from both wxBase and wxCore (replaces patch 1756260)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50831 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-19 16:45:08 +00:00
Václav Slavík
f8eb27bfc5
corrected WaitForChild comment about who sets endProcData->pid to 0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-18 12:19:22 +00:00
Paul Cornett
d254213eb2
add MutexGuiEnter/Leave to wxAppTraits, integrate native GTK+ GUI locking
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-17 05:37:00 +00:00
Julian Smart
6fc93e9bdd
Don't show messages for directories that can't be read
...
since some users will think it's scanning their system
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-07 08:58:49 +00:00
Paul Cornett
204abcd474
remove unneccessary header dependencies on wx/thread.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-03 02:55:14 +00:00
Václav Slavík
79b7b95aed
catch unhandled exceptions in POSIX threads implementation the same way wxMSW does
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-26 19:41:34 +00:00
Paul Cornett
562e60a0f2
non-pch build fix for wxUSE_DISPLAY==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-22 02:52:10 +00:00
Stefan Neis
37ab9399a8
Moved wxConsoleAppTraits::CreateEventLoop from baseunix.cpp to evtloopunix.cpp,
...
so Unix' wxConsoleEventLoop can also be shared by platforms not having
the complete ConsoleAppTraits of Unix (e.g. OS/2).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-21 14:12:16 +00:00
Vadim Zeitlin
8575ff507f
experimental IPv6 implementation (patch 1771429)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-18 20:53:33 +00:00
Vadim Zeitlin
8c029a5b02
added SetInitialSocketBuffers() to allow changing the send/receive buffer sizes (patch 1829576)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 15:21:26 +00:00
Vadim Zeitlin
2b147f2e19
allow to optionally use vendor name component in standard paths (slightly modified patch 1831308)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 14:59:13 +00:00
Robert Roebling
0da55f82bb
compile fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 13:07:29 +00:00
Paul Cornett
64bd3204f1
build fix for wxUSE_DISPLAY==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-13 02:21:59 +00:00
Robert Roebling
ce7b001ca6
small fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-12 11:47:44 +00:00
Vadim Zeitlin
8d22935dcb
unused parameter warning fixes for --disable-all-features build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-11 12:55:43 +00:00
Vadim Zeitlin
66d0513058
X11 implementation of wxClientDisplayRect() doesn't work with Hildon, provide a stub for the latter
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-11 12:55:27 +00:00
Vadim Zeitlin
f2633e547c
replaced FIXME comment left in the last commit with an explanation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-07 00:16:40 +00:00
Vadim Zeitlin
676c8c1d39
implement wxGetCientDisplayRect() correctly for X11-based ports
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-06 22:27:15 +00:00
Paul Cornett
08f53168ac
New "pizza" widget implementation. Window border widths now match the GtkStyle they are drawn with.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-06 18:14:15 +00:00
Vadim Zeitlin
ff654490b7
removed all compile- and run-time checks for GTK+ < 2.4; don't include the generic files which are now never used in wxGTK in the build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-05 22:31:24 +00:00
Paul Cornett
66ddd8d2f2
initialize bitmap to avoid assertion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-05 07:11:01 +00:00
Vadim Zeitlin
e0d1fd7f6e
fix more unused parameters warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-29 12:10:48 +00:00
Vadim Zeitlin
820162a63f
don't delete uninitialized m_eventHandler pointer if initialization failed (patch 1819944)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-27 21:16:54 +00:00
David Elliott
dd6c8be6e9
Apply modified patch 1785299 to trunk and 2.8.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 21:52:02 +00:00
Vadim Zeitlin
76c39b5df1
test for __DARWIN__ with ifdef, not if
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-17 18:19:29 +00:00
David Elliott
a3261ffb75
Fix wxExecute process end detect behavior for wxCocoa and wxMac. I have no
...
idea why the current code used for Intel Macs doesn't work but it's not
working for me at all. This should probably be backported to 2.8.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-14 08:51:45 +00:00
David Elliott
1a6d6b1071
Combine the check for wxMac and then the other check for wxMac/wxCocoa into
...
one define called USE_OLD_DARWIN_END_PROCESS_DETECT because it's wrong
to created pipeEndProcDetect on wxCocoa when it's not going to use it!
The next commit will show why it's now "Old".
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-14 08:37:11 +00:00
Vadim Zeitlin
14d6351382
always return wxString from wxGetUserHome() instead of char */wxWCharBuffer depending on the build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-06 12:38:15 +00:00
Jouk Jansen
934960d133
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-25 14:39:47 +00:00
Vadim Zeitlin
489bf4ae93
ifconfig under NetBSD also takes -a
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 23:54:07 +00:00
Vadim Zeitlin
74ab5f5b9d
various warning fixes for icc 9.1 compilation
...
- variable shadowing
- unused code and variables
- extra semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48864 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 12:00:25 +00:00
Vadim Zeitlin
faa80db058
removed an extra semicolon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 10:56:58 +00:00
Vadim Zeitlin
309aefbd9c
don't shadow declaration of nIndex variable
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-21 10:54:21 +00:00
Vadim Zeitlin
985acf8734
reverted wxSocket changes of rev 48723 as they broke linking under non-Unix systems
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-17 00:22:05 +00:00
Vadim Zeitlin
22b6de6a70
more fixes for using wxSocket in console applications (patch 1756260)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-16 14:29:42 +00:00
Paul Cornett
1dd7badd1f
use client size to avoid gdk_window_get_frame_extents, which returns the full width of the screen for wxTaskBarIconArea
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-04 02:29:03 +00:00
Vadim Zeitlin
a07bf2d003
fix translation of wx priority values to the standard Unix ones in SetPriority()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-03 22:52:38 +00:00
Vadim Zeitlin
85866f52b3
fix WX_GL_STEREO attribute handling: value for it was missing in the attribute list
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-03 22:35:43 +00:00