]> granicus.if.org Git - vim/commitdiff
patch 7.4.1138 v7.4.1138
authorBram Moolenaar <Bram@vim.org>
Tue, 19 Jan 2016 16:47:25 +0000 (17:47 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 19 Jan 2016 16:47:25 +0000 (17:47 +0100)
Problem:    When running gvim in the foreground some icons are missing.
            (Taylor Venable)
Solution:   Move the call to gui_gtk_register_resource(). (Kazunobu Kuriyama)

src/gui_gtk_x11.c
src/version.c

index 9967795e07949325083eea0400ef260663b59a99..8a718ac5d58fb1475e7148fbfdd27c6f7335e909 100644 (file)
@@ -1437,9 +1437,6 @@ gui_mch_early_init_check(void)
        EMSG(_((char *)e_opendisp));
        return FAIL;
     }
-#ifdef USE_GRESOURCE
-    gui_gtk_register_resource();
-#endif
     return OK;
 }
 
@@ -1451,6 +1448,18 @@ gui_mch_early_init_check(void)
     int
 gui_mch_init_check(void)
 {
+#ifdef USE_GRESOURCE
+    static int res_registered = FALSE;
+
+    if (!res_registered)
+    {
+       /* Call this function in the GUI process; otherwise, the resources
+        * won't be available.  Don't call it twice. */
+       res_registered = TRUE;
+       gui_gtk_register_resource();
+    }
+#endif
+
 #ifdef FEAT_GUI_GNOME
     if (gtk_socket_id == 0)
        using_gnome = 1;
index 845158b1f16acb122e953d5fa8ec22b741a110f2..d42a23777670ec0ccc832fa7238fd5e85b73ad0e 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1138,
 /**/
     1137,
 /**/