comparison src/ui.c @ 1883:c8f343a465a2 v7.2.180

updated for version 7.2-180
author vimboss
date Sun, 17 May 2009 11:33:22 +0000
parents f10fe14748e2
children 75a69023117c
comparison
equal deleted inserted replaced
1882:c8b87fa14d27 1883:c8f343a465a2
318 /* 318 /*
319 * Set the size of the Vim shell according to Rows and Columns, if possible. 319 * Set the size of the Vim shell according to Rows and Columns, if possible.
320 * The gui_set_shellsize() or mch_set_shellsize() function will try to set the 320 * The gui_set_shellsize() or mch_set_shellsize() function will try to set the
321 * new size. If this is not possible, it will adjust Rows and Columns. 321 * new size. If this is not possible, it will adjust Rows and Columns.
322 */ 322 */
323 /*ARGSUSED*/
324 void 323 void
325 ui_set_shellsize(mustset) 324 ui_set_shellsize(mustset)
326 int mustset; /* set by the user */ 325 int mustset UNUSED; /* set by the user */
327 { 326 {
328 #ifdef FEAT_GUI 327 #ifdef FEAT_GUI
329 if (gui.in_use) 328 if (gui.in_use)
330 gui_set_shellsize(mustset, 329 gui_set_shellsize(mustset,
331 # ifdef WIN3264 330 # ifdef WIN3264
1125 /* 1124 /*
1126 * Copy the currently selected area into the '*' register so it will be 1125 * Copy the currently selected area into the '*' register so it will be
1127 * available for pasting. 1126 * available for pasting.
1128 * When "both" is TRUE also copy to the '+' register. 1127 * When "both" is TRUE also copy to the '+' register.
1129 */ 1128 */
1130 /*ARGSUSED*/
1131 void 1129 void
1132 clip_copy_modeless_selection(both) 1130 clip_copy_modeless_selection(both)
1133 int both; 1131 int both UNUSED;
1134 { 1132 {
1135 char_u *buffer; 1133 char_u *buffer;
1136 char_u *bufp; 1134 char_u *bufp;
1137 int row; 1135 int row;
1138 int start_col; 1136 int start_col;
1699 if (inbufcount) 1697 if (inbufcount)
1700 mch_memmove(inbuf, inbuf + maxlen, (size_t)inbufcount); 1698 mch_memmove(inbuf, inbuf + maxlen, (size_t)inbufcount);
1701 return (int)maxlen; 1699 return (int)maxlen;
1702 } 1700 }
1703 1701
1704 /*ARGSUSED*/
1705 void 1702 void
1706 fill_input_buf(exit_on_error) 1703 fill_input_buf(exit_on_error)
1707 int exit_on_error; 1704 int exit_on_error UNUSED;
1708 { 1705 {
1709 #if defined(UNIX) || defined(OS2) || defined(VMS) || defined(MACOS_X_UNIX) 1706 #if defined(UNIX) || defined(OS2) || defined(VMS) || defined(MACOS_X_UNIX)
1710 int len; 1707 int len;
1711 int try; 1708 int try;
1712 static int did_read_something = FALSE; 1709 static int did_read_something = FALSE;
1990 * X Selection stuff, for cutting and pasting text to other windows. 1987 * X Selection stuff, for cutting and pasting text to other windows.
1991 */ 1988 */
1992 1989
1993 static void clip_x11_request_selection_cb __ARGS((Widget, XtPointer, Atom *, Atom *, XtPointer, long_u *, int *)); 1990 static void clip_x11_request_selection_cb __ARGS((Widget, XtPointer, Atom *, Atom *, XtPointer, long_u *, int *));
1994 1991
1995 /* ARGSUSED */
1996 static void 1992 static void
1997 clip_x11_request_selection_cb(w, success, sel_atom, type, value, length, 1993 clip_x11_request_selection_cb(w, success, sel_atom, type, value, length,
1998 format) 1994 format)
1999 Widget w; 1995 Widget w UNUSED;
2000 XtPointer success; 1996 XtPointer success;
2001 Atom *sel_atom; 1997 Atom *sel_atom;
2002 Atom *type; 1998 Atom *type;
2003 XtPointer value; 1999 XtPointer value;
2004 long_u *length; 2000 long_u *length;
2200 } 2196 }
2201 } 2197 }
2202 2198
2203 static Boolean clip_x11_convert_selection_cb __ARGS((Widget, Atom *, Atom *, Atom *, XtPointer *, long_u *, int *)); 2199 static Boolean clip_x11_convert_selection_cb __ARGS((Widget, Atom *, Atom *, Atom *, XtPointer *, long_u *, int *));
2204 2200
2205 /* ARGSUSED */
2206 static Boolean 2201 static Boolean
2207 clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format) 2202 clip_x11_convert_selection_cb(w, sel_atom, target, type, value, length, format)
2208 Widget w; 2203 Widget w UNUSED;
2209 Atom *sel_atom; 2204 Atom *sel_atom;
2210 Atom *target; 2205 Atom *target;
2211 Atom *type; 2206 Atom *type;
2212 XtPointer *value; 2207 XtPointer *value;
2213 long_u *length; 2208 long_u *length;
2330 return True; 2325 return True;
2331 } 2326 }
2332 2327
2333 static void clip_x11_lose_ownership_cb __ARGS((Widget, Atom *)); 2328 static void clip_x11_lose_ownership_cb __ARGS((Widget, Atom *));
2334 2329
2335 /* ARGSUSED */
2336 static void 2330 static void
2337 clip_x11_lose_ownership_cb(w, sel_atom) 2331 clip_x11_lose_ownership_cb(w, sel_atom)
2338 Widget w; 2332 Widget w UNUSED;
2339 Atom *sel_atom; 2333 Atom *sel_atom;
2340 { 2334 {
2341 if (*sel_atom == clip_plus.sel_atom) 2335 if (*sel_atom == clip_plus.sel_atom)
2342 clip_lose_selection(&clip_plus); 2336 clip_lose_selection(&clip_plus);
2343 else 2337 else
2366 2360
2367 /* 2361 /*
2368 * Send the current selection to the clipboard. Do nothing for X because we 2362 * Send the current selection to the clipboard. Do nothing for X because we
2369 * will fill in the selection only when requested by another app. 2363 * will fill in the selection only when requested by another app.
2370 */ 2364 */
2371 /*ARGSUSED*/
2372 void 2365 void
2373 clip_x11_set_selection(cbd) 2366 clip_x11_set_selection(cbd)
2374 VimClipboard *cbd; 2367 VimClipboard *cbd UNUSED;
2375 { 2368 {
2376 } 2369 }
2377 #endif 2370 #endif
2378 2371
2379 #if defined(FEAT_MOUSE) || defined(PROTO) 2372 #if defined(FEAT_MOUSE) || defined(PROTO)
2920 #if defined(FEAT_WINDOWS) || defined(PROTO) 2913 #if defined(FEAT_WINDOWS) || defined(PROTO)
2921 /* 2914 /*
2922 * Find the window at screen position "*rowp" and "*colp". The positions are 2915 * Find the window at screen position "*rowp" and "*colp". The positions are
2923 * updated to become relative to the top-left of the window. 2916 * updated to become relative to the top-left of the window.
2924 */ 2917 */
2925 /*ARGSUSED*/
2926 win_T * 2918 win_T *
2927 mouse_find_win(rowp, colp) 2919 mouse_find_win(rowp, colp)
2928 int *rowp; 2920 int *rowp;
2929 int *colp; 2921 int *colp UNUSED;
2930 { 2922 {
2931 frame_T *fp; 2923 frame_T *fp;
2932 2924
2933 fp = topframe; 2925 fp = topframe;
2934 *rowp -= firstwin->w_winrow; 2926 *rowp -= firstwin->w_winrow;