Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion On Ubuntu 12.04, GTK Gvim doesn't work properly.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Yukihiro Nakadaira  
View profile  
 More options Apr 29 2012, 5:28 am
From: Yukihiro Nakadaira <yukihiro.nakada...@gmail.com>
Date: Sun, 29 Apr 2012 18:28:27 +0900
Local: Sun, Apr 29 2012 5:28 am
Subject: On Ubuntu 12.04, GTK Gvim doesn't work properly.
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 - yukihiro.nakada...@gmail.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.