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
6b2b3e69
Commit
6b2b3e69
authored
Mar 10, 2013
by
Ken Thomases
Committed by
Alexandre Julliard
Mar 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemac: Implement CountClipboardFormats() with support for text formats.
parent
41658157
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
63 additions
and
0 deletions
+63
-0
Makefile.in
dlls/winemac.drv/Makefile.in
+2
-0
clipboard.c
dlls/winemac.drv/clipboard.c
+0
-0
cocoa_clipboard.m
dlls/winemac.drv/cocoa_clipboard.m
+52
-0
macdrv.h
dlls/winemac.drv/macdrv.h
+2
-0
macdrv_cocoa.h
dlls/winemac.drv/macdrv_cocoa.h
+4
-0
macdrv_main.c
dlls/winemac.drv/macdrv_main.c
+2
-0
winemac.drv.spec
dlls/winemac.drv/winemac.drv.spec
+1
-0
No files found.
dlls/winemac.drv/Makefile.in
View file @
6b2b3e69
...
...
@@ -3,6 +3,7 @@ IMPORTS = user32 gdi32 advapi32
EXTRALIBS
=
-framework
AppKit
-framework
Carbon
-framework
Security
-framework
OpenGL
C_SRCS
=
\
clipboard.c
\
display.c
\
event.c
\
gdi.c
\
...
...
@@ -16,6 +17,7 @@ C_SRCS = \
OBJC_SRCS
=
\
cocoa_app.m
\
cocoa_clipboard.m
\
cocoa_display.m
\
cocoa_event.m
\
cocoa_main.m
\
...
...
dlls/winemac.drv/clipboard.c
0 → 100644
View file @
6b2b3e69
This diff is collapsed.
Click to expand it.
dlls/winemac.drv/cocoa_clipboard.m
0 → 100644
View file @
6b2b3e69
/*
* MACDRV Cocoa clipboard code
*
* Copyright 2012, 2013 Ken Thomases for CodeWeavers Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "macdrv_cocoa.h"
#import "cocoa_app.h"
/***********************************************************************
* macdrv_copy_pasteboard_types
*
* Returns an array of UTI strings for the types of data available on
* the pasteboard, or NULL on error. The caller is responsible for
* releasing the returned array with CFRelease().
*/
CFArrayRef
macdrv_copy_pasteboard_types
(
void
)
{
__block
CFArrayRef
ret
=
NULL
;
NSAutoreleasePool
*
pool
=
[[
NSAutoreleasePool
alloc
]
init
];
OnMainThread
(
^
{
@try
{
NSPasteboard
*
pb
=
[
NSPasteboard
generalPasteboard
];
NSArray
*
types
=
[
pb
types
];
ret
=
(
CFArrayRef
)[
types
copy
];
}
@catch
(
id
e
)
{
ERR
(
@"Exception discarded while copying pasteboard types: %@
\n
"
,
e
);
}
});
[
pool
release
];
return
ret
;
}
dlls/winemac.drv/macdrv.h
View file @
6b2b3e69
...
...
@@ -156,6 +156,8 @@ extern void macdrv_key_event(HWND hwnd, const macdrv_event *event) DECLSPEC_HIDD
extern
void
macdrv_displays_changed
(
const
macdrv_event
*
event
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_clipboard_process_attach
(
void
)
DECLSPEC_HIDDEN
;
extern
struct
opengl_funcs
*
macdrv_wine_get_wgl_driver
(
PHYSDEV
dev
,
UINT
version
)
DECLSPEC_HIDDEN
;
extern
void
sync_gl_view
(
struct
macdrv_win_data
*
data
)
DECLSPEC_HIDDEN
;
extern
void
set_gl_view_parent
(
HWND
hwnd
,
HWND
parent
)
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/macdrv_cocoa.h
View file @
6b2b3e69
...
...
@@ -273,6 +273,10 @@ extern void macdrv_remove_view_opengl_context(macdrv_view v, macdrv_opengl_conte
extern
CFDataRef
macdrv_copy_keyboard_layout
(
CGEventSourceKeyboardType
*
keyboard_type
,
int
*
is_iso
)
DECLSPEC_HIDDEN
;
/* clipboard */
extern
CFArrayRef
macdrv_copy_pasteboard_types
(
void
)
DECLSPEC_HIDDEN
;
/* opengl */
extern
macdrv_opengl_context
macdrv_create_opengl_context
(
void
*
cglctx
)
DECLSPEC_HIDDEN
;
extern
void
macdrv_dispose_opengl_context
(
macdrv_opengl_context
c
)
DECLSPEC_HIDDEN
;
...
...
dlls/winemac.drv/macdrv_main.c
View file @
6b2b3e69
...
...
@@ -89,6 +89,8 @@ static BOOL process_attach(void)
return
FALSE
;
}
macdrv_clipboard_process_attach
();
return
TRUE
;
}
...
...
dlls/winemac.drv/winemac.drv.spec
View file @
6b2b3e69
...
...
@@ -8,6 +8,7 @@
@ cdecl Beep() macdrv_Beep
@ cdecl ChangeDisplaySettingsEx(ptr ptr long long long) macdrv_ChangeDisplaySettingsEx
@ cdecl ClipCursor(ptr) macdrv_ClipCursor
@ cdecl CountClipboardFormats() macdrv_CountClipboardFormats
@ cdecl CreateDesktopWindow(long) macdrv_CreateDesktopWindow
@ cdecl CreateWindow(long) macdrv_CreateWindow
@ cdecl DestroyCursorIcon(long) macdrv_DestroyCursorIcon
...
...
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