aboutsummaryrefslogtreecommitdiffstats
path: root/src/macselect.c
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2007-06-07 08:44:47 +0000
committerYAMAMOTO Mitsuharu2007-06-07 08:44:47 +0000
commit343bd7942699f1a9e8ba83363468a7ef1c173c19 (patch)
treefc8d40599e1e56291f2d2021e3b14b81365c6179 /src/macselect.c
parentb52ee0bd9a59abc2c164144c8f1c83d38d2f06ce (diff)
downloademacs-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/macselect.c')
-rw-r--r--src/macselect.c11
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
1626void 1626OSStatus
1627init_service_handler () 1627install_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
1638extern OSStatus mac_store_service_event P_ ((EventRef)); 1641extern OSStatus mac_store_service_event P_ ((EventRef));