summaryrefslogtreecommitdiff
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-05-21 12:52:04 +0200
committerBram Moolenaar <Bram@vim.org>2013-05-21 12:52:04 +0200
commit8dd7901a665862790b2e4d49fcc2d235f06769ad (patch)
treedc6885bf694efe23a48ed06085f2e656af77c632 /src/gui_gtk_x11.c
parent9bad29decfea3477a60780926d573b801ceabe51 (diff)
downloadvim-git-8dd7901a665862790b2e4d49fcc2d235f06769ad.tar.gz
updated for version 7.3.985v7.3.985
Problem: GTK vim not started as gvim doesn't set WM_CLASS property to a useful value. Solution: Call g_set_prgname() on startup. (James McCoy)
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index ceade7526..853947c1b 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -1447,6 +1447,11 @@ gui_mch_init_check(void)
using_gnome = 1;
#endif
+ /* This defaults to argv[0], but we want it to match the name of the
+ * shipped gvim.desktop so that Vim's windows can be associated with this
+ * file. */
+ g_set_prgname("gvim");
+
/* Don't use gtk_init() or gnome_init(), it exits on failure. */
if (!gtk_init_check(&gui_argc, &gui_argv))
{