f66e7a6
To: vim-dev@vim.org
f66e7a6
Subject: Patch 7.3.016
f66e7a6
Fcc: outbox
f66e7a6
From: Bram Moolenaar <Bram@moolenaar.net>
f66e7a6
Mime-Version: 1.0
f66e7a6
Content-Type: text/plain; charset=UTF-8
f66e7a6
Content-Transfer-Encoding: 8bit
f66e7a6
------------
f66e7a6
f66e7a6
Patch 7.3.016
f66e7a6
Problem:    Netbeans doesn't work under Athena.
f66e7a6
Solution:   Support Athena, just like Motif. (Xavier de Gaye)
f66e7a6
Files:      runtime/doc/netbeans.txt, src/gui.c, src/main.c, src/netbeans.c
f66e7a6
f66e7a6
f66e7a6
*** ../vim-7.3.015/runtime/doc/netbeans.txt	2010-08-15 21:57:13.000000000 +0200
f66e7a6
--- runtime/doc/netbeans.txt	2010-09-29 17:13:43.000000000 +0200
f66e7a6
***************
f66e7a6
*** 1,4 ****
f66e7a6
! *netbeans.txt*  For Vim version 7.3.  Last change: 2010 Jul 20
f66e7a6
  
f66e7a6
  
f66e7a6
  		  VIM REFERENCE MANUAL    by Gordon Prieur et al.
f66e7a6
--- 1,4 ----
f66e7a6
! *netbeans.txt*  For Vim version 7.3.  Last change: 2010 Aug 20
f66e7a6
  
f66e7a6
  
f66e7a6
  		  VIM REFERENCE MANUAL    by Gordon Prieur et al.
f66e7a6
***************
f66e7a6
*** 118,124 ****
f66e7a6
  uncommenting a line with "--disable-netbeans" in the Makefile.
f66e7a6
  
f66e7a6
  Currently the NetBeans interface is supported by Vim running in a terminal and
f66e7a6
! by GVim when it is run with one of the following GUIs: GTK, GNOME, and Motif.
f66e7a6
  
f66e7a6
  If Motif support is required the user must supply XPM libraries.  See
f66e7a6
  |workshop-xpm| for details on obtaining the latest version of XPM.
f66e7a6
--- 118,125 ----
f66e7a6
  uncommenting a line with "--disable-netbeans" in the Makefile.
f66e7a6
  
f66e7a6
  Currently the NetBeans interface is supported by Vim running in a terminal and
f66e7a6
! by GVim when it is run with one of the following GUIs: GTK, GNOME, Windows,
f66e7a6
! Athena and Motif.
f66e7a6
  
f66e7a6
  If Motif support is required the user must supply XPM libraries.  See
f66e7a6
  |workshop-xpm| for details on obtaining the latest version of XPM.
f66e7a6
*** ../vim-7.3.015/src/gui.c	2010-08-15 21:57:28.000000000 +0200
f66e7a6
--- src/gui.c	2010-09-29 17:13:43.000000000 +0200
f66e7a6
***************
f66e7a6
*** 2352,2358 ****
f66e7a6
      if (draw_sign)
f66e7a6
  	/* Draw the sign on top of the spaces. */
f66e7a6
  	gui_mch_drawsign(gui.row, col, gui.highlight_mask);
f66e7a6
! # if defined(FEAT_NETBEANS_INTG) && (defined(FEAT_GUI_MOTIF) \
f66e7a6
  	|| defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32))
f66e7a6
      if (multi_sign)
f66e7a6
  	netbeans_draw_multisign_indicator(gui.row);
f66e7a6
--- 2352,2358 ----
f66e7a6
      if (draw_sign)
f66e7a6
  	/* Draw the sign on top of the spaces. */
f66e7a6
  	gui_mch_drawsign(gui.row, col, gui.highlight_mask);
f66e7a6
! # if defined(FEAT_NETBEANS_INTG) && (defined(FEAT_GUI_X11) \
f66e7a6
  	|| defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32))
f66e7a6
      if (multi_sign)
f66e7a6
  	netbeans_draw_multisign_indicator(gui.row);
f66e7a6
*** ../vim-7.3.015/src/main.c	2010-08-15 21:57:28.000000000 +0200
f66e7a6
--- src/main.c	2010-09-29 17:13:43.000000000 +0200
f66e7a6
***************
f66e7a6
*** 940,946 ****
f66e7a6
      if (netbeansArg != NULL && strncmp("-nb", netbeansArg, 3) == 0)
