Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
340d1b7a
Commit
340d1b7a
authored
May 31, 2022
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Move wine_notify_icon implementation to dllmain.c.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
parent
58e4adf0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
3 deletions
+25
-3
dllmain.c
dlls/winemac.drv/dllmain.c
+7
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+4
-0
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+1
-0
systray.c
dlls/winemac.drv/systray.c
+5
-3
unixlib.h
dlls/winemac.drv/unixlib.h
+8
-0
No files found.
dlls/winemac.drv/dllmain.c
View file @
340d1b7a
...
...
@@ -21,6 +21,7 @@
#include "config.h"
#include <stdarg.h>
#include "macdrv.h"
#include "shellapi.h"
HMODULE
macdrv_module
=
0
;
...
...
@@ -63,3 +64,9 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
macdrv_module
=
instance
;
return
process_attach
();
}
int
CDECL
wine_notify_icon
(
DWORD
msg
,
NOTIFYICONDATAW
*
data
)
{
struct
notify_icon_params
params
=
{
.
msg
=
msg
,
.
data
=
data
};
return
MACDRV_CALL
(
notify_icon
,
&
params
);
}
dlls/winemac.drv/macdrv.h
View file @
340d1b7a
...
...
@@ -294,6 +294,10 @@ extern void macdrv_im_set_text(const macdrv_event *event) DECLSPEC_HIDDEN;
extern
void
macdrv_sent_text_input
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
BOOL
query_ime_char_rect
(
macdrv_query
*
query
)
DECLSPEC_HIDDEN
;
/* unixlib interface */
extern
NTSTATUS
macdrv_notify_icon
(
void
*
arg
)
DECLSPEC_HIDDEN
;
/* user helpers */
static
inline
LRESULT
send_message
(
HWND
hwnd
,
UINT
msg
,
WPARAM
wparam
,
LPARAM
lparam
)
...
...
dlls/winemac.drv/macdrv_main.c
View file @
340d1b7a
...
...
@@ -610,6 +610,7 @@ BOOL macdrv_SystemParametersInfo( UINT action, UINT int_param, void *ptr_param,
const
unixlib_entry_t
__wine_unix_call_funcs
[]
=
{
macdrv_init
,
macdrv_notify_icon
,
};
C_ASSERT
(
ARRAYSIZE
(
__wine_unix_call_funcs
)
==
unix_funcs_count
);
...
...
dlls/winemac.drv/systray.c
View file @
340d1b7a
...
...
@@ -245,12 +245,14 @@ static BOOL delete_icon(struct tray_icon *icon)
*
* Driver-side implementation of Shell_NotifyIcon.
*/
int
CDECL
wine_notify_icon
(
DWORD
msg
,
NOTIFYICONDATAW
*
data
)
NTSTATUS
macdrv_notify_icon
(
void
*
arg
)
{
struct
notify_icon_params
*
params
=
arg
;
NOTIFYICONDATAW
*
data
=
params
->
data
;
BOOL
ret
=
FALSE
;
struct
tray_icon
*
icon
;
switch
(
msg
)
switch
(
params
->
msg
)
{
case
NIM_ADD
:
ret
=
add_icon
(
data
);
...
...
@@ -272,7 +274,7 @@ int CDECL wine_notify_icon(DWORD msg, NOTIFYICONDATAW *data)
}
break
;
default:
FIXME
(
"unhandled tray message: %u
\n
"
,
msg
);
FIXME
(
"unhandled tray message: %u
\n
"
,
params
->
msg
);
break
;
}
return
ret
;
...
...
dlls/winemac.drv/unixlib.h
View file @
340d1b7a
...
...
@@ -22,6 +22,7 @@
enum
macdrv_funcs
{
unix_init
,
unix_notify_icon
,
unix_funcs_count
};
...
...
@@ -41,3 +42,10 @@ struct init_params
{
struct
localized_string
*
strings
;
};
/* macdrv_notify_icon params */
struct
notify_icon_params
{
DWORD
msg
;
struct
_NOTIFYICONDATAW
*
data
;
};
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