Commit Graph

99 Commits

Author SHA1 Message Date
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
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
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
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
6cf1cf9e6d don't use use UTF-8 to PUA mapping hack, it's not necessary any more now that wxConvAuto can read non-UTF-8 files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-30 20:21:16 +00:00
Paul Cornett
dcd9ce72d5 warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-28 17:08:07 +00:00
Václav Slavík
8650108199 don't use implicit wxString->char*/wchar_t* conversion, it will not be available in wxUSE_STL build in the future
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:42:41 +00:00
Vadim Zeitlin
b4a980f4f5 don't use obsolete functions (mostly copystring() and Count()), remove their documentation (patch 1697956)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 00:23:19 +00:00
Vadim Zeitlin
dda522bf4f fix memory leak in wxFileTypeImpl::SetCommand() if creating the association fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:13:12 +00:00
Vadim Zeitlin
2f769cb93b fix memory leak in wxFileTypeImpl::SetDefaultIcon() if creating the association fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-30 16:10:30 +00:00
Vadim Zeitlin
e216f7c8cf don't Printf() the string into itself (replaces patch 1655318)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 02:55:21 +00:00
Jouk Jansen
7538fdc9a6 avoid reading KDE-tables on OpenVMS. They will never be installed since KDE
is not available on OpenVMS.

 Modified Files:
 	wxWidgets/src/unix/mimetype.cpp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-02 09:55:34 +00:00
Vadim Zeitlin
04680d2c7e use MAP_INVALID_UTF8_TO_PUA instead of MAP_INVALID_UTF8_TO_OCTAL in wxMimeTextFile to avoid quoting backslashes (which occur naturally in MIME files) in Unicode builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-08 00:01:52 +00:00
Vadim Zeitlin
7ea70037e0 unused parameter warning fix after last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 17:41:40 +00:00
Vadim Zeitlin
d9bbb2d877 use wxMBConvUTF8(MAP_INVALID_UTF8_TO_OCTAL) for all access to MIME data files (extends fix of rev 1.77; replaces the change of rev 1.81); fixes spurious errors when reading KDE MIME files in Unicode builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 16:53:02 +00:00
Julian Smart
1dfeae4c13 An attempt at fixing the Unicode conversion errors when loading
configuration files - try ISO-8859-1 if Unicode fails.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 10:07:53 +00:00
Robert Roebling
31383ebcc3 [ 1604925 ] Fix loading MIME types for KDE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-30 13:24:32 +00:00
Robert Roebling
88bbc3329b Test for KDE and GNOME using session manager vendor.
Use it in mime types initialization.
   Add wxUSE_DETECT_SM


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-18 21:55:54 +00:00
Robert Roebling
15d4b8cdb5 [ 1579280 ] small src/unix/mimetype.cpp optimizations
I'm not sure if this actually changes the assembly in
a smart compiler, but who knows.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-18 17:19:22 +00:00
Michael Wetherell
8dee721efd Use substitions when converting gnome mime files from UTF-8 (bug 1518012)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-17 09:39:11 +00:00
Vadim Zeitlin
9413e1e34a allow claling Unassociate() on previously not initialized wxMimeTypesManager
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39780 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-18 21:33:38 +00:00
Paul Cornett
4362c7052b wxASSERT(false) --> wxFAIL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 04:12:48 +00:00
Włodzimierz Skiba
de6185e212 Include wx/utils.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-02 10:39:23 +00:00
Włodzimierz Skiba
e4db172a3b Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Włodzimierz Skiba
88a7a4e10e Include wx/intl.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-25 14:38:19 +00:00
Włodzimierz Skiba
ad9835c97c Include wx/dynarray.h according to precompiled headers of wx/wx.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-19 14:18:39 +00:00
Vadim Zeitlin
a24217f050 don't include GNOME FS header if we don't use it (and might not have it at all)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 21:06:25 +00:00
Włodzimierz Skiba
7520f3da33 wx/wxprec.h already includes wx/defs.h (with other minor cleaning).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 09:56:17 +00:00
Jouk Jansen
aa3310b88d Committing in .
Removing obsolete compiler directives for OpenVMS

 Modified Files:
 	wxWidgets/src/generic/notebook.cpp
 	wxWidgets/src/univ/notebook.cpp
 	wxWidgets/src/unix/mimetype.cpp
 ----------------------------------------------------------------------


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-27 09:35:41 +00:00
Robert Roebling
2b850ae1a5 Rearrange code to make adding wxMimeTypesManagerFactory
at runtim possible.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-17 14:13:02 +00:00
Vadim Zeitlin
985f824c2b fixed printf format warnings for all platforms (previous fix for Darwin broke it for Linux)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 16:51:43 +00:00
Vadim Zeitlin
5d0d3e6d72 use %lu and not %d print format for size_t arguments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-12 15:14:00 +00:00
Vadim Zeitlin
8a7fc9b5a7 always return something in GetCommandForVerb() second argument, even if verb not found
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-09 19:09:22 +00:00
Vadim Zeitlin
d6a7ca317f don't crash if one of GetAllCommands() parameters is NULL (coverity checker CID 11)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 23:47:15 +00:00
Vadim Zeitlin
32592f4a80 fixed yet another memory leak in LoadGnomeDataFromKeyFile() (coverity checker CID 51)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 23:32:09 +00:00
Vadim Zeitlin
926ce9e3ac fix another memory leak in SetCommand() (coverity checker CID 52)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 23:30:43 +00:00
Vadim Zeitlin
cb0b7b7d81 fix memory leak (coverity checker CID 53)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-07 23:27:51 +00:00
David Surovell
7c2e5dec5a cleanup - more reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-23 04:11:46 +00:00
David Surovell
dfea7acc19 cleanup - heavy reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 21:26:28 +00:00
Robert Roebling
7bc5ddc6e4 Applied MIME-types patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-22 13:22:56 +00:00
David Surovell
1c4cd9e047 minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-07 06:09:50 +00:00
Vadim Zeitlin
17a1ebd101 first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Włodzimierz Skiba
d0ee33f5c6 '[1219035] cleanup: miscellaneous' and minor source cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-13 12:19:33 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Václav Slavík
320c341a10 don't use wxFileConfig to parse kdeglobals, it's not meant for such use. Fixes bug 939195
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-21 13:33:31 +00:00