]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.985 v7.3.985
authorBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 10:52:04 +0000 (12:52 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 May 2013 10:52:04 +0000 (12:52 +0200)
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)

src/gui_gtk_x11.c
src/version.c

index ceade7526f2cdc0599bc760f95b49b6837efac26..853947c1bbbbf742df9bc4428204fa52ac3ca8fe 100644 (file)
@@ -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))
     {
index 52d9e71914e1bcd0c49ddeac6416335d2f846684..e74f2d1b0544066952c1abb545ca56e40e0009d9 100644 (file)
@@ -728,6 +728,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    985,
 /**/
     984,
 /**/