f66e7a6
      {
f66e7a6
  # ifdef FEAT_GUI
f66e7a6
! #  if !defined(FEAT_GUI_MOTIF) && !defined(FEAT_GUI_GTK)  \
f66e7a6
  		&& !defined(FEAT_GUI_W32)
f66e7a6
  	if (gui.in_use)
f66e7a6
  	{
f66e7a6
--- 940,946 ----
f66e7a6
      if (netbeansArg != NULL && strncmp("-nb", netbeansArg, 3) == 0)
f66e7a6
      {
f66e7a6
  # ifdef FEAT_GUI
f66e7a6
! #  if !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK)  \
f66e7a6
  		&& !defined(FEAT_GUI_W32)
f66e7a6
  	if (gui.in_use)
f66e7a6
  	{
f66e7a6
*** ../vim-7.3.015/src/netbeans.c	2010-08-15 21:57:26.000000000 +0200
f66e7a6
--- src/netbeans.c	2010-09-29 17:13:43.000000000 +0200
f66e7a6
***************
f66e7a6
*** 87,93 ****
f66e7a6
  static void nb_init_graphics __ARGS((void));
f66e7a6
  static void coloncmd __ARGS((char *cmd, ...));
f66e7a6
  static void nb_set_curbuf __ARGS((buf_T *buf));
f66e7a6
! #ifdef FEAT_GUI_MOTIF
f66e7a6
  static void messageFromNetbeans __ARGS((XtPointer, int *, XtInputId *));
f66e7a6
  #endif
f66e7a6
  #ifdef FEAT_GUI_GTK
f66e7a6
--- 87,93 ----
f66e7a6
  static void nb_init_graphics __ARGS((void));
f66e7a6
  static void coloncmd __ARGS((char *cmd, ...));
f66e7a6
  static void nb_set_curbuf __ARGS((buf_T *buf));
f66e7a6
! #ifdef FEAT_GUI_X11
f66e7a6
  static void messageFromNetbeans __ARGS((XtPointer, int *, XtInputId *));
f66e7a6
  #endif
f66e7a6
  #ifdef FEAT_GUI_GTK
f66e7a6
***************
f66e7a6
*** 112,118 ****
f66e7a6
  static NBSOCK nbsock = -1;		/* socket fd for Netbeans connection */
f66e7a6
  #define NETBEANS_OPEN (nbsock != -1)
f66e7a6
  
f66e7a6
! #ifdef FEAT_GUI_MOTIF
f66e7a6
  static XtInputId inputHandler = (XtInputId)NULL;  /* Cookie for input */
f66e7a6
  #endif
f66e7a6
  #ifdef FEAT_GUI_GTK
f66e7a6
--- 112,118 ----
f66e7a6
  static NBSOCK nbsock = -1;		/* socket fd for Netbeans connection */
f66e7a6
  #define NETBEANS_OPEN (nbsock != -1)
f66e7a6
  
f66e7a6
! #ifdef FEAT_GUI_X11
f66e7a6
  static XtInputId inputHandler = (XtInputId)NULL;  /* Cookie for input */
f66e7a6
  #endif
f66e7a6
  #ifdef FEAT_GUI_GTK
f66e7a6
***************
f66e7a6
*** 143,149 ****
f66e7a6
  
f66e7a6
      netbeans_send_disconnect();
f66e7a6
  
f66e7a6
! #ifdef FEAT_GUI_MOTIF
f66e7a6
      if (inputHandler != (XtInputId)NULL)
f66e7a6
      {
f66e7a6
  	XtRemoveInput(inputHandler);
f66e7a6
--- 143,149 ----
f66e7a6
  
f66e7a6
      netbeans_send_disconnect();
f66e7a6
  
f66e7a6
! #ifdef FEAT_GUI_X11
f66e7a6
      if (inputHandler != (XtInputId)NULL)
f66e7a6
      {
f66e7a6
  	XtRemoveInput(inputHandler);
f66e7a6
***************
f66e7a6
*** 700,706 ****
f66e7a6
  /*
f66e7a6
   * Read a command from netbeans.
f66e7a6
   */
f66e7a6
! #ifdef FEAT_GUI_MOTIF
f66e7a6
      static void
f66e7a6
  messageFromNetbeans(XtPointer clientData UNUSED,
f66e7a6
  		    int *unused1 UNUSED,
f66e7a6
--- 700,706 ----
f66e7a6
  /*
f66e7a6
   * Read a command from netbeans.
f66e7a6
   */
f66e7a6
! #ifdef FEAT_GUI_X11
f66e7a6
      static void
f66e7a6
  messageFromNetbeans(XtPointer clientData UNUSED,
f66e7a6
  		    int *unused1 UNUSED,
f66e7a6
***************
f66e7a6
*** 2937,2943 ****
f66e7a6
      if (!NB_HAS_GUI || !NETBEANS_OPEN)
f66e7a6
  	return;
f66e7a6
  
f66e7a6
! # ifdef FEAT_GUI_MOTIF
f66e7a6
      /* tell notifier we are interested in being called
f66e7a6
       * when there is input on the editor connection socket
f66e7a6
       */
f66e7a6
--- 2937,2943 ----
f66e7a6
      if (!NB_HAS_GUI || !NETBEANS_OPEN)
f66e7a6
  	return;
f66e7a6
  
f66e7a6
! # ifdef FEAT_GUI_X11
f66e7a6
      /* tell notifier we are interested in being called
f66e7a6
       * when there is input on the editor connection socket
f66e7a6
       */
f66e7a6
***************
f66e7a6
*** 3027,3033 ****
f66e7a6
      }
f66e7a6
  }
f66e7a6
  
f66e7a6
! #if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_W32) || defined(PROTO)
f66e7a6
  /*
f66e7a6
   * Tell netbeans that the window was moved or resized.
f66e7a6
   */
f66e7a6
--- 3027,3033 ----
f66e7a6
      }
f66e7a6
  }
f66e7a6
  
f66e7a6
! #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_W32) || defined(PROTO)
f66e7a6
  /*
f66e7a6
   * Tell netbeans that the window was moved or resized.
f66e7a6
   */
f66e7a6
***************
f66e7a6
*** 3458,3464 ****
f66e7a6
      return FALSE;
f66e7a6
  }
f66e7a6
  
f66e7a6
! #if defined(FEAT_GUI_MOTIF) || defined(PROTO)
f66e7a6
  /*
f66e7a6
   * We have multiple signs to draw at the same location. Draw the
f66e7a6
   * multi-sign indicator instead. This is the Motif version.
f66e7a6
--- 3458,3464 ----
f66e7a6
      return FALSE;
f66e7a6
  }
f66e7a6
  
f66e7a6
! #if defined(FEAT_GUI_X11) || defined(PROTO)
f66e7a6
  /*
f66e7a6
   * We have multiple signs to draw at the same location. Draw the
f66e7a6
   * multi-sign indicator instead. This is the Motif version.
f66e7a6
***************
f66e7a6
*** 3487,3493 ****
f66e7a6
      XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+3, y++);
f66e7a6
      XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+2, y);
f66e7a6
  }
f66e7a6
! #endif /* FEAT_GUI_MOTIF */
f66e7a6
  
f66e7a6
  #if defined(FEAT_GUI_GTK) && !defined(PROTO)
f66e7a6
  /*
f66e7a6
--- 3487,3493 ----
f66e7a6
      XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+3, y++);
f66e7a6
      XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+2, y);
f66e7a6
  }
f66e7a6
! #endif /* FEAT_GUI_X11 */
f66e7a6
  
f66e7a6
  #if defined(FEAT_GUI_GTK) && !defined(PROTO)
f66e7a6
  /*
f66e7a6
*** ../vim-7.3.015/src/version.c	2010-09-29 16:55:45.000000000 +0200
f66e7a6
--- src/version.c	2010-09-29 17:14:47.000000000 +0200
f66e7a6
***************
f66e7a6
*** 716,717 ****
f66e7a6
--- 716,719 ----
f66e7a6
  {   /* Add new patch number below this line */
f66e7a6
+ /**/
f66e7a6
+     16,
f66e7a6
  /**/
f66e7a6
f66e7a6
-- 
f66e7a6
hundred-and-one symptoms of being an internet addict:
f66e7a6
229. You spend so much time thinking what to add on this list.
f66e7a6
f66e7a6
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
f66e7a6
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
f66e7a6
\\\        download, build and distribute -- http://www.A-A-P.org        ///
f66e7a6
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///