diff options
| author | YAMAMOTO Mitsuharu | 2007-06-07 08:44:47 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2007-06-07 08:44:47 +0000 |
| commit | 343bd7942699f1a9e8ba83363468a7ef1c173c19 (patch) | |
| tree | fc8d40599e1e56291f2d2021e3b14b81365c6179 /src | |
| parent | b52ee0bd9a59abc2c164144c8f1c83d38d2f06ce (diff) | |
| download | emacs-343bd7942699f1a9e8ba83363468a7ef1c173c19.tar.gz emacs-343bd7942699f1a9e8ba83363468a7ef1c173c19.zip | |
[MAC_OSX] (install_service_handler): Rename from
init_service_handler. All callers changed. Return OSStatus value.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macselect.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/macselect.c b/src/macselect.c index c6aa97d5be9..a34f58df0f0 100644 --- a/src/macselect.c +++ b/src/macselect.c | |||
| @@ -1623,16 +1623,19 @@ remove_drag_handler (window) | |||
| 1623 | Services menu support | 1623 | Services menu support |
| 1624 | ***********************************************************************/ | 1624 | ***********************************************************************/ |
| 1625 | #ifdef MAC_OSX | 1625 | #ifdef MAC_OSX |
| 1626 | void | 1626 | OSStatus |
| 1627 | init_service_handler () | 1627 | install_service_handler () |
| 1628 | { | 1628 | { |
| 1629 | static const EventTypeSpec specs[] = | 1629 | static const EventTypeSpec specs[] = |
| 1630 | {{kEventClassService, kEventServiceGetTypes}, | 1630 | {{kEventClassService, kEventServiceGetTypes}, |
| 1631 | {kEventClassService, kEventServiceCopy}, | 1631 | {kEventClassService, kEventServiceCopy}, |
| 1632 | {kEventClassService, kEventServicePaste}, | 1632 | {kEventClassService, kEventServicePaste}, |
| 1633 | {kEventClassService, kEventServicePerform}}; | 1633 | {kEventClassService, kEventServicePerform}}; |
| 1634 | InstallApplicationEventHandler (NewEventHandlerUPP (mac_handle_service_event), | 1634 | |
| 1635 | GetEventTypeCount (specs), specs, NULL, NULL); | 1635 | return InstallApplicationEventHandler (NewEventHandlerUPP |
| 1636 | (mac_handle_service_event), | ||
| 1637 | GetEventTypeCount (specs), | ||
| 1638 | specs, NULL, NULL); | ||
| 1636 | } | 1639 | } |
| 1637 | 1640 | ||
| 1638 | extern OSStatus mac_store_service_event P_ ((EventRef)); | 1641 | extern OSStatus mac_store_service_event P_ ((EventRef)); |