comparison src/menu.c @ 11:4424b47a0797

updated for version 7.0003
author vimboss
date Wed, 30 Jun 2004 16:16:41 +0000
parents 3fc0f57ecb91
children 404aac550f35
comparison
equal deleted inserted replaced
10:4e2284e71352 11:4424b47a0797
94 int unmenu; 94 int unmenu;
95 char_u *map_buf; 95 char_u *map_buf;
96 char_u *arg; 96 char_u *arg;
97 char_u *p; 97 char_u *p;
98 int i; 98 int i;
99 #if defined(FEAT_GUI) && !defined(FEAT_GUI_GTK) 99 #if defined(FEAT_GUI) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_KDE)
100 int old_menu_height; 100 int old_menu_height;
101 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_W16) 101 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_W16)
102 int old_toolbar_height; 102 int old_toolbar_height;
103 # endif 103 # endif
104 #endif 104 #endif
318 else if (*map_to != NUL && (unmenu || enable != MAYBE)) 318 else if (*map_to != NUL && (unmenu || enable != MAYBE))
319 { 319 {
320 EMSG(_(e_trailing)); 320 EMSG(_(e_trailing));
321 goto theend; 321 goto theend;
322 } 322 }
323 #if defined(FEAT_GUI) && !(defined(FEAT_GUI_GTK) || defined(FEAT_GUI_PHOTON)) 323 #if defined(FEAT_GUI) && !(defined(FEAT_GUI_GTK) || defined(FEAT_GUI_KDE) || defined(FEAT_GUI_PHOTON))
324 old_menu_height = gui.menu_height; 324 old_menu_height = gui.menu_height;
325 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_W16) 325 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_W16)
326 old_toolbar_height = gui.toolbar_height; 326 old_toolbar_height = gui.toolbar_height;
327 # endif 327 # endif
328 #endif 328 #endif
435 } 435 }
436 436
437 vim_free(map_buf); 437 vim_free(map_buf);
438 } 438 }
439 439
440 #if defined(FEAT_GUI) && !defined(FEAT_GUI_GTK) 440 #if defined(FEAT_GUI) && !(defined(FEAT_GUI_GTK) || defined(FEAT_GUI_KDE))
441 /* If the menubar height changed, resize the window */ 441 /* If the menubar height changed, resize the window */
442 if (gui.in_use 442 if (gui.in_use
443 && (gui.menu_height != old_menu_height 443 && (gui.menu_height != old_menu_height
444 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_W16) 444 # if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_W32) && !defined(FEAT_GUI_W16)
445 || gui.toolbar_height != old_toolbar_height 445 || gui.toolbar_height != old_toolbar_height
1841 gui_mch_activate_window(); 1841 gui_mch_activate_window();
1842 #endif 1842 #endif
1843 } 1843 }
1844 } 1844 }
1845 1845
1846 #if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK) \ 1846 #if defined(FEAT_GUI_MSWIN) || defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_KDE) \
1847 || defined(FEAT_GUI_PHOTON) || defined(PROTO) 1847 || defined(FEAT_GUI_PHOTON) || defined(PROTO)
1848 /* 1848 /*
1849 * Check if a key is used as a mnemonic for a toplevel menu. 1849 * Check if a key is used as a mnemonic for a toplevel menu.
1850 * Case of the key is ignored. 1850 * Case of the key is ignored.
1851 */ 1851 */
2172 else 2172 else
2173 EMSG2(_("E335: Menu not defined for %s mode"), mode); 2173 EMSG2(_("E335: Menu not defined for %s mode"), mode);
2174 } 2174 }
2175 2175
2176 #if defined(FEAT_GUI_MSWIN) \ 2176 #if defined(FEAT_GUI_MSWIN) \
2177 || (defined(FEAT_GUI_KDE) && defined(FEAT_MENU)) \
2177 || (defined(FEAT_GUI_GTK) && defined(FEAT_MENU)) \ 2178 || (defined(FEAT_GUI_GTK) && defined(FEAT_MENU)) \
2178 || defined(FEAT_BEVAL_TIP) || defined(PROTO) 2179 || defined(FEAT_BEVAL_TIP) || defined(PROTO)
2179 /* 2180 /*
2180 * Given a menu descriptor, e.g. "File.New", find it in the menu hierarchy. 2181 * Given a menu descriptor, e.g. "File.New", find it in the menu hierarchy.
2181 */ 2182 */