diff options
| author | Adrian Robert | 2009-10-12 00:27:13 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-10-12 00:27:13 +0000 |
| commit | f3f08c2854c564534ad3390b047110b300246eea (patch) | |
| tree | 0208f99f8ea03134d13ac76f828fe681bd805b39 /src | |
| parent | 3c46399248132d63c4662855c504ea7b0518de4a (diff) | |
| download | emacs-f3f08c2854c564534ad3390b047110b300246eea.tar.gz emacs-f3f08c2854c564534ad3390b047110b300246eea.zip | |
* nsmenu.m (EmacsMenu-addItemWithWidgetValue:): Use NSInteger
where appropriate.
(EmacsToolbar-addDisplayItemWithImage:idx:helpText:enabled:): Use
stringWithUTF8String.
(EmacsDialogPanel-initWithContentRect:styleMask:): Fix signature.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsmenu.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index f6603ce8c37..937073f074b 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -658,7 +658,7 @@ name_is_separator (name) | |||
| 658 | else | 658 | else |
| 659 | [item setState: NSOffState]; | 659 | [item setState: NSOffState]; |
| 660 | 660 | ||
| 661 | [item setTag: (int)wv->call_data]; | 661 | [item setTag: (NSInteger)wv->call_data]; |
| 662 | } | 662 | } |
| 663 | 663 | ||
| 664 | return item; | 664 | return item; |
| @@ -1336,7 +1336,7 @@ update_frame_tool_bar (FRAME_PTR f) | |||
| 1336 | item = [[[NSToolbarItem alloc] initWithItemIdentifier: identifier] | 1336 | item = [[[NSToolbarItem alloc] initWithItemIdentifier: identifier] |
| 1337 | autorelease]; | 1337 | autorelease]; |
| 1338 | [item setImage: img]; | 1338 | [item setImage: img]; |
| 1339 | [item setToolTip: [NSString stringWithCString: help]]; | 1339 | [item setToolTip: [NSString stringWithUTF8String: help]]; |
| 1340 | [item setTarget: emacsView]; | 1340 | [item setTarget: emacsView]; |
| 1341 | [item setAction: @selector (toolbarClicked:)]; | 1341 | [item setAction: @selector (toolbarClicked:)]; |
| 1342 | } | 1342 | } |
| @@ -1615,7 +1615,7 @@ ns_popup_dialog (Lisp_Object position, Lisp_Object contents, Lisp_Object header) | |||
| 1615 | #define TEXTHEIGHT 20.0 | 1615 | #define TEXTHEIGHT 20.0 |
| 1616 | #define MINCELLWIDTH 90.0 | 1616 | #define MINCELLWIDTH 90.0 |
| 1617 | 1617 | ||
| 1618 | - initWithContentRect: (NSRect)contentRect styleMask: (unsigned int)aStyle | 1618 | - initWithContentRect: (NSRect)contentRect styleMask: (NSUInteger)aStyle |
| 1619 | backing: (NSBackingStoreType)backingType defer: (BOOL)flag | 1619 | backing: (NSBackingStoreType)backingType defer: (BOOL)flag |
| 1620 | { | 1620 | { |
| 1621 | NSSize spacing = {SPACER, SPACER}; | 1621 | NSSize spacing = {SPACER, SPACER}; |