4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Mac GUI: Missing break statements.
12 Solution: Add the break statements. (Dominique Pelle)
16 *** ../vim-7.3.009/src/gui_mac.c 2010-08-15 21:57:28.000000000 +0200
17 --- src/gui_mac.c 2010-09-21 17:33:13.000000000 +0200
21 * Returns the index inside the menu wher
23 ! short /* Shoulde we return MenuItemIndex? */
24 gui_mac_get_menu_item_index(vimmenu_T *pMenu)
29 * Returns the index inside the menu wher
31 ! short /* Should we return MenuItemIndex? */
32 gui_mac_get_menu_item_index(vimmenu_T *pMenu)
37 p.h += gui.scrollbar_width;
38 if (gui.which_scrollbars[SBAR_RIGHT])
39 p.h += gui.scrollbar_width;
40 ! /* ideal height is as heigh as we can get */
43 thePart = IsWindowInStandardState(whichWindow, &p, &r)
45 p.h += gui.scrollbar_width;
46 if (gui.which_scrollbars[SBAR_RIGHT])
47 p.h += gui.scrollbar_width;
48 ! /* ideal height is as high as we can get */
51 thePart = IsWindowInStandardState(whichWindow, &p, &r)
54 * event arrives. No need to check for input_buf_full because we are
55 * returning as soon as it contains a single char.
57 ! /* TODO: reduce wtime accordinly??? */
59 sleeppyTick = 60 * wtime / 1000;
62 * event arrives. No need to check for input_buf_full because we are
63 * returning as soon as it contains a single char.
65 ! /* TODO: reduce wtime accordingly??? */
67 sleeppyTick = 60 * wtime / 1000;
71 iconDITL = GetResource('DITL', 131);
74 ! case VIM_GENERIC: useIcon = kNoteIcon;
75 ! case VIM_ERROR: useIcon = kStopIcon;
76 ! case VIM_WARNING: useIcon = kCautionIcon;
77 ! case VIM_INFO: useIcon = kNoteIcon;
78 ! case VIM_QUESTION: useIcon = kNoteIcon;
79 ! default: useIcon = kStopIcon;
81 AppendDITL(theDialog, iconDITL, overlayDITL);
82 ReleaseResource(iconDITL);
83 GetDialogItem(theDialog, iconItm.idx, &itemType, &itemHandle, &box);
85 iconDITL = GetResource('DITL', 131);
90 ! case VIM_QUESTION: useIcon = kNoteIcon; break;
91 ! case VIM_WARNING: useIcon = kCautionIcon; break;
92 ! case VIM_ERROR: useIcon = kStopIcon; break;
93 ! default: useIcon = kStopIcon;
95 AppendDITL(theDialog, iconDITL, overlayDITL);
96 ReleaseResource(iconDITL);
97 GetDialogItem(theDialog, iconItm.idx, &itemType, &itemHandle, &box);
103 ! * Usefull thing which could be used
104 * SetDialogTimeout(): Auto click a button after timeout
105 * SetDialogTracksCursor() : Get the I-beam cursor over input box
106 * MoveDialogItem(): Probably better than SetDialogItem
111 ! * Useful thing which could be used
112 * SetDialogTimeout(): Auto click a button after timeout
113 * SetDialogTracksCursor() : Get the I-beam cursor over input box
114 * MoveDialogItem(): Probably better than SetDialogItem
120 ! * Transfered from os_mac.c for MacOS X using os_unix.c prep work
128 ! * Transferred from os_mac.c for MacOS X using os_unix.c prep work
134 static ControlRef dataBrowser = NULL;
136 // when the tabline is hidden, vim doesn't call update_tabline(). When
137 ! // the tabline is shown again, show_tabline() is called before upate_tabline(),
138 // and because of this, the tab labels and vims internal tabs are out of sync
139 // for a very short time. to prevent inconsistent state, we store the labels
140 // of the tabs, not pointers to the tabs (which are invalid for a short time).
142 static ControlRef dataBrowser = NULL;
144 // when the tabline is hidden, vim doesn't call update_tabline(). When
145 ! // the tabline is shown again, show_tabline() is called before update_tabline(),
146 // and because of this, the tab labels and vims internal tabs are out of sync
147 // for a very short time. to prevent inconsistent state, we store the labels
148 // of the tabs, not pointers to the tabs (which are invalid for a short time).
149 *** ../vim-7.3.009/src/version.c 2010-09-21 17:29:19.000000000 +0200
150 --- src/version.c 2010-09-21 17:33:22.000000000 +0200
154 { /* Add new patch number below this line */
160 hundred-and-one symptoms of being an internet addict:
161 182. You may not know what is happening in the world, but you know
162 every bit of net-gossip there is.
164 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
165 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
166 \\\ download, build and distribute -- http://www.A-A-P.org ///
167 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///