Bug 1224738 - Fix alternate action index getter name on OS X. r=MattN, a=ritu
authorKit Cambridge <kcambridge@mozilla.com>
Mon, 16 Nov 2015 13:09:38 -0800
changeset 305616 ccd22a68675b846d1a5cfb89a9e177ef90fd0489
parent 305615 044c36c2db7ff941af23f9fb6dd867b6c80e799d
child 305617 0c2d18f223f6c3ee5c52eba6c24d0ab8ce1f6cdd
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMattN, ritu
bugs1224738
milestone44.0a2
Bug 1224738 - Fix alternate action index getter name on OS X. r=MattN, a=ritu
widget/cocoa/OSXNotificationCenter.mm
--- a/widget/cocoa/OSXNotificationCenter.mm
+++ b/widget/cocoa/OSXNotificationCenter.mm
@@ -100,17 +100,17 @@ enum {
 {
 
 }
 
 - (void)userNotificationCenter:(id<FakeNSUserNotificationCenter>)center
        didActivateNotification:(id<FakeNSUserNotification>)notification
 {
   unsigned long long additionalActionIndex = ULLONG_MAX;
-  if ([notification respondsToSelector:@selector(get_alternateActionIndex:)]) {
+  if ([notification respondsToSelector:@selector(_alternateActionIndex)]) {
     NSNumber *alternateActionIndex = [(NSObject*)notification valueForKey:@"_alternateActionIndex"];
     additionalActionIndex = [alternateActionIndex unsignedLongLongValue];
   }
   mOSXNC->OnActivate([[notification userInfo] valueForKey:@"name"],
                      notification.activationType,
                      additionalActionIndex);
 }