Commit Graph

1188 Commits

Author SHA1 Message Date
Vadim Zeitlin
438febca6e don't sleep too long to avoid missing the timers; added a simple test for timer events processing in console apps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-27 22:04:42 +00:00
Vadim Zeitlin
0bde39ffac Dispatch() must dispatch the real events and not only the pending ones accumulated in wxApp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:32:39 +00:00
Vadim Zeitlin
5a557d1ea0 made Dispatch() return bool indicating whether we processed any events inside it or if the timeout expired
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-16 12:31:30 +00:00
Vadim Zeitlin
d45242a64a base new timer expiration time on current time, not on the previous expiration time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-15 11:39:04 +00:00
Václav Slavík
baa637de7d compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-10-01 11:29:11 +00:00
Václav Slavík
cf78bdcb68 added wxTaskBarIcon::IsAvailable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-30 20:54:02 +00:00
Vadim Zeitlin
d86901f9f4 return false, not true, from wxSingleInstanceChecker::IsAnotherRunning() if an error occurred while opening or reading the lock file (#9986)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-24 13:47:41 +00:00
Jouk Jansen
2cb8531cc2 update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 07:09:05 +00:00
Stefan Csomor
e317bd3f10 solving osx problems (default inlines-hidden) by explicitely exporting the involved methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-11 06:46:23 +00:00
Robert Roebling
375f364ef2 Test for reentrance into non-recursive wxMutex. If it happens, yield dead lock error, don't hang
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-08 08:00:03 +00:00
Robert Roebling
0eb949e11f Compilo for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-05 08:21:08 +00:00
Stefan Csomor
ca9e2173a6 gcc is too aggressively hiding these inlines on wxCriticialSection on osx, expose them for wxPython
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-04 06:26:24 +00:00
Vadim Zeitlin
82db3c3d9d compilation fixes for minimal build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 19:28:26 +00:00
Vadim Zeitlin
c1baf4b58b update for wxSHUTDOWN_LOGOFF/FORCE, should have been part of r54949
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-03 10:59:30 +00:00
Stefan Csomor
052e5ec5f3 osx regrouping
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-29 20:15:25 +00:00
Vadim Zeitlin
4010aae119 don't give error on startup of any application using wxHTML just because /usr/local/share/mime/globs doesn't exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-21 01:33:51 +00:00
Vadim Zeitlin
fae7120624 use wxCmdLineParser::ConverStringToArgs() instead of (incorrectly) duplicating it here (#9743)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-16 00:53:11 +00:00
Vadim Zeitlin
95867b4efc calling Notify() from child thread is ok -- as long as you do it from one and the same thread all the time
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-14 02:03:57 +00:00
Robert Roebling
397e7f9829 Add code for parsing globs file in /usr/local as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-01 10:04:35 +00:00
Robert Roebling
d8a57f5ebf Add code for parsing globs file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-01 09:59:23 +00:00
Robert Roebling
05f616efaa Add stub for parsing globs file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-01 09:28:08 +00:00
Robert Roebling
d39e2bbcf7 Remaining conversion to read-only XDG MIME types code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-01 08:31:50 +00:00
Robert Roebling
29886d1bf8 Removed most of the pre-XDG MIME code from the Unix implementation, many speed-ups by simplification
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-30 11:58:41 +00:00
Vadim Zeitlin
f95abb9d3d blind fix for PCH-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-29 22:11:52 +00:00
Julian Smart
84513dcb32 Fixed mime type recognition under Gnome by reading appropriate
.desktop files and application defaults


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-23 13:42:08 +00:00
Vadim Zeitlin
c39d2e0a38 added multisampling (anti-aliasing) support to wxGLCanvas (#9145)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-08 00:12:12 +00:00
Vadim Zeitlin
b73b211736 fix the confusion in boolean attributes handling in pre-1.3 and 1.3 versions of GLX API (closes 4823)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53694 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-22 00:25:53 +00:00
Paul Cornett
143f80756d fix overload ambiguity when compiler doesn't know NULL is a pointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-13 02:51:17 +00:00
Paul Cornett
b6819de8da disconnect handler in wxTaskBarIcon dtor, should have been part of previous commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-11 23:04:14 +00:00
Paul Cornett
3abc756645 prevent crash if panel/kicker is killed, bug 1872724
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-11 22:45:36 +00:00
Vadim Zeitlin
06e6496e0f use GLX_DOUBLEBUFFER if no attributes were specified with GLX >= 1.3 too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-27 13:01:14 +00:00
Vadim Zeitlin
106dcc2cea make wxDir::Has{Files,SubDirs}() const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-22 16:29:43 +00:00
Vadim Zeitlin
8cd8a7feb7 wxThread::Sleep() is the same as wxMilliSleep() on all platforms but Mac (and maybe it should be the same thing there as well)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-12 02:28:46 +00:00
Jouk Jansen
9b4fd94a4a Updates for VMS : new Makefiles, proper type casts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-11 08:35:14 +00:00
Julian Smart
0ce52f3d4e Try standard XDG location for documents directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-08 13:52:39 +00:00
Robert Roebling
69fb24ce03 Fix compilo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-06 20:31:25 +00:00
Vadim Zeitlin
1a781247d4 call OnReadWaiting(), not OnExceptionWaiting(), when we receive EPOLLHUP
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52812 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-25 14:51:11 +00:00
Vadim Zeitlin
d7ef641d4e fix wxExecute() compilation in ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-24 23:13:12 +00:00
Paul Cornett
bddd07670f non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52742 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-23 18:24:27 +00:00
Vadim Zeitlin
05718a98f9 avoid needless Unicode<->MB conversions in Unix wxExecute(); simplify the code; provide both versions taking char** and wchar_t** for compatibility; also use wxMacExecute() (renamed to wxMacLaunch() to avoid confusion) from all wxExecute() overloads but don't use it if wxEXEC_SYNC was requested as it doesn't support it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-23 02:27:23 +00:00
Vadim Zeitlin
e528a71bf1 don't use negative PID hack in GUI neither, add a separate flag to wxEndProcessData for this
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 15:37:16 +00:00
Vadim Zeitlin
dbd1c638fe no real changes, just small cleanup after last few revisions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:55:46 +00:00
Vadim Zeitlin
b827d64707 refactored common code from XXX_EndProcessDetect in wxGTK[12] and wxMac/wxCocoa into wxHandleProcessTermination itself; also removed code dealing with negative pids as we don't use them any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:50:44 +00:00
Vadim Zeitlin
3bbd09c34c get rid of traits functions unnecessary now that wxExecute() works in both base and GUI ports
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:15:28 +00:00
Vadim Zeitlin
33343395da fixed IO redirection to work in wxExecute() in console applications (including the case when the child process outputs more than pipe buffer size) by using wxSelectDispatcher for multiplexing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 14:10:54 +00:00
Vadim Zeitlin
4d425deeb2 return bool from wxStreamTempInputBuffer::Update() indicating if anything was done; don't sleep in wxExecute() if IO is coming
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:50:35 +00:00
Vadim Zeitlin
eacb6b56a6 extracted GUI-specific part of utilsunx.cpp to a new unix/apptraits.cpp file and don't include utilsunx.cpp in both base and GUI libraries now so that we can get rid of BASE_AND_GUI_UNIX_SRC in files.bkl entirely
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:48:11 +00:00
Vadim Zeitlin
9d3845e884 extracted GUI-specific part of utilsunx.cpp to a new unix/apptraits.cpp file and don't include utilsunx.cpp in both base and GUI libraries now so that we can get rid of BASE_AND_GUI_UNIX_SRC in files.bkl entirely
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:46:04 +00:00
Vadim Zeitlin
3c80703554 unused any more (should have been part of r52667)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52674 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:25:48 +00:00
Vadim Zeitlin
2ecd1756e4 added wxWindowDisabler ctor for conditionally disabling all windows and use it in WaitForChild()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-22 03:06:57 +00:00