Commit graph

242 commits

Author SHA1 Message Date
Damjan Jovanovic
6b39897765 winemenubuilder: Parse ICO headers in a separate function. 2010-08-25 12:35:54 +02:00
Damjan Jovanovic
85d8c1da1e winemenubuilder: Write all frames, in the given format, to the native icon. 2010-08-25 12:35:51 +02:00
Damjan Jovanovic
5f87fa5370 winemenubuilder: Move utility functions to the top of the file. 2010-08-25 12:35:47 +02:00
Damjan Jovanovic
d58f2680d1 winemenubuilder: Defer best icon selection to when we generate the native icons. 2010-08-23 12:03:18 +02:00
Damjan Jovanovic
bc5a205097 winemenubuilder: Decouple opening a Windows icon from generating the native icon. 2010-08-23 12:02:41 +02:00
Alexandre Julliard
e446a7c7bf winemenubuilder: Rename some variables to reflect the fact that we no longer use XPM format. 2010-08-02 20:28:58 +02:00
Damjan Jovanovic
dcb2ebee78 winemenubuilder: Add an option for thumbnailing .lnk files. 2010-07-26 18:38:30 +02:00
Damjan Jovanovic
1a1ef6e091 winemenubuilder: Remove legacy PNG and XPM conversion code. 2010-07-23 13:05:32 +02:00
Damjan Jovanovic
74a2d8e351 winemenubuilder: Use windowscodecs for all ICO to PNG conversion. 2010-07-23 13:05:32 +02:00
Damjan Jovanovic
8404a3d64a winemenubuilder: Use windowscodecs for some ICO to PNG conversion. 2010-07-23 13:05:32 +02:00
Alexandre Julliard
6fb39dfe4a programs: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:37 +02:00
Damjan Jovanovic
187dec992f winemenubuilder: Always initialize COM. 2010-07-21 09:33:31 +02:00
Alexandre Julliard
db68b1e602 winemenubuilder: Use the new wine glass icon from user32 as default icon. 2010-06-28 16:58:40 +02:00
Alexandre Julliard
67bdd633b2 winemenubuilder: Load only low bit count icons if we are going to save to XPM format. 2010-06-28 16:58:40 +02:00
Francois Gouget
4a9b52549e winemenubuilder: Add a trailing '\n' to a FIXME() call. 2010-06-22 20:04:24 +02:00
Damjan Jovanovic
9954735e43 winemenubuilder: Also extract .lnk icons from file types's open handler. 2010-06-09 10:57:33 +02:00
Damjan Jovanovic
f26b663172 winemenubuilder: Also extract .lnk icons from file types. 2010-06-08 16:35:22 +02:00
André Hentschel
d6001be348 winemenubuilder: Simplify switch cases. 2010-06-01 11:03:44 +02:00
Damjan Jovanovic
dfdb349cdc winemenubuilder: Use the full path to start.exe. 2010-05-25 12:54:38 +02:00
Damjan Jovanovic
a83a9c1da1 winemenubuilder: Generate .png even for paletted icons. 2010-05-21 18:58:04 +02:00
Damjan Jovanovic
0666c0da00 winemenubuilder: associate .lnk files with wine. 2010-05-19 13:16:34 +02:00
Hans Leidekker
3c31a373d3 winemenubuilder: Expand environment strings in the shortcut path. 2010-05-14 18:03:02 +02:00
Hans Leidekker
df260d14a6 winemenubuilder: Lower case the content type. 2010-05-14 18:03:02 +02:00
Damjan Jovanovic
a432a7fbdb winemenubuilder: Fix a char/widechar typo in association .desktop paths. 2010-05-12 13:45:26 +02:00
Damjan Jovanovic
745747688d winemenubuilder: Escape freedesktop exec keys properly. 2010-05-11 11:40:07 +02:00
Damjan Jovanovic
55e4eba2ec winemenubuilder: Launch .lnk files directly from menus.
The arguments of a .lnk file are complex, with quoting and escaping
rules and %windir%-style variable expansion, so winemenubuilder cannot
always convert them accurately to a .desktop file. But start.exe and
shell32 on the other hand can parse the .lnk file and run it
themselves, so use them instead.
2010-05-07 12:48:12 +02:00
Damjan Jovanovic
ac7a24ba35 winemenubuilder: Make desktop files executable. 2010-05-06 14:20:58 +02:00
Damjan Jovanovic
e04422a2b3 winemenubuilder: Use only widechar functions when dealing with registered associations. 2010-05-05 10:41:17 +02:00
Damjan Jovanovic
bc526034e0 winemenubuilder: Use a unicode WinMain. 2010-05-05 10:41:05 +02:00
Damjan Jovanovic
228e5f1ac3 winemenubuilder: Read the registry in the unix codepage when cleaning up menus. 2010-05-04 13:14:58 +02:00
Damjan Jovanovic
21f75386ec winemenubuilder: Store menu paths in Unicode. 2010-05-03 13:56:27 +02:00
Mikhail Maroukhine
93d9d8a3af programs: Fix compiler warnings with flag -Wcast-qual. 2010-03-29 12:18:48 +02:00
Alexandre Julliard
bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Vincent Povirk
7f8279e127 winemenubuilder: Use a custom error function. 2010-02-08 17:14:43 +01:00
Damjan Jovanovic
03e9fbb515 winemenubuilder: Escape XML special characters in menus. 2009-11-16 11:35:38 +01:00
Damjan Jovanovic
e1e07b40ba winemenubuilder: Escape XML special characters in MIME types. 2009-11-13 12:19:23 +01:00
Damjan Jovanovic
df4b68b772 winemenubuilder: Ignore Windows MIME types without a slash. 2009-10-23 11:59:41 +02:00
Marcus Meissner
b123102ae5 winemenubuilder: Check for NULL allocation (Coverity). 2009-08-11 12:37:05 +02:00
Alexandre Julliard
f428813ce2 winemenubuilder: Reduce memory usage for string copies. 2009-07-24 10:41:25 +02:00
Peter Oberndorfer
08a8f935c4 winemenubuilder: Use heap_printf to allocate the right amount of memory and not cause heap corruption. 2009-07-08 20:13:09 +02:00
Damjan Jovanovic
fe8d913358 winemenubuilder: Distinguish menu icons from association icons. 2009-07-01 14:42:44 +02:00
Alexandre Julliard
afe626fb99 winemenubuilder: Use spawnvp() instead of system() to launch the xdg update scripts. 2009-06-30 14:27:35 +02:00
Damjan Jovanovic
b3f967a022 winemenubuilder: Only generate associations for the "open" verb. 2009-06-29 12:27:04 +02:00
Damjan Jovanovic
420d642918 winemenubuilder: Allow multiple options. 2009-06-26 12:00:07 +02:00
Damjan Jovanovic
d3bf447f1b winemenubuilder: Generate new menus in the right directory. 2009-06-25 11:46:07 +02:00
Damjan Jovanovic
267858b4c2 winemenubuilder: Log where freedesktop menu files are created, and provide an option to clean them up. 2009-06-18 15:17:28 +02:00
Damjan Jovanovic
4540d74f49 winemenubuilder: Generate icons for Wine's MIME types. 2009-06-08 15:27:20 +02:00
Joris Huizer
12c237056e winemenubuilder: reg_get_val[AW]: Fix memory leak. 2009-06-08 12:42:06 +02:00
Damjan Jovanovic
4af750a578 winemenubuilder: Track, update and clean up file open associations. 2009-06-05 15:19:56 +02:00
Damjan Jovanovic
7287023647 winemenubuilder: Associate file open applications with freedesktop. 2009-06-04 12:42:54 +02:00
Damjan Jovanovic
77e0ee9013 winemenubuilder: Ignore wine.desktop managed file types. 2009-06-03 11:25:52 +02:00
Alexandre Julliard
7d5e565b5a configure: Add checks for fnmatch support. 2009-06-01 16:16:02 +02:00
Damjan Jovanovic
fbb43c42a7 winemenubuilder: Only add mime types that aren't already in freedesktop. 2009-05-29 15:48:01 +02:00
Joerg-Cyril.Hoehle@t-systems.com
85b6189c3f configure: Find libpng in /usr/X11 on MacOS. 2009-05-25 16:39:27 +02:00
Damjan Jovanovic
c1fa150ceb winemenubuilder: Add MIME types to freedesktop. 2009-05-25 14:21:43 +02:00
Damjan Jovanovic
0b4499cdcd winemenubuilder: Build freedesktop MIME type list for later use. 2009-04-21 17:45:06 +02:00
Damjan Jovanovic
448ca846cf winemenubuilder: Make initial directories for fd.o MIME type handling. 2009-04-06 15:29:30 +02:00
Damjan Jovanovic
612d47d3b5 winemenubuilder: Use the user-dirs desktop directory instead of hardcoding ~/Desktop. 2009-03-31 12:41:26 +02:00
Francois Gouget
dfd09c310c winemenubuilder: Print an error message if we are unable to load an lnk file. 2009-03-12 13:09:53 +01:00
Francois Gouget
9b6d3676a0 winemenubuilder: Fix an off-by-one check that resulted in erroneous error messages. 2009-03-12 13:09:53 +01:00
Damjan Jovanovic
3613b15785 winex11: Support the startup notification fd.o spec. 2009-01-07 14:17:46 +01:00
Damjan Jovanovic
83b081f73c winemenubuilder: Improve icon generation. 2008-12-27 20:23:08 +01:00
Damjan Jovanovic
2fde3c0f7b winemenubuilder: Create xdg_config_dir if it does not exist. 2008-12-17 11:38:21 +01:00
Damjan Jovanovic
9ff230dcaa shdocvw, winemenubuilder: Generate fd.o entries for .url files. 2008-11-14 13:30:25 +01:00
Damjan Jovanovic
4e2cec5aba winemenubuilder: Moved all wineshelllink functionality to winemenubuilder and removed wineshelllink. 2008-11-12 11:49:12 +01:00
Damjan Jovanovic
f5b8bad2aa winemenubuilder: Generate desktop files instead of wineshelllink. 2008-11-10 11:06:40 +01:00
Alexandre Julliard
394e97feea winemenubuilder: Move the xdg global variables out of the libpng ifdef block. 2008-11-03 20:19:30 +01:00
Damjan Jovanovic
26fcfb4b24 winemenubuilder: Generate icons in winemenubuilder instead of wineshelllink. 2008-11-03 15:05:18 +01:00
Alexandre Julliard
b66685cdd8 programs: Build the programs that support it with -DWINE_NO_UNICODE_MACROS. 2008-09-03 14:21:41 +02:00
Alexandre Julliard
b3ec2e5f95 makefiles: Recurse into all directories for install-lib and install-dev too. 2008-08-25 14:27:03 +02:00
Alexandre Julliard
520d1bc5e4 winemenubuilder: Copy the icon data before modifying it, resources are read-only. 2008-05-13 20:26:57 +02:00
Alexandre Julliard
dad21bbcbf makefiles: List the static libraries as normal imports instead of extra libs. 2008-04-30 14:23:55 +02:00
Alexandre Julliard
de139bf028 winemenubuilder: Process messages while waiting for the semaphore or the parent process. 2008-04-21 20:34:30 +02:00
Vitaliy Margolen
fbdf05aad1 winemenubuilder: Add support for 24 and 32 bit icons using png format. 2008-03-24 13:39:29 +01:00
Francois Gouget
5819b90f95 winemenubuilder: Expand environment variable references in the shortcut's WorkDir, Description and IconPath fields. 2008-01-23 20:45:22 +01:00
Francois Gouget
4dc91b7ba1 winemenubuilder: EnumResourceNamesW() returns false when we find the icon. So fix the corresponding misfiring trace. 2008-01-11 12:25:52 +01:00
Dan Kegel
59b69a7236 winemenubuilder: Expand short paths, else menu items aren't created for CSLU Toolkit. 2008-01-07 18:19:45 +01:00
Misha Koshelev
a5a049da5a winemenubuilder: Do not WINE_ERR in InvokeShellLinker if we are going to try again. 2007-06-29 12:33:33 +02:00
Misha Koshelev
5e28f7ad92 winemenubuilder: Wait for parent process to finish instead of creating RunOnce entry that may never run. 2007-06-28 12:16:13 +02:00
Misha Koshelev
e340cafe74 winemenubuilder: Create/release semaphore only around call to wineshelllink. 2007-06-28 12:16:13 +02:00
Francois Gouget
aab5e5856e Don't put single quotes around '%s' when using the debugstr_*() functions. 2007-01-18 12:55:50 +01:00
Vitaliy Margolen
47a2e96acc winemenubuilder: Look for supported color depths icons only. 2006-11-30 16:34:34 +01:00
Vitaliy Margolen
ada881cee6 winemenubuilder: Downgrade some ERR to WARN. 2006-11-27 17:20:40 +01:00
Vitaliy Margolen
6a6f1f48d6 winemenubuilder: Use 'start.exe' to launch non .exe files. 2006-11-22 12:07:25 +01:00
Michael Stefaniuc
8c2cdf7b6f winemenubuilder: Win64 printf format warning fixes. 2006-10-03 11:16:07 +02:00
Michael Stefaniuc
85ce5117c5 Add a WINE_NO_LONG_INT define to many makefiles to ease the transition of DWORD/LONG/ULONG from long to int. 2006-09-29 16:08:30 +02:00
Alexandre Julliard
32ab895e46 makefiles: Generate the dependencies line to avoid some code duplication. 2006-09-14 09:38:16 +02:00
Alexandre Julliard
2886e9b0e8 makefiles: Use make dependencies to create installation directories.
This avoids a lot of redundant calls to mkinstalldirs.
2006-08-07 17:48:18 +02:00
Alexandre Julliard
eb8a40c368 libs: Merged libwine_unicode into libwine.
Most dlls use libwine_unicode at this point, so there's nothing to
gain by having two separate libraries.
2006-07-11 19:33:22 +02:00
Alexandre Julliard
028ab92bf7 make_progs: Generate the .gitignore file.
Ignore generated programs from the top-level .gitignore.
2006-07-10 20:59:06 +02:00
Alexandre Julliard
cc2b3b48e6 Take advantage of the recursive nature of .gitignore for Makefile entries.
Prefix other entries with '/' to make them non-recursive.
2006-07-10 20:47:54 +02:00
Alexandre Julliard
9ca8a86914 Link against libwine_unicode everywhere we use Unicode functions. 2006-05-24 18:05:40 +02:00
Jonathan Ernst
360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mike Frysinger
5392844392 Add support for 'make install DESTDIR'. 2006-02-14 13:51:38 +01:00
Vitaliy Margolen
b52874e56d winemenubuilder: Report a few more errors.
Use Heap[Alloc|Free] instead of malloc|free.
2006-01-17 13:34:31 +01:00
Francois Gouget
629889b267 winemenubuilder: Improve traces.
Report the EnumResourceNamesW() and failure to find an icon 
separately so traces are less misleading.
2006-01-11 12:09:53 +01:00
Francois Gouget
6f0ff14966 winemenubuilder: Improve traces.
Add some traces to make it easier to debug icon generation problems.
2006-01-03 12:09:47 +01:00
Bill Medland
d5739ed88f winemenubuilder: Provide depth to the menus created. 2005-12-19 21:25:52 +01:00
Alexandre Julliard
ec34a66612 Ignore symlink files too (needed for git). 2005-11-26 13:12:57 +01:00
Alexandre Julliard
0ec7e1a591 Renamed all .cvsignore files to .gitignore. 2005-11-26 13:10:33 +01:00
Francois Gouget
d927c81bca Parse the command line returned by CommandLineFromMsiDescriptor() to
extract the application path. Otherwise winemenubuilder ignores the
.lnk file entirely.
2005-11-10 11:36:26 +00:00
Mike McCormack
66775b90e3 Extract the executable name for msi advertised shortcuts. 2005-11-08 10:55:25 +00:00
Alexandre Julliard
7e22be4d84 We are no longer generating .dbg.c files. 2005-09-29 10:35:58 +00:00
Mike McCormack
c818a4e662 Fix "empty body in an if/else-statement" warnings. 2005-09-21 09:46:28 +00:00
Marcus Meissner
bd7ec9aca5 The last argument to MultiByteToWideChar is wide character count and
not the buffer size in bytes. Fixed all places where it was wrong.
2005-09-12 22:07:53 +00:00
Maxime Bellengé
0876700949 Make the icon choice algorithm really choose the best icon. 2005-08-22 09:17:25 +00:00
Alexandre Julliard
690115aab9 Moved the configuration key to HKCU\Software\Wine\WineMenuBuilder. 2005-07-06 15:47:48 +00:00
Sven Paschukat
b3415b0311 Repaired extraction of icons when config file is missing. 2005-06-30 10:17:57 +00:00
Alexandre Julliard
2e4bca9db5 Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
2005-06-13 18:56:00 +00:00
Mike McCormack
ae51135ed9 Fixes for -Wmissing-declarations and -Wwrite-strings warnings. 2005-06-02 15:11:32 +00:00
Francois Gouget
0ae9be862e winemenubuilder.c is the only Wine source file checking for
HAVE_STRING_H. Remove that check for consistency.
2005-05-07 14:50:40 +00:00
Francois Gouget
86d5520c5b If winemenubuilder is given a list of menus to recreate, it should not
give up on the first menu that fails.
2005-04-15 16:10:53 +00:00
Mike McCormack
3563511ad2 When running a second time, don't fail if we can't extract an icon. 2005-02-22 19:31:19 +00:00
Mike McCormack
553dd72315 Small indentation fixes. 2005-02-18 12:52:33 +00:00
Dmitry Timoshkov
9074f257e0 Convert winemenubuilder to unicode. 2005-02-17 11:51:44 +00:00
Mike McCormack
dc524986f2 Small fixes, indentation and comments. 2005-02-16 16:04:05 +00:00
Michael Stefaniuc
5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Eric Pouech
0a258964c2 Const correctness fixes. 2004-11-30 21:38:57 +00:00
Francois Gouget
486d020c1b Don't define COBJMACROS in objbase.h.
Update the Wine sources accordingly.
2004-10-07 03:06:48 +00:00
Hans Leidekker
719a789792 Fix signed/unsigned comparison warnings. 2004-09-22 02:46:38 +00:00
Francois Gouget
e745b3804d Add support for the CSIDL_COMMON_* locations. 2004-09-21 20:08:10 +00:00
Marcus Meissner
904b1fbb89 If we do not have an IconsDir, use the temp directory. 2004-09-14 00:43:19 +00:00
Francois Gouget
8fa7ee2632 Fix a memory leak.
Improve the GetFullPathName() error checks.
Stricter match check in GetLinkLocation().
Clarify the 'Unknown link location' message.
2004-08-30 19:28:59 +00:00
Vincent Béron
8f7003bb7f Don't hardcode C:\windows\system\start.exe. 2004-08-18 23:40:15 +00:00
Chris Morgan
435623df6f Hardcode "wineshelllink" in winemenubuilder, remove it from the config
file.
2004-06-18 22:29:56 +00:00
Eric Pouech
df93f2eeee GetModuleFileName[AW] doesn't terminate the string if the buffer is
too small.
2004-05-19 03:22:55 +00:00
Francois Gouget
6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Alexandre Julliard
1cb0cf4ced Moved wine_get_unix_file_name implementation to ntdll, and changed it
to return an allocated buffer instead of a fixed size one.
2004-04-14 19:40:53 +00:00
Alexandre Julliard
6be39b60f5 Take advantage of the new winegcc -B support. 2004-03-09 04:54:07 +00:00
Alexandre Julliard
589e115233 We no longer use the .exe.spec.c files. 2004-03-02 21:16:37 +00:00
Alexandre Julliard
6621b2d213 Build all the programs with winegcc. 2004-03-02 21:00:00 +00:00
Alexandre Julliard
20b4585e3c Only link against libdxguid where necessary. 2004-01-27 00:11:16 +00:00
Francois Gouget
826ff13385 Improve error reporting. 2004-01-06 20:39:17 +00:00
Eric Pouech
5bf3a2669b Made wine_get_unix_file_name take a Unicode string pointer. 2004-01-05 23:42:09 +00:00
Dimitrie O. Paun
573b389053 Move include/bitmaps/*.xpm where they belong. 2003-12-08 21:44:24 +00:00
Daniel Marmier
f95be92d24 Fixed warnings with gcc option "-Wwrite-strings". 2003-10-15 03:35:54 +00:00
Alexandre Julliard
cf52644a1c Removed the A/W constants for builtin cursors, icons and resource
types since they don't exist on Windows, and added typecasts
everywhere instead.
2003-09-10 03:56:47 +00:00
Francois Gouget
ae50013017 Fix the case of product and company names. 2003-09-08 19:38:45 +00:00
Richard Cohen
c17ad75ae6 Remove no longer necessary includes <signal.h>, <wait.h>. 2003-08-13 19:37:32 +00:00
Francois Gouget
5054045f6b Remove some unnecessary casts when assigning NULL to handles. 2003-07-02 04:30:55 +00:00
Francois Gouget
9591836ffb 'sizeof type' is best avoided as it won't always compile (e.g. 'int
main() {return sizeof int;}'). Use 'sizeof(type)' instead.
2003-06-18 19:45:22 +00:00
Mike McCormack
88090b47a6 Remove code that starts wineshelllink, instead create a windows
compatible shortcut (*.lnk) file. After creating that file, start a
link processor (winemenubuilder) on it, which reads it back then calls
wineshelllink.
Rework CreateStreamFromFile to create an IStream object that is
writeable.
2003-05-21 18:50:53 +00:00