After upgrading my pc to Ubuntu 12.04, gvim breaks.

When starting gvim, it freeze abount 1 or 2 minutes after showing GUI
Window.  Menus is not shown in global menu bar, it is shown in Vim's
window.  Input Method (ibus) doesn't work in gvim.

With -f flag, gvim works normally.

I also tested it with clean installed Ubuntu 12.04 and vim-gtk package.

I guess that it is caused by calling gtk_init_check() before fork().

Perhaps the following code should be removed.  I'm not sure if it is
correct fix.


diff -r 1be42b88900e src/main.c
--- a/src/main.c        Thu Apr 26 20:17:03 2012 +0200
+++ b/src/main.c        Sun Apr 29 18:04:21 2012 +0900
@@ -359,25 +359,6 @@
      */
 #ifdef ALWAYS_USE_GUI
     gui.starting = TRUE;
-#else
-# if defined(FEAT_GUI_X11) || defined(FEAT_GUI_GTK)
-    /*
-     * Check if the GUI can be started.  Reset gui.starting if not.
-     * Don't know about other systems, stay on the safe side and don't check.
-     */
-    if (gui.starting)
-    {
-       if (gui_init_check() == FAIL)
-       {
-           gui.starting = FALSE;
-
-           /* When running "evim" or "gvim -y" we need the menus, exit if we
-            * don't have them. */
-           if (params.evim_mode)
-               mch_exit(1);
-       }
-    }
-# endif
 #endif

     if (GARGCOUNT > 0)



-- 
Yukihiro Nakadaira - [email protected]

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui