Mercurial > vim
comparison src/gui_mac.c @ 7821:81794242a275 v7.4.1207
commit https://github.com/vim/vim/commit/66f948e928d5e0cd3123af902aa8ac1613534c94
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 16:39:25 2016 +0100
patch 7.4.1207
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 30 Jan 2016 16:45:04 +0100 |
parents | 5f24d6d51333 |
children | 553a4c8dd796 |
comparison
equal
deleted
inserted
replaced
7820:38d22ab3d9a0 | 7821:81794242a275 |
---|---|
2605 * This would be the normal way of invoking the contextual menu | 2605 * This would be the normal way of invoking the contextual menu |
2606 * but the Vim API doesn't seem to a support a request to get | 2606 * but the Vim API doesn't seem to a support a request to get |
2607 * the menu that we should display | 2607 * the menu that we should display |
2608 */ | 2608 */ |
2609 void | 2609 void |
2610 gui_mac_handle_contextual_menu(event) | 2610 gui_mac_handle_contextual_menu(EventRecord *event) |
2611 EventRecord *event; | |
2612 { | 2611 { |
2613 /* | 2612 /* |
2614 * Clone PopUp to use menu | 2613 * Clone PopUp to use menu |
2615 * Create a object descriptor for the current selection | 2614 * Create a object descriptor for the current selection |
2616 * Call the procedure | 2615 * Call the procedure |
3695 | 3694 |
3696 /* | 3695 /* |
3697 * If a font is not going to be used, free its structure. | 3696 * If a font is not going to be used, free its structure. |
3698 */ | 3697 */ |
3699 void | 3698 void |
3700 gui_mch_free_font(font) | 3699 gui_mch_free_font(GuiFont font) |
3701 GuiFont font; | |
3702 { | 3700 { |
3703 /* | 3701 /* |
3704 * Free font when "font" is not 0. | 3702 * Free font when "font" is not 0. |
3705 * Nothing to do in the current implementation, since | 3703 * Nothing to do in the current implementation, since |
3706 * nothing is allocated for each font used. | 3704 * nothing is allocated for each font used. |
6895 | 6893 |
6896 /* | 6894 /* |
6897 * Set the current tab to "nr". First tab is 1. | 6895 * Set the current tab to "nr". First tab is 1. |
6898 */ | 6896 */ |
6899 void | 6897 void |
6900 gui_mch_set_curtab(nr) | 6898 gui_mch_set_curtab(int nr) |
6901 int nr; | |
6902 { | 6899 { |
6903 DataBrowserItemID item = nr; | 6900 DataBrowserItemID item = nr; |
6904 SetDataBrowserSelectedItems(dataBrowser, 1, &item, kDataBrowserItemsAssign); | 6901 SetDataBrowserSelectedItems(dataBrowser, 1, &item, kDataBrowserItemsAssign); |
6905 | 6902 |
6906 // TODO: call something like this?: (or restore scroll position, or...) | 6903 // TODO: call something like this?: (or restore scroll position, or...) |