Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e9fa0599
Commit
e9fa0599
authored
Jan 10, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Merge ShellView menu implementations into a single file.
parent
de0813c7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
14 additions
and
15 deletions
+14
-15
Makefile.in
dlls/shell32/Makefile.in
+1
-2
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+1
-1
shell32_main.h
dlls/shell32/shell32_main.h
+2
-2
shfldr_desktop.c
dlls/shell32/shfldr_desktop.c
+2
-2
shfldr_fs.c
dlls/shell32/shfldr_fs.c
+1
-1
shfldr_mycomp.c
dlls/shell32/shfldr_mycomp.c
+1
-1
shfldr_netplaces.c
dlls/shell32/shfldr_netplaces.c
+1
-1
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+1
-1
shlmenu.c
dlls/shell32/shlmenu.c
+2
-2
shlview.c
dlls/shell32/shlview.c
+2
-2
shlview_cmenu.c
dlls/shell32/shlview_cmenu.c
+0
-0
shv_bg_cmenu.c
dlls/shell32/shv_bg_cmenu.c
+0
-0
No files found.
dlls/shell32/Makefile.in
View file @
e9fa0599
...
...
@@ -46,9 +46,8 @@ C_SRCS = \
shlfsbind.c
\
shlmenu.c
\
shlview.c
\
shlview_cmenu.c
\
shpolicy.c
\
shv_bg_cmenu.c
\
shv_item_cmenu.c
\
systray.c
\
trash.c
\
xdg.c
...
...
dlls/shell32/cpanelfolder.c
View file @
e9fa0599
...
...
@@ -600,7 +600,7 @@ static HRESULT WINAPI ISF_ControlPanel_fnGetUIObjectOf(IShellFolder2 *iface, HWN
*
ppvOut
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IContextMenu
)
&&
(
cidl
>=
1
))
{
pObj
=
(
LPUNKNOWN
)
I
SvItemCm
_Constructor
((
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
pObj
=
(
LPUNKNOWN
)
I
temMenu
_Constructor
((
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
hr
=
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDataObject
)
&&
(
cidl
>=
1
))
{
pObj
=
(
LPUNKNOWN
)
IDataObject_Constructor
(
hwndOwner
,
This
->
pidlRoot
,
apidl
,
cidl
);
...
...
dlls/shell32/shell32_main.h
View file @
e9fa0599
...
...
@@ -78,8 +78,8 @@ LPDATAOBJECT IDataObject_Constructor(HWND hwndOwner, LPCITEMIDLIST myPidl, LPCIT
LPENUMFORMATETC
IEnumFORMATETC_Constructor
(
UINT
,
const
FORMATETC
[])
DECLSPEC_HIDDEN
;
LPCLASSFACTORY
IClassFactory_Constructor
(
REFCLSID
)
DECLSPEC_HIDDEN
;
IContextMenu2
*
I
SvItemCm_Constructor
(
LPSHELLFOLDER
pSFParent
,
LPCITEMIDLIST
pidl
,
const
LPCITEMIDLIST
*
aPidls
,
UINT
uItemCount
)
DECLSPEC_HIDDEN
;
IContextMenu2
*
ISvBgCm_Constructor
(
LPSHELLFOLDER
pSFParent
,
BOOL
bDesktop
)
DECLSPEC_HIDDEN
;
IContextMenu2
*
I
temMenu_Constructor
(
IShellFolder
*
,
LPCITEMIDLIST
,
const
LPCITEMIDLIST
*
,
UINT
)
DECLSPEC_HIDDEN
;
IContextMenu2
*
BackgroundMenu_Constructor
(
IShellFolder
*
,
BOOL
)
DECLSPEC_HIDDEN
;
LPSHELLVIEW
IShellView_Constructor
(
LPSHELLFOLDER
)
DECLSPEC_HIDDEN
;
HRESULT
WINAPI
IFSFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
DECLSPEC_HIDDEN
;
...
...
dlls/shell32/shfldr_desktop.c
View file @
e9fa0599
...
...
@@ -530,9 +530,9 @@ static HRESULT WINAPI ISF_Desktop_fnGetUIObjectOf (IShellFolder2 * iface,
if
(
IsEqualIID
(
riid
,
&
IID_IContextMenu
))
{
if
(
cidl
>
0
)
pObj
=
(
LPUNKNOWN
)
I
SvItemCm
_Constructor
(
(
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
pObj
=
(
LPUNKNOWN
)
I
temMenu
_Constructor
(
(
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
else
pObj
=
(
LPUNKNOWN
)
ISvBgCm
_Constructor
(
(
IShellFolder
*
)
iface
,
TRUE
);
pObj
=
(
LPUNKNOWN
)
BackgroundMenu
_Constructor
(
(
IShellFolder
*
)
iface
,
TRUE
);
hr
=
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDataObject
)
&&
(
cidl
>=
1
))
...
...
dlls/shell32/shfldr_fs.c
View file @
e9fa0599
...
...
@@ -744,7 +744,7 @@ IShellFolder_fnGetUIObjectOf (IShellFolder2 * iface,
}
if
(
IsEqualIID
(
riid
,
&
IID_IContextMenu
)
&&
(
cidl
>=
1
))
{
pObj
=
(
LPUNKNOWN
)
I
SvItemCm
_Constructor
((
IShellFolder
*
)
iface
,
pObj
=
(
LPUNKNOWN
)
I
temMenu
_Constructor
((
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
hr
=
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDataObject
)
&&
(
cidl
>=
1
))
{
...
...
dlls/shell32/shfldr_mycomp.c
View file @
e9fa0599
...
...
@@ -532,7 +532,7 @@ static HRESULT WINAPI ISF_MyComputer_fnGetUIObjectOf (IShellFolder2 * iface,
if
(
IsEqualIID
(
riid
,
&
IID_IContextMenu
)
&&
(
cidl
>=
1
))
{
pObj
=
(
LPUNKNOWN
)
I
SvItemCm
_Constructor
((
IShellFolder
*
)
iface
,
pObj
=
(
LPUNKNOWN
)
I
temMenu
_Constructor
((
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
hr
=
S_OK
;
}
...
...
dlls/shell32/shfldr_netplaces.c
View file @
e9fa0599
...
...
@@ -426,7 +426,7 @@ static HRESULT WINAPI ISF_NetworkPlaces_fnGetUIObjectOf (IShellFolder2 * iface,
if
(
IsEqualIID
(
riid
,
&
IID_IContextMenu
)
&&
(
cidl
>=
1
))
{
pObj
=
(
LPUNKNOWN
)
I
SvItemCm
_Constructor
((
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
pObj
=
(
LPUNKNOWN
)
I
temMenu
_Constructor
((
IShellFolder
*
)
iface
,
This
->
pidlRoot
,
apidl
,
cidl
);
hr
=
S_OK
;
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDataObject
)
&&
(
cidl
>=
1
))
...
...
dlls/shell32/shfldr_unixfs.c
View file @
e9fa0599
...
...
@@ -1167,7 +1167,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetUIObjectOf(IShellFolder2* ifac
}
if
(
IsEqualIID
(
&
IID_IContextMenu
,
riid
))
{
*
ppvOut
=
I
SvItemCm
_Constructor
((
IShellFolder
*
)
iface
,
This
->
m_pidlLocation
,
apidl
,
cidl
);
*
ppvOut
=
I
temMenu
_Constructor
((
IShellFolder
*
)
iface
,
This
->
m_pidlLocation
,
apidl
,
cidl
);
return
S_OK
;
}
else
if
(
IsEqualIID
(
&
IID_IDataObject
,
riid
))
{
*
ppvOut
=
IDataObject_Constructor
(
hwndOwner
,
This
->
m_pidlLocation
,
apidl
,
cidl
);
...
...
dlls/shell32/shlmenu.c
View file @
e9fa0599
...
...
@@ -1275,7 +1275,7 @@ HRESULT WINAPI CDefFolderMenu_Create2(LPCITEMIDLIST pidlFolder, HWND hwnd, UINT
}
else
folder_pidl
=
ILClone
(
pidlFolder
);
system_menu
=
(
IContextMenu
*
)
I
SvItemCm
_Constructor
(
psf
,
folder_pidl
,(
const
LPCITEMIDLIST
*
)
apidl
,
cidl
);
system_menu
=
(
IContextMenu
*
)
I
temMenu
_Constructor
(
psf
,
folder_pidl
,(
const
LPCITEMIDLIST
*
)
apidl
,
cidl
);
hres
=
SHELL_CreateContextMenu
(
hwnd
,
system_menu
,
psf
,
folder_pidl
,
apidl
,
cidl
,
ahkeys
,
nKeys
,
&
IID_IContextMenu
,(
void
**
)
ppcm
);
IContextMenu_Release
(
system_menu
);
ILFree
(
folder_pidl
);
...
...
@@ -1300,7 +1300,7 @@ HRESULT WINAPI SHCreateDefaultContextMenu(const DEFCONTEXTMENU *pdcm, REFIID rii
folder_pidl
=
ILClone
(
pdcm
->
pidlFolder
);
if
(
pdcm
->
cKeys
==
0
)
FIXME
(
"Loading shell extensions using IQueryAssociations not yet supported
\n
"
);
system_menu
=
(
IContextMenu
*
)
I
SvItemCm
_Constructor
(
folder
,
folder_pidl
,(
const
LPCITEMIDLIST
*
)
pdcm
->
apidl
,
pdcm
->
cidl
);
system_menu
=
(
IContextMenu
*
)
I
temMenu
_Constructor
(
folder
,
folder_pidl
,(
const
LPCITEMIDLIST
*
)
pdcm
->
apidl
,
pdcm
->
cidl
);
ret
=
SHELL_CreateContextMenu
(
pdcm
->
hwnd
,
system_menu
,
folder
,
folder_pidl
,(
LPCITEMIDLIST
*
)
pdcm
->
apidl
,
pdcm
->
cidl
,
pdcm
->
aKeys
,
pdcm
->
cKeys
,
riid
,
ppv
);
IContextMenu_Release
(
system_menu
);
ILFree
(
folder_pidl
);
...
...
dlls/shell32/shlview.c
View file @
e9fa0599
...
...
@@ -1095,7 +1095,7 @@ static void ShellView_DoContextMenu(IShellViewImpl * This, WORD x, WORD y, BOOL
{
hMenu
=
CreatePopupMenu
();
pCM
=
ISvBgCm
_Constructor
(
This
->
pSFParent
,
FALSE
);
pCM
=
BackgroundMenu
_Constructor
(
This
->
pSFParent
,
FALSE
);
IContextMenu2_QueryContextMenu
(
pCM
,
hMenu
,
0
,
FCIDM_SHVIEWFIRST
,
FCIDM_SHVIEWLAST
,
0
);
uCommand
=
TrackPopupMenu
(
hMenu
,
TPM_LEFTALIGN
|
TPM_RETURNCMD
,
x
,
y
,
0
,
This
->
hWnd
,
NULL
);
...
...
@@ -2050,7 +2050,7 @@ static HRESULT WINAPI IShellView_fnGetItemObject(IShellView2 *iface, UINT uItem,
if
(
IsEqualIID
(
&
IID_IContextMenu
,
riid
))
{
*
ppvOut
=
ISvBgCm
_Constructor
(
This
->
pSFParent
,
FALSE
);
*
ppvOut
=
BackgroundMenu
_Constructor
(
This
->
pSFParent
,
FALSE
);
hr
=
S_OK
;
}
else
...
...
dlls/shell32/sh
v_item
_cmenu.c
→
dlls/shell32/sh
lview
_cmenu.c
View file @
e9fa0599
This diff is collapsed.
Click to expand it.
dlls/shell32/shv_bg_cmenu.c
deleted
100644 → 0
View file @
de0813c7
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment