diff options
author | Bram Moolenaar <bram@vim.org> | 2013-05-21 12:52:04 +0200 |
---|---|---|
committer | Bram Moolenaar <bram@vim.org> | 2013-05-21 12:52:04 +0200 |
commit | 6fc68b07b52c576282513c51c9080b5c963856fa (patch) | |
tree | be60ec84631f8de1e317b6a76b9027940ecb9c50 | |
parent | 4721a2aea618fd187b010d2aa48b8334ea3eda60 (diff) | |
download | vim-6fc68b07b52c576282513c51c9080b5c963856fa.tar.gz |
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)
-rw-r--r-- | src/gui_gtk_x11.c | 5 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c index ceade752..853947c1 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)) { diff --git a/src/version.c b/src/version.c index 52d9e719..e74f2d1b 100644 --- a/src/version.c +++ b/src/version.c @@ -729,6 +729,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 985, +/**/ 984, /**/ 983, |