1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Netbeans: Problem with recursively handling messages for Athena
13 Solution: Call netbeans_parse_messages() in the main loop, like it's done
14 for GTK. (Xavier de Gaye)
15 Files: src/gui_x11.c, src/netbeans.c
18 *** ../vim-7.3.058/src/gui_x11.c 2010-08-15 21:57:25.000000000 +0200
19 --- src/gui_x11.c 2010-11-16 14:53:18.000000000 +0100
26 + #if defined(FEAT_NETBEANS_INTG)
27 + /* Process any queued netbeans messages. */
28 + netbeans_parse_messages();
32 * Don't use gui_mch_update() because then we will spin-lock until a
33 * char arrives, instead we use XtAppProcessEvent() to hang until an
34 *** ../vim-7.3.058/src/netbeans.c 2010-09-30 21:03:13.000000000 +0200
35 --- src/netbeans.c 2010-11-16 14:52:55.000000000 +0100
38 static char_u *buf = NULL;
41 - #if defined(NB_HAS_GUI) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)
42 - static int level = 0;
53 - #if defined(NB_HAS_GUI) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)
54 - /* recursion guard; this will be called from the X event loop at unknown
60 /* Allocate a buffer to read into. */
66 return; /* don't try to parse it */
69 ! #if defined(NB_HAS_GUI) && !defined(FEAT_GUI_W32)
70 ! /* Let the main loop handle messages. */
73 ! # ifdef FEAT_GUI_GTK
74 ! if (gtk_main_level() > 0)
77 ! /* Parse the messages now, but avoid recursion. */
79 ! netbeans_parse_messages();
88 return; /* don't try to parse it */
91 ! #if defined(NB_HAS_GUI) && defined(FEAT_GUI_GTK)
92 ! if (NB_HAS_GUI && gtk_main_level() > 0)
97 *** ../vim-7.3.058/src/version.c 2010-11-16 14:46:14.000000000 +0100
98 --- src/version.c 2010-11-16 14:50:57.000000000 +0100
102 { /* Add new patch number below this line */
109 ARTHUR: If you do not open these doors, we will take this castle by force ...
110 [A bucket of slops land on ARTHUR. He tries to retain his dignity.]
111 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
113 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
114 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
115 \\\ an exciting new programming language -- http://www.Zimbu.org ///
116 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///