[vlc-commits] commit: Qt: correctly handle Unicode in Win7 jump lists ( Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Sat Sep 4 20:16:00 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Sep 4 20:11:47 2010 +0200| [36eff3f63a815dc59a4401ddece17cf2fc6dc7b6] | committer: Jean-Baptiste Kempf
Qt: correctly handle Unicode in Win7 jump lists
Closes #4142
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=36eff3f63a815dc59a4401ddece17cf2fc6dc7b6
---
modules/gui/qt4/recents.cpp | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/recents.cpp b/modules/gui/qt4/recents.cpp
index 99fb827..5112c99 100644
--- a/modules/gui/qt4/recents.cpp
+++ b/modules/gui/qt4/recents.cpp
@@ -33,9 +33,21 @@
#include <QSignalMapper>
#ifdef WIN32
-#include <shlobj.h>
+ #include <shlobj.h>
+ /* typedef enum {
+ SHARD_PIDL = 0x00000001,
+ SHARD_PATHA = 0x00000002,
+ SHARD_PATHW = 0x00000003,
+ SHARD_APPIDINFO = 0x00000004,
+ SHARD_APPIDINFOIDLIST = 0x00000005,
+ SHARD_LINK = 0x00000006,
+ SHARD_APPIDINFOLINK = 0x00000007,
+ SHARD_SHELLITEM = 0x00000008
+ } SHARD; */
+ #define SHARD_PATHW 0x00000003
#endif
+
RecentsMRL* RecentsMRL::instance = NULL;
RecentsMRL::RecentsMRL( intf_thread_t *_p_intf ) : p_intf( _p_intf )
@@ -76,7 +88,7 @@ void RecentsMRL::addRecent( const QString &mrl )
#ifdef WIN32
/* Add to the Windows 7 default list in taskbar */
- SHAddToRecentDocs( 0x00000002 , qtu( mrl ) );
+ SHAddToRecentDocs( SHARD_PATHW, qtu( mrl ) );
#endif
int i_index = stack->indexOf( mrl );
More information about the vlc-commits
mailing list