4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Netbeans doesn't work under Athena.
12 Solution: Support Athena, just like Motif. (Xavier de Gaye)
13 Files: runtime/doc/netbeans.txt, src/gui.c, src/main.c, src/netbeans.c
16 *** ../vim-7.3.015/runtime/doc/netbeans.txt 2010-08-15 21:57:13.000000000 +0200
17 --- runtime/doc/netbeans.txt 2010-09-29 17:13:43.000000000 +0200
20 ! *netbeans.txt* For Vim version 7.3. Last change: 2010 Jul 20
23 VIM REFERENCE MANUAL by Gordon Prieur et al.
25 ! *netbeans.txt* For Vim version 7.3. Last change: 2010 Aug 20
28 VIM REFERENCE MANUAL by Gordon Prieur et al.
31 uncommenting a line with "--disable-netbeans" in the Makefile.
33 Currently the NetBeans interface is supported by Vim running in a terminal and
34 ! by GVim when it is run with one of the following GUIs: GTK, GNOME, and Motif.
36 If Motif support is required the user must supply XPM libraries. See
37 |workshop-xpm| for details on obtaining the latest version of XPM.
39 uncommenting a line with "--disable-netbeans" in the Makefile.
41 Currently the NetBeans interface is supported by Vim running in a terminal and
42 ! by GVim when it is run with one of the following GUIs: GTK, GNOME, Windows,
45 If Motif support is required the user must supply XPM libraries. See
46 |workshop-xpm| for details on obtaining the latest version of XPM.
47 *** ../vim-7.3.015/src/gui.c 2010-08-15 21:57:28.000000000 +0200
48 --- src/gui.c 2010-09-29 17:13:43.000000000 +0200
52 /* Draw the sign on top of the spaces. */
53 gui_mch_drawsign(gui.row, col, gui.highlight_mask);
54 ! # if defined(FEAT_NETBEANS_INTG) && (defined(FEAT_GUI_MOTIF) \
55 || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32))
57 netbeans_draw_multisign_indicator(gui.row);
60 /* Draw the sign on top of the spaces. */
61 gui_mch_drawsign(gui.row, col, gui.highlight_mask);
62 ! # if defined(FEAT_NETBEANS_INTG) && (defined(FEAT_GUI_X11) \
63 || defined(FEAT_GUI_GTK) || defined(FEAT_GUI_W32))
65 netbeans_draw_multisign_indicator(gui.row);
66 *** ../vim-7.3.015/src/main.c 2010-08-15 21:57:28.000000000 +0200
67 --- src/main.c 2010-09-29 17:13:43.000000000 +0200
70 if (netbeansArg != NULL && strncmp("-nb", netbeansArg, 3) == 0)
73 ! # if !defined(FEAT_GUI_MOTIF) && !defined(FEAT_GUI_GTK) \
74 && !defined(FEAT_GUI_W32)
78 if (netbeansArg != NULL && strncmp("-nb", netbeansArg, 3) == 0)
81 ! # if !defined(FEAT_GUI_X11) && !defined(FEAT_GUI_GTK) \
82 && !defined(FEAT_GUI_W32)
85 *** ../vim-7.3.015/src/netbeans.c 2010-08-15 21:57:26.000000000 +0200
86 --- src/netbeans.c 2010-09-29 17:13:43.000000000 +0200
89 static void nb_init_graphics __ARGS((void));
90 static void coloncmd __ARGS((char *cmd, ...));
91 static void nb_set_curbuf __ARGS((buf_T *buf));
92 ! #ifdef FEAT_GUI_MOTIF
93 static void messageFromNetbeans __ARGS((XtPointer, int *, XtInputId *));
97 static void nb_init_graphics __ARGS((void));
98 static void coloncmd __ARGS((char *cmd, ...));
99 static void nb_set_curbuf __ARGS((buf_T *buf));
100 ! #ifdef FEAT_GUI_X11
101 static void messageFromNetbeans __ARGS((XtPointer, int *, XtInputId *));
106 static NBSOCK nbsock = -1; /* socket fd for Netbeans connection */
107 #define NETBEANS_OPEN (nbsock != -1)
109 ! #ifdef FEAT_GUI_MOTIF
110 static XtInputId inputHandler = (XtInputId)NULL; /* Cookie for input */
114 static NBSOCK nbsock = -1; /* socket fd for Netbeans connection */
115 #define NETBEANS_OPEN (nbsock != -1)
117 ! #ifdef FEAT_GUI_X11
118 static XtInputId inputHandler = (XtInputId)NULL; /* Cookie for input */
124 netbeans_send_disconnect();
126 ! #ifdef FEAT_GUI_MOTIF
127 if (inputHandler != (XtInputId)NULL)
129 XtRemoveInput(inputHandler);
132 netbeans_send_disconnect();
134 ! #ifdef FEAT_GUI_X11
135 if (inputHandler != (XtInputId)NULL)
137 XtRemoveInput(inputHandler);
141 * Read a command from netbeans.
143 ! #ifdef FEAT_GUI_MOTIF
145 messageFromNetbeans(XtPointer clientData UNUSED,
149 * Read a command from netbeans.
151 ! #ifdef FEAT_GUI_X11
153 messageFromNetbeans(XtPointer clientData UNUSED,
157 if (!NB_HAS_GUI || !NETBEANS_OPEN)
160 ! # ifdef FEAT_GUI_MOTIF
161 /* tell notifier we are interested in being called
162 * when there is input on the editor connection socket
165 if (!NB_HAS_GUI || !NETBEANS_OPEN)
168 ! # ifdef FEAT_GUI_X11
169 /* tell notifier we are interested in being called
170 * when there is input on the editor connection socket
177 ! #if defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_W32) || defined(PROTO)
179 * Tell netbeans that the window was moved or resized.
185 ! #if defined(FEAT_GUI_X11) || defined(FEAT_GUI_W32) || defined(PROTO)
187 * Tell netbeans that the window was moved or resized.
194 ! #if defined(FEAT_GUI_MOTIF) || defined(PROTO)
196 * We have multiple signs to draw at the same location. Draw the
197 * multi-sign indicator instead. This is the Motif version.
202 ! #if defined(FEAT_GUI_X11) || defined(PROTO)
204 * We have multiple signs to draw at the same location. Draw the
205 * multi-sign indicator instead. This is the Motif version.
208 XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+3, y++);
209 XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+2, y);
211 ! #endif /* FEAT_GUI_MOTIF */
213 #if defined(FEAT_GUI_GTK) && !defined(PROTO)
216 XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+3, y++);
217 XDrawPoint(gui.dpy, gui.wid, gui.text_gc, x+2, y);
219 ! #endif /* FEAT_GUI_X11 */
221 #if defined(FEAT_GUI_GTK) && !defined(PROTO)
223 *** ../vim-7.3.015/src/version.c 2010-09-29 16:55:45.000000000 +0200
224 --- src/version.c 2010-09-29 17:14:47.000000000 +0200
228 { /* Add new patch number below this line */
234 hundred-and-one symptoms of being an internet addict:
235 229. You spend so much time thinking what to add on this list.
237 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
238 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
239 \\\ download, build and distribute -- http://www.A-A-P.org ///
240 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///