|
Karsten Hopp |
6a5e3a |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
6a5e3a |
Subject: Patch 7.3.059
|
|
Karsten Hopp |
6a5e3a |
Fcc: outbox
|
|
Karsten Hopp |
6a5e3a |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
6a5e3a |
Mime-Version: 1.0
|
|
Karsten Hopp |
6a5e3a |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
6a5e3a |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
6a5e3a |
------------
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
Patch 7.3.059
|
|
Karsten Hopp |
6a5e3a |
Problem: Netbeans: Problem with recursively handling messages for Athena
|
|
Karsten Hopp |
6a5e3a |
and Motif.
|
|
Karsten Hopp |
6a5e3a |
Solution: Call netbeans_parse_messages() in the main loop, like it's done
|
|
Karsten Hopp |
6a5e3a |
for GTK. (Xavier de Gaye)
|
|
Karsten Hopp |
6a5e3a |
Files: src/gui_x11.c, src/netbeans.c
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
*** ../vim-7.3.058/src/gui_x11.c 2010-08-15 21:57:25.000000000 +0200
|
|
Karsten Hopp |
6a5e3a |
--- src/gui_x11.c 2010-11-16 14:53:18.000000000 +0100
|
|
Karsten Hopp |
6a5e3a |
***************
|
|
Karsten Hopp |
6a5e3a |
*** 2895,2900 ****
|
|
Karsten Hopp |
6a5e3a |
--- 2895,2905 ----
|
|
Karsten Hopp |
6a5e3a |
focus = gui.in_focus;
|
|
Karsten Hopp |
6a5e3a |
}
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
+ #if defined(FEAT_NETBEANS_INTG)
|
|
Karsten Hopp |
6a5e3a |
+ /* Process any queued netbeans messages. */
|
|
Karsten Hopp |
6a5e3a |
+ netbeans_parse_messages();
|
|
Karsten Hopp |
6a5e3a |
+ #endif
|
|
Karsten Hopp |
6a5e3a |
+
|
|
Karsten Hopp |
6a5e3a |
/*
|
|
Karsten Hopp |
6a5e3a |
* Don't use gui_mch_update() because then we will spin-lock until a
|
|
Karsten Hopp |
6a5e3a |
* char arrives, instead we use XtAppProcessEvent() to hang until an
|
|
Karsten Hopp |
6a5e3a |
*** ../vim-7.3.058/src/netbeans.c 2010-09-30 21:03:13.000000000 +0200
|
|
Karsten Hopp |
6a5e3a |
--- src/netbeans.c 2010-11-16 14:52:55.000000000 +0100
|
|
Karsten Hopp |
6a5e3a |
***************
|
|
Karsten Hopp |
6a5e3a |
*** 726,734 ****
|
|
Karsten Hopp |
6a5e3a |
static char_u *buf = NULL;
|
|
Karsten Hopp |
6a5e3a |
int len = 0;
|
|
Karsten Hopp |
6a5e3a |
int readlen = 0;
|
|
Karsten Hopp |
6a5e3a |
- #if defined(NB_HAS_GUI) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)
|
|
Karsten Hopp |
6a5e3a |
- static int level = 0;
|
|
Karsten Hopp |
6a5e3a |
- #endif
|
|
Karsten Hopp |
6a5e3a |
#ifdef HAVE_SELECT
|
|
Karsten Hopp |
6a5e3a |
struct timeval tval;
|
|
Karsten Hopp |
6a5e3a |
fd_set rfds;
|
|
Karsten Hopp |
6a5e3a |
--- 726,731 ----
|
|
Karsten Hopp |
6a5e3a |
***************
|
|
Karsten Hopp |
6a5e3a |
*** 744,756 ****
|
|
Karsten Hopp |
6a5e3a |
return;
|
|
Karsten Hopp |
6a5e3a |
}
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
- #if defined(NB_HAS_GUI) && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)
|
|
Karsten Hopp |
6a5e3a |
- /* recursion guard; this will be called from the X event loop at unknown
|
|
Karsten Hopp |
6a5e3a |
- * moments */
|
|
Karsten Hopp |
6a5e3a |
- if (NB_HAS_GUI)
|
|
Karsten Hopp |
6a5e3a |
- ++level;
|
|
Karsten Hopp |
6a5e3a |
- #endif
|
|
Karsten Hopp |
6a5e3a |
-
|
|
Karsten Hopp |
6a5e3a |
/* Allocate a buffer to read into. */
|
|
Karsten Hopp |
6a5e3a |
if (buf == NULL)
|
|
Karsten Hopp |
6a5e3a |
{
|
|
Karsten Hopp |
6a5e3a |
--- 741,746 ----
|
|
Karsten Hopp |
6a5e3a |
***************
|
|
Karsten Hopp |
6a5e3a |
*** 803,823 ****
|
|
Karsten Hopp |
6a5e3a |
return; /* don't try to parse it */
|
|
Karsten Hopp |
6a5e3a |
}
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
! #if defined(NB_HAS_GUI) && !defined(FEAT_GUI_W32)
|
|
Karsten Hopp |
6a5e3a |
! /* Let the main loop handle messages. */
|
|
Karsten Hopp |
6a5e3a |
! if (NB_HAS_GUI)
|
|
Karsten Hopp |
6a5e3a |
! {
|
|
Karsten Hopp |
6a5e3a |
! # ifdef FEAT_GUI_GTK
|
|
Karsten Hopp |
6a5e3a |
! if (gtk_main_level() > 0)
|
|
Karsten Hopp |
6a5e3a |
! gtk_main_quit();
|
|
Karsten Hopp |
6a5e3a |
! # else
|
|
Karsten Hopp |
6a5e3a |
! /* Parse the messages now, but avoid recursion. */
|
|
Karsten Hopp |
6a5e3a |
! if (level == 1)
|
|
Karsten Hopp |
6a5e3a |
! netbeans_parse_messages();
|
|
Karsten Hopp |
6a5e3a |
!
|
|
Karsten Hopp |
6a5e3a |
! --level;
|
|
Karsten Hopp |
6a5e3a |
! # endif
|
|
Karsten Hopp |
6a5e3a |
! }
|
|
Karsten Hopp |
6a5e3a |
#endif
|
|
Karsten Hopp |
6a5e3a |
}
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
--- 793,801 ----
|
|
Karsten Hopp |
6a5e3a |
return; /* don't try to parse it */
|
|
Karsten Hopp |
6a5e3a |
}
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
! #if defined(NB_HAS_GUI) && defined(FEAT_GUI_GTK)
|
|
Karsten Hopp |
6a5e3a |
! if (NB_HAS_GUI && gtk_main_level() > 0)
|
|
Karsten Hopp |
6a5e3a |
! gtk_main_quit();
|
|
Karsten Hopp |
6a5e3a |
#endif
|
|
Karsten Hopp |
6a5e3a |
}
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
*** ../vim-7.3.058/src/version.c 2010-11-16 14:46:14.000000000 +0100
|
|
Karsten Hopp |
6a5e3a |
--- src/version.c 2010-11-16 14:50:57.000000000 +0100
|
|
Karsten Hopp |
6a5e3a |
***************
|
|
Karsten Hopp |
6a5e3a |
*** 716,717 ****
|
|
Karsten Hopp |
6a5e3a |
--- 716,719 ----
|
|
Karsten Hopp |
6a5e3a |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
6a5e3a |
+ /**/
|
|
Karsten Hopp |
6a5e3a |
+ 59,
|
|
Karsten Hopp |
6a5e3a |
/**/
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
--
|
|
Karsten Hopp |
6a5e3a |
ARTHUR: If you do not open these doors, we will take this castle by force ...
|
|
Karsten Hopp |
6a5e3a |
[A bucket of slops land on ARTHUR. He tries to retain his dignity.]
|
|
Karsten Hopp |
6a5e3a |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
6a5e3a |
|
|
Karsten Hopp |
6a5e3a |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
6a5e3a |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
6a5e3a |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
6a5e3a |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|