comparison runtime/doc/gui.txt @ 8218:3456e2ebebd4 v7.4.1402

commit https://github.com/vim/vim/commit/9892189d2e7ab94b750f99e6da4cbfc3c8014517 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 23 17:14:37 2016 +0100 patch 7.4.1402 Problem: GTK 3 is not supported. Solution: Add GTK 3 support. (Kazunobu Kuriyama)
author Christian Brabandt <cb@256bit.org>
date Tue, 23 Feb 2016 17:15:05 +0100
parents c2098c3095e7
children 9f48eab77d62
comparison
equal deleted inserted replaced
8217:c52abf35df88 8218:3456e2ebebd4
23 ============================================================================== 23 ==============================================================================
24 1. Starting the GUI *gui-start* *E229* *E233* 24 1. Starting the GUI *gui-start* *E229* *E233*
25 25
26 First you must make sure you actually have a version of Vim with the GUI code 26 First you must make sure you actually have a version of Vim with the GUI code
27 included. You can check this with the ":version" command, it says "with xxx 27 included. You can check this with the ":version" command, it says "with xxx
28 GUI", where "xxx" is X11-Motif, X11-Athena, Photon, GTK, GTK2, etc., or 28 GUI", where "xxx" is X11-Motif, X11-Athena, Photon, GTK2, GTK3, etc., or
29 "MS-Windows 32 bit GUI version". 29 "MS-Windows 32 bit GUI version".
30 30
31 How to start the GUI depends on the system used. Mostly you can run the 31 How to start the GUI depends on the system used. Mostly you can run the
32 GUI version of Vim with: 32 GUI version of Vim with:
33 gvim [options] [files...] 33 gvim [options] [files...]
512 Pressing <F4> will start the menu. You can now use the cursor keys to select 512 Pressing <F4> will start the menu. You can now use the cursor keys to select
513 a menu entry. Hit <Enter> to execute it. Hit <Esc> if you want to cancel. 513 a menu entry. Hit <Enter> to execute it. Hit <Esc> if you want to cancel.
514 This does require the |+menu| feature enabled at compile time. 514 This does require the |+menu| feature enabled at compile time.
515 515
516 *tear-off-menus* 516 *tear-off-menus*
517 GTK+ and Motif support Tear-off menus. These are sort of sticky menus or 517 GTK+ 2 and Motif support Tear-off menus. These are sort of sticky menus or
518 pop-up menus that are present all the time. If the resizing does not work 518 pop-up menus that are present all the time. If the resizing does not work
519 correctly, this may be caused by using something like "Vim*geometry" in the 519 correctly, this may be caused by using something like "Vim*geometry" in the
520 defaults. Use "Vim.geometry" instead. 520 defaults. Use "Vim.geometry" instead.
521
522 As to GTK+ 3, tear-off menus have been deprecated since GTK+ 3.4.
523 Accordingly, they are disabled if gvim is linked against GTK+ 3.4 or later.
521 524
522 The Win32 GUI version emulates Motif's tear-off menus. Actually, a Motif user 525 The Win32 GUI version emulates Motif's tear-off menus. Actually, a Motif user
523 will spot the differences easily, but hopefully they're just as useful. You 526 will spot the differences easily, but hopefully they're just as useful. You
524 can also use the |:tearoff| command together with |hidden-menus| to create 527 can also use the |:tearoff| command together with |hidden-menus| to create
525 floating menus that do not appear on the main menu bar. 528 floating menus that do not appear on the main menu bar.
648 651
649 When no or zero priority is given, 500 is used. 652 When no or zero priority is given, 500 is used.
650 The priority for the PopUp menu is not used. 653 The priority for the PopUp menu is not used.
651 654
652 The Help menu will be placed on the far right side of the menu bar on systems 655 The Help menu will be placed on the far right side of the menu bar on systems
653 which support this (Motif and GTK+). For GTK+ 2, this is not done anymore 656 which support this (Motif and GTK+). For GTK+ 2 and 3, this is not done
654 because right-aligning the Help menu is now discouraged UI design. 657 anymore because right-aligning the Help menu is now discouraged UI design.
655 658
656 You can use a priority higher than 9999, to make it go after the Help menu, 659 You can use a priority higher than 9999, to make it go after the Help menu,
657 but that is non-standard and is discouraged. The highest possible priority is 660 but that is non-standard and is discouraged. The highest possible priority is
658 about 32000. The lowest is 1. 661 about 32000. The lowest is 1.
659 662