diff options
| author | David Reitter | 2009-03-12 01:57:50 +0000 |
|---|---|---|
| committer | David Reitter | 2009-03-12 01:57:50 +0000 |
| commit | a9f586142a53670ebbe034b97619822102afc2de (patch) | |
| tree | 4d9635b9b07b86a11dedce689f29a77e562d653d /src | |
| parent | 83d92ee0cfd849a87c8798076c27b257122a99bc (diff) | |
| download | emacs-a9f586142a53670ebbe034b97619822102afc2de.tar.gz emacs-a9f586142a53670ebbe034b97619822102afc2de.zip | |
newFrame, openFile, fulfillService, changeFont, toggleToolbar, performDragOperation, runHelp: use the new NS_NONKEY_EVENT event type.
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index 1b7301084d0..9bc063e3054 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -4117,7 +4117,7 @@ ns_term_shutdown (int sig) | |||
| 4117 | 4117 | ||
| 4118 | if (!emacs_event) | 4118 | if (!emacs_event) |
| 4119 | return; | 4119 | return; |
| 4120 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 4120 | emacs_event->kind = NS_NONKEY_EVENT; |
| 4121 | emacs_event->code = KEY_NS_NEW_FRAME; | 4121 | emacs_event->code = KEY_NS_NEW_FRAME; |
| 4122 | emacs_event->modifiers = 0; | 4122 | emacs_event->modifiers = 0; |
| 4123 | EV_TRAILER (theEvent); | 4123 | EV_TRAILER (theEvent); |
| @@ -4133,7 +4133,7 @@ ns_term_shutdown (int sig) | |||
| 4133 | if (!emacs_event) | 4133 | if (!emacs_event) |
| 4134 | return NO; | 4134 | return NO; |
| 4135 | 4135 | ||
| 4136 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 4136 | emacs_event->kind = NS_NONKEY_EVENT; |
| 4137 | emacs_event->code = KEY_NS_OPEN_FILE_LINE; | 4137 | emacs_event->code = KEY_NS_OPEN_FILE_LINE; |
| 4138 | ns_input_file = append2 (ns_input_file, build_string ([fileName UTF8String])); | 4138 | ns_input_file = append2 (ns_input_file, build_string ([fileName UTF8String])); |
| 4139 | ns_input_line = Qnil; /* can be start or cons start,end */ | 4139 | ns_input_line = Qnil; /* can be start or cons start,end */ |
| @@ -4358,7 +4358,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 4358 | if (!emacs_event) | 4358 | if (!emacs_event) |
| 4359 | return NO; | 4359 | return NO; |
| 4360 | 4360 | ||
| 4361 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 4361 | emacs_event->kind = NS_NONKEY_EVENT; |
| 4362 | emacs_event->code = KEY_NS_SPI_SERVICE_CALL; | 4362 | emacs_event->code = KEY_NS_SPI_SERVICE_CALL; |
| 4363 | ns_input_spi_name = build_string ([name UTF8String]); | 4363 | ns_input_spi_name = build_string ([name UTF8String]); |
| 4364 | ns_input_spi_arg = build_string ([arg UTF8String]); | 4364 | ns_input_spi_arg = build_string ([arg UTF8String]); |
| @@ -4414,7 +4414,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 4414 | { | 4414 | { |
| 4415 | SET_FRAME_GARBAGED (emacsframe); /* now needed as of 2008/10 */ | 4415 | SET_FRAME_GARBAGED (emacsframe); /* now needed as of 2008/10 */ |
| 4416 | 4416 | ||
| 4417 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 4417 | emacs_event->kind = NS_NONKEY_EVENT; |
| 4418 | emacs_event->modifiers = 0; | 4418 | emacs_event->modifiers = 0; |
| 4419 | emacs_event->code = KEY_NS_CHANGE_FONT; | 4419 | emacs_event->code = KEY_NS_CHANGE_FONT; |
| 4420 | 4420 | ||
| @@ -5453,7 +5453,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5453 | if (!emacs_event) | 5453 | if (!emacs_event) |
| 5454 | return self; | 5454 | return self; |
| 5455 | 5455 | ||
| 5456 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 5456 | emacs_event->kind = NS_NONKEY_EVENT; |
| 5457 | emacs_event->code = KEY_NS_TOGGLE_TOOLBAR; | 5457 | emacs_event->code = KEY_NS_TOGGLE_TOOLBAR; |
| 5458 | EV_TRAILER ((id)nil); | 5458 | EV_TRAILER ((id)nil); |
| 5459 | return self; | 5459 | return self; |
| @@ -5527,7 +5527,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5527 | fenum = [files objectEnumerator]; | 5527 | fenum = [files objectEnumerator]; |
| 5528 | while ( (file = [fenum nextObject]) ) | 5528 | while ( (file = [fenum nextObject]) ) |
| 5529 | { | 5529 | { |
| 5530 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 5530 | emacs_event->kind = NS_NONKEY_EVENT; |
| 5531 | emacs_event->code = KEY_NS_DRAG_FILE; | 5531 | emacs_event->code = KEY_NS_DRAG_FILE; |
| 5532 | XSETINT (emacs_event->x, x); | 5532 | XSETINT (emacs_event->x, x); |
| 5533 | XSETINT (emacs_event->y, y); | 5533 | XSETINT (emacs_event->y, y); |
| @@ -5548,7 +5548,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5548 | return NO; | 5548 | return NO; |
| 5549 | 5549 | ||
| 5550 | file = [fileURL path]; | 5550 | file = [fileURL path]; |
| 5551 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 5551 | emacs_event->kind = NS_NONKEY_EVENT; |
| 5552 | emacs_event->code = KEY_NS_DRAG_FILE; | 5552 | emacs_event->code = KEY_NS_DRAG_FILE; |
| 5553 | XSETINT (emacs_event->x, x); | 5553 | XSETINT (emacs_event->x, x); |
| 5554 | XSETINT (emacs_event->y, y); | 5554 | XSETINT (emacs_event->y, y); |
| @@ -5565,7 +5565,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5565 | if (! (data = [pb stringForType: type])) | 5565 | if (! (data = [pb stringForType: type])) |
| 5566 | return NO; | 5566 | return NO; |
| 5567 | 5567 | ||
| 5568 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 5568 | emacs_event->kind = NS_NONKEY_EVENT; |
| 5569 | emacs_event->code = KEY_NS_DRAG_TEXT; | 5569 | emacs_event->code = KEY_NS_DRAG_TEXT; |
| 5570 | XSETINT (emacs_event->x, x); | 5570 | XSETINT (emacs_event->x, x); |
| 5571 | XSETINT (emacs_event->y, y); | 5571 | XSETINT (emacs_event->y, y); |
| @@ -5577,7 +5577,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5577 | else if ([type isEqualToString: NSColorPboardType]) | 5577 | else if ([type isEqualToString: NSColorPboardType]) |
| 5578 | { | 5578 | { |
| 5579 | NSColor *c = [NSColor colorFromPasteboard: pb]; | 5579 | NSColor *c = [NSColor colorFromPasteboard: pb]; |
| 5580 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 5580 | emacs_event->kind = NS_NONKEY_EVENT; |
| 5581 | emacs_event->code = KEY_NS_DRAG_COLOR; | 5581 | emacs_event->code = KEY_NS_DRAG_COLOR; |
| 5582 | XSETINT (emacs_event->x, x); | 5582 | XSETINT (emacs_event->x, x); |
| 5583 | XSETINT (emacs_event->y, y); | 5583 | XSETINT (emacs_event->y, y); |
| @@ -5597,7 +5597,7 @@ extern void update_window_cursor (struct window *w, int on); | |||
| 5597 | if (font == nil) | 5597 | if (font == nil) |
| 5598 | return NO; | 5598 | return NO; |
| 5599 | 5599 | ||
| 5600 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 5600 | emacs_event->kind = NS_NONKEY_EVENT; |
| 5601 | emacs_event->code = KEY_NS_CHANGE_FONT; | 5601 | emacs_event->code = KEY_NS_CHANGE_FONT; |
| 5602 | XSETINT (emacs_event->x, x); | 5602 | XSETINT (emacs_event->x, x); |
| 5603 | XSETINT (emacs_event->y, y); | 5603 | XSETINT (emacs_event->y, y); |
| @@ -6303,7 +6303,7 @@ static void selectItemWithTag (NSPopUpButton *popup, int tag) | |||
| 6303 | if (!emacs_event) | 6303 | if (!emacs_event) |
| 6304 | return; | 6304 | return; |
| 6305 | ns_raise_frame(frame); | 6305 | ns_raise_frame(frame); |
| 6306 | emacs_event->kind = NON_ASCII_KEYSTROKE_EVENT; | 6306 | emacs_event->kind = NS_NONKEY_EVENT; |
| 6307 | emacs_event->code = KEY_NS_INFO_PREFS; | 6307 | emacs_event->code = KEY_NS_INFO_PREFS; |
| 6308 | EV_TRAILER ((id)nil); | 6308 | EV_TRAILER ((id)nil); |
| 6309 | } | 6309 | } |