Skip to content

Commit 470421a

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 832dc54 + 9e34110 commit 470421a

32 files changed

+3308
-213
lines changed

runtime/doc/eval.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7316,6 +7316,7 @@ gui_athena Compiled with Athena GUI.
73167316
gui_gnome Compiled with Gnome support (gui_gtk is also defined).
73177317
gui_gtk Compiled with GTK+ GUI (any version).
73187318
gui_gtk2 Compiled with GTK+ 2 GUI (gui_gtk is also defined).
7319+
gui_gtk3 Compiled with GTK+ 3 GUI (gui_gtk is also defined).
73197320
gui_mac Compiled with Macintosh GUI.
73207321
gui_macvim Compiled with MacVim GUI.
73217322
gui_motif Compiled with Motif GUI.

runtime/doc/gui.txt

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ Other GUI documentation:
2525

2626
First you must make sure you actually have a version of Vim with the GUI code
2727
included. You can check this with the ":version" command, it says "with xxx
28-
GUI", where "xxx" is Macvim, X11-Motif, X11-Athena, Photon, GTK, GTK2, etc.,
29-
or "MS-Windows 32 bit GUI version".
28+
GUI", where "xxx" is MacVim, X11-Motif, X11-Athena, Photon, GTK2, GTK3, etc., or
29+
"MS-Windows 32 bit GUI version".
3030

3131
How to start the GUI depends on the system used. Mostly you can run the
3232
GUI version of Vim with:
@@ -514,11 +514,14 @@ a menu entry. Hit <Enter> to execute it. Hit <Esc> if you want to cancel.
514514
This does require the |+menu| feature enabled at compile time.
515515

516516
*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
518518
pop-up menus that are present all the time. If the resizing does not work
519519
correctly, this may be caused by using something like "Vim*geometry" in the
520520
defaults. Use "Vim.geometry" instead.
521521

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.
524+
522525
The Win32 GUI version emulates Motif's tear-off menus. Actually, a Motif user
523526
will spot the differences easily, but hopefully they're just as useful. You
524527
can also use the |:tearoff| command together with |hidden-menus| to create
@@ -650,8 +653,8 @@ When no or zero priority is given, 500 is used.
650653
The priority for the PopUp menu is not used.
651654

652655
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
654-
because right-aligning the Help menu is now discouraged UI design.
656+
which support this (Motif and GTK+). For GTK+ 2 and 3, this is not done
657+
anymore because right-aligning the Help menu is now discouraged UI design.
655658

656659
You can use a priority higher than 9999, to make it go after the Help menu,
657660
but that is non-standard and is discouraged. The highest possible priority is

runtime/doc/gui_x11.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,16 @@ Write this in the file ~/.gtkrc and it will be used by GTK+. For GTK+ 2
378378
you might have to use the file ~/.gtkrc-2.0 instead, depending on your
379379
distribution.
380380

381+
For GTK+ 3, an effect similar to the above can be obtained by adding the
382+
following snippet of CSS code to $XDG_HOME_DIR/gtk-3.0/gtk.css (usually,
383+
$HOME/.config/gtk-3.0/gtk.css):
384+
>
385+
.tooltip {
386+
background-color: #ffffcc;
387+
color: #000000;
388+
}
389+
<
390+
381391
Using Vim as a GTK+ plugin *gui-gtk-socketid*
382392

383393
When the GTK+ version of Vim starts up normally, it creates its own top level

0 commit comments

Comments
 (0)