summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexandra Ellwood <lxs@mit.edu>2008-09-27 00:44:39 +0000
committerAlexandra Ellwood <lxs@mit.edu>2008-09-27 00:44:39 +0000
commitf0098982775d44d490bae733f386a5432e712a8e (patch)
treeae2029e6837119d6c2f065fc850218b183ac6c9d /src
parentb17febfe3cc33870741dffeea9e1a336088c6a7d (diff)
downloadkrb5-f0098982775d44d490bae733f386a5432e712a8e.tar.gz
krb5-f0098982775d44d490bae733f386a5432e712a8e.tar.xz
krb5-f0098982775d44d490bae733f386a5432e712a8e.zip
C90 compliance
ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20762 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/kim/agent/mac/PopupButton.m19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/kim/agent/mac/PopupButton.m b/src/kim/agent/mac/PopupButton.m
index e4934a9eb..d264c041b 100644
--- a/src/kim/agent/mac/PopupButton.m
+++ b/src/kim/agent/mac/PopupButton.m
@@ -32,19 +32,20 @@
- (void) mouseDown: (NSEvent *) event
{
if([self isEnabled] && ([self menu] != NULL)) {
+ NSEvent *menuEvent = NULL;
NSPoint menuPoint = { 3, [self frame].size.height + 1 };
[self highlight: YES];
- NSEvent *menuEvent = [NSEvent mouseEventWithType: [event type]
- location: [self convertPoint: menuPoint toView: NULL]
- modifierFlags: [event modifierFlags]
- timestamp: [event timestamp]
- windowNumber: [[event window] windowNumber]
- context: [event context]
- eventNumber: [event eventNumber]
- clickCount: [event clickCount]
- pressure: [event pressure]];
+ menuEvent = [NSEvent mouseEventWithType: [event type]
+ location: [self convertPoint: menuPoint toView: NULL]
+ modifierFlags: [event modifierFlags]
+ timestamp: [event timestamp]
+ windowNumber: [[event window] windowNumber]
+ context: [event context]
+ eventNumber: [event eventNumber]
+ clickCount: [event clickCount]
+ pressure: [event pressure]];
[NSMenu popUpContextMenu: [self menu] withEvent: menuEvent forView: self];