|
Karsten Hopp |
81c285 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
81c285 |
Subject: Patch 7.2.184
|
|
Karsten Hopp |
81c285 |
Fcc: outbox
|
|
Karsten Hopp |
81c285 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
81c285 |
Mime-Version: 1.0
|
|
Karsten Hopp |
81c285 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
81c285 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
81c285 |
------------
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
Patch 7.2.184
|
|
Karsten Hopp |
81c285 |
Problem: Some more compiler warnings when using gcc -Wextra.
|
|
Karsten Hopp |
81c285 |
Solution: Add UNUSED and type casts. Autoconf check for wchar_t.
|
|
Karsten Hopp |
81c285 |
Files: src/auto/configure, src/config.h.in, src/configure.in,
|
|
Karsten Hopp |
81c285 |
src/gui_athena.c, src/gui_x11.c, src/gui.c, src/gui_beval.c,
|
|
Karsten Hopp |
81c285 |
src/gui_at_sb.c, src/gui_at_fs.c, src/gui_motif.c,
|
|
Karsten Hopp |
81c285 |
src/gui_xmdlg.c, src/gui_xmebw.c, src/if_python.c, src/window.c,
|
|
Karsten Hopp |
81c285 |
src/workshop.c
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/auto/configure 2009-05-21 15:19:59.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/auto/configure 2009-05-21 16:05:01.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 7977,7982 ****
|
|
Karsten Hopp |
81c285 |
--- 7977,8058 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
LDFLAGS="$ac_save_LDFLAGS"
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
+ { $as_echo "$as_me:$LINENO: checking size of wchar_t is 2 bytes" >&5
|
|
Karsten Hopp |
81c285 |
+ $as_echo_n "checking size of wchar_t is 2 bytes... " >&6; }
|
|
Karsten Hopp |
81c285 |
+ if test "${ac_cv_small_wchar_t+set}" = set; then
|
|
Karsten Hopp |
81c285 |
+ $as_echo_n "(cached) " >&6
|
|
Karsten Hopp |
81c285 |
+ else
|
|
Karsten Hopp |
81c285 |
+ if test "$cross_compiling" = yes; then
|
|
Karsten Hopp |
81c285 |
+ { { $as_echo "$as_me:$LINENO: error: failed to compile test program" >&5
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$as_me: error: failed to compile test program" >&2;}
|
|
Karsten Hopp |
81c285 |
+ { (exit 1); exit 1; }; }
|
|
Karsten Hopp |
81c285 |
+ else
|
|
Karsten Hopp |
81c285 |
+ cat >conftest.$ac_ext <<_ACEOF
|
|
Karsten Hopp |
81c285 |
+ /* confdefs.h. */
|
|
Karsten Hopp |
81c285 |
+ _ACEOF
|
|
Karsten Hopp |
81c285 |
+ cat confdefs.h >>conftest.$ac_ext
|
|
Karsten Hopp |
81c285 |
+ cat >>conftest.$ac_ext <<_ACEOF
|
|
Karsten Hopp |
81c285 |
+ /* end confdefs.h. */
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
+ #include <X11/Xlib.h>
|
|
Karsten Hopp |
81c285 |
+ #if STDC_HEADERS
|
|
Karsten Hopp |
81c285 |
+ # include <stdlib.h>
|
|
Karsten Hopp |
81c285 |
+ # include <stddef.h>
|
|
Karsten Hopp |
81c285 |
+ #endif
|
|
Karsten Hopp |
81c285 |
+ main()
|
|
Karsten Hopp |
81c285 |
+ {
|
|
Karsten Hopp |
81c285 |
+ if (sizeof(wchar_t) <= 2)
|
|
Karsten Hopp |
81c285 |
+ exit(1);
|
|
Karsten Hopp |
81c285 |
+ exit(0);
|
|
Karsten Hopp |
81c285 |
+ }
|
|
Karsten Hopp |
81c285 |
+ _ACEOF
|
|
Karsten Hopp |
81c285 |
+ rm -f conftest$ac_exeext
|
|
Karsten Hopp |
81c285 |
+ if { (ac_try="$ac_link"
|
|
Karsten Hopp |
81c285 |
+ case "(($ac_try" in
|
|
Karsten Hopp |
81c285 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
Karsten Hopp |
81c285 |
+ *) ac_try_echo=$ac_try;;
|
|
Karsten Hopp |
81c285 |
+ esac
|
|
Karsten Hopp |
81c285 |
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$ac_try_echo") >&5
|
|
Karsten Hopp |
81c285 |
+ (eval "$ac_link") 2>&5
|
|
Karsten Hopp |
81c285 |
+ ac_status=$?
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
Karsten Hopp |
81c285 |
+ (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
|
Karsten Hopp |
81c285 |
+ { (case "(($ac_try" in
|
|
Karsten Hopp |
81c285 |
+ *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
|
|
Karsten Hopp |
81c285 |
+ *) ac_try_echo=$ac_try;;
|
|
Karsten Hopp |
81c285 |
+ esac
|
|
Karsten Hopp |
81c285 |
+ eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$ac_try_echo") >&5
|
|
Karsten Hopp |
81c285 |
+ (eval "$ac_try") 2>&5
|
|
Karsten Hopp |
81c285 |
+ ac_status=$?
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
|
Karsten Hopp |
81c285 |
+ (exit $ac_status); }; }; then
|
|
Karsten Hopp |
81c285 |
+ ac_cv_small_wchar_t="no"
|
|
Karsten Hopp |
81c285 |
+ else
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$as_me: program exited with status $ac_status" >&5
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$as_me: failed program was:" >&5
|
|
Karsten Hopp |
81c285 |
+ sed 's/^/| /' conftest.$ac_ext >&5
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
+ ( exit $ac_status )
|
|
Karsten Hopp |
81c285 |
+ ac_cv_small_wchar_t="yes"
|
|
Karsten Hopp |
81c285 |
+ fi
|
|
Karsten Hopp |
81c285 |
+ rm -rf conftest.dSYM
|
|
Karsten Hopp |
81c285 |
+ rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
|
Karsten Hopp |
81c285 |
+ fi
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
+ fi
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
+ { $as_echo "$as_me:$LINENO: result: $ac_cv_small_wchar_t" >&5
|
|
Karsten Hopp |
81c285 |
+ $as_echo "$ac_cv_small_wchar_t" >&6; }
|
|
Karsten Hopp |
81c285 |
+ if test "x$ac_cv_small_wchar_t" = "xyes" ; then
|
|
Karsten Hopp |
81c285 |
+ cat >>confdefs.h <<\_ACEOF
|
|
Karsten Hopp |
81c285 |
+ #define SMALL_WCHAR_T 1
|
|
Karsten Hopp |
81c285 |
+ _ACEOF
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
+ fi
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
fi
|
|
Karsten Hopp |
81c285 |
fi
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 15417,15423 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
-
|
|
Karsten Hopp |
81c285 |
bcopy_test_prog='
|
|
Karsten Hopp |
81c285 |
#include "confdefs.h"
|
|
Karsten Hopp |
81c285 |
#ifdef HAVE_STRING_H
|
|
Karsten Hopp |
81c285 |
--- 15493,15498 ----
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/config.h.in 2009-05-14 22:19:19.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/config.h.in 2009-05-21 15:44:24.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 39,44 ****
|
|
Karsten Hopp |
81c285 |
--- 39,47 ----
|
|
Karsten Hopp |
81c285 |
/* Defined to the size of an int */
|
|
Karsten Hopp |
81c285 |
#undef SIZEOF_INT
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
+ /* Define when wchar_t is only 2 bytes. */
|
|
Karsten Hopp |
81c285 |
+ #undef SMALL_WCHAR_T
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* If we cannot trust one of the following from the libraries, we use our
|
|
Karsten Hopp |
81c285 |
* own safe but probably slower vim_memmove().
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/configure.in 2009-05-21 15:19:59.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/configure.in 2009-05-21 16:04:56.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1193,1198 ****
|
|
Karsten Hopp |
81c285 |
--- 1193,1220 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
LDFLAGS="$ac_save_LDFLAGS"
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
+ AC_MSG_CHECKING(size of wchar_t is 2 bytes)
|
|
Karsten Hopp |
81c285 |
+ AC_CACHE_VAL(ac_cv_small_wchar_t,
|
|
Karsten Hopp |
81c285 |
+ [AC_TRY_RUN([
|
|
Karsten Hopp |
81c285 |
+ #include <X11/Xlib.h>
|
|
Karsten Hopp |
81c285 |
+ #if STDC_HEADERS
|
|
Karsten Hopp |
81c285 |
+ # include <stdlib.h>
|
|
Karsten Hopp |
81c285 |
+ # include <stddef.h>
|
|
Karsten Hopp |
81c285 |
+ #endif
|
|
Karsten Hopp |
81c285 |
+ main()
|
|
Karsten Hopp |
81c285 |
+ {
|
|
Karsten Hopp |
81c285 |
+ if (sizeof(wchar_t) <= 2)
|
|
Karsten Hopp |
81c285 |
+ exit(1);
|
|
Karsten Hopp |
81c285 |
+ exit(0);
|
|
Karsten Hopp |
81c285 |
+ }],
|
|
Karsten Hopp |
81c285 |
+ ac_cv_small_wchar_t="no",
|
|
Karsten Hopp |
81c285 |
+ ac_cv_small_wchar_t="yes",
|
|
Karsten Hopp |
81c285 |
+ AC_MSG_ERROR(failed to compile test program))])
|
|
Karsten Hopp |
81c285 |
+ AC_MSG_RESULT($ac_cv_small_wchar_t)
|
|
Karsten Hopp |
81c285 |
+ if test "x$ac_cv_small_wchar_t" = "xyes" ; then
|
|
Karsten Hopp |
81c285 |
+ AC_DEFINE(SMALL_WCHAR_T)
|
|
Karsten Hopp |
81c285 |
+ fi
|
|
Karsten Hopp |
81c285 |
+
|
|
Karsten Hopp |
81c285 |
fi
|
|
Karsten Hopp |
81c285 |
fi
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2881,2887 ****
|
|
Karsten Hopp |
81c285 |
AC_MSG_RESULT($ac_cv_sizeof_int)
|
|
Karsten Hopp |
81c285 |
AC_DEFINE_UNQUOTED(SIZEOF_INT, $ac_cv_sizeof_int)
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
-
|
|
Karsten Hopp |
81c285 |
dnl Check for memmove() before bcopy(), makes memmove() be used when both are
|
|
Karsten Hopp |
81c285 |
dnl present, fixes problem with incompatibility between Solaris 2.4 and 2.5.
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 2903,2908 ----
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_athena.c 2008-06-24 23:00:51.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/gui_athena.c 2009-05-21 16:39:43.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 86,95 ****
|
|
Karsten Hopp |
81c285 |
* Scrollbar callback (XtNjumpProc) for when the scrollbar is dragged with the
|
|
Karsten Hopp |
81c285 |
* left or middle mouse button.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_scroll_cb_jump(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
scrollbar_T *sb, *sb_info;
|
|
Karsten Hopp |
81c285 |
--- 86,94 ----
|
|
Karsten Hopp |
81c285 |
* Scrollbar callback (XtNjumpProc) for when the scrollbar is dragged with the
|
|
Karsten Hopp |
81c285 |
* left or middle mouse button.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_scroll_cb_jump(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
scrollbar_T *sb, *sb_info;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 122,131 ****
|
|
Karsten Hopp |
81c285 |
* Scrollbar callback (XtNscrollProc) for paging up or down with the left or
|
|
Karsten Hopp |
81c285 |
* right mouse buttons.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_scroll_cb_scroll(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
scrollbar_T *sb, *sb_info;
|
|
Karsten Hopp |
81c285 |
--- 121,129 ----
|
|
Karsten Hopp |
81c285 |
* Scrollbar callback (XtNscrollProc) for paging up or down with the left or
|
|
Karsten Hopp |
81c285 |
* right mouse buttons.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_scroll_cb_scroll(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
scrollbar_T *sb, *sb_info;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 492,498 ****
|
|
Karsten Hopp |
81c285 |
if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (menu->iconidx >= 0 && menu->iconidx
|
|
Karsten Hopp |
81c285 |
! < (sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
|
|
Karsten Hopp |
81c285 |
xpm = built_in_pixmaps[menu->iconidx];
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
xpm = tb_blank_xpm;
|
|
Karsten Hopp |
81c285 |
--- 490,496 ----
|
|
Karsten Hopp |
81c285 |
if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (menu->iconidx >= 0 && menu->iconidx
|
|
Karsten Hopp |
81c285 |
! < (int)(sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
|
|
Karsten Hopp |
81c285 |
xpm = built_in_pixmaps[menu->iconidx];
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
xpm = tb_blank_xpm;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 763,769 ****
|
|
Karsten Hopp |
81c285 |
XtGetValues(XtParent(widget), args, n);
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
retval = num_children;
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Widget current = children[i];
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu = NULL;
|
|
Karsten Hopp |
81c285 |
--- 761,767 ----
|
|
Karsten Hopp |
81c285 |
XtGetValues(XtParent(widget), args, n);
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
retval = num_children;
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Widget current = children[i];
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu = NULL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 780,790 ****
|
|
Karsten Hopp |
81c285 |
return retval;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_add_menu(menu, idx)
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu;
|
|
Karsten Hopp |
81c285 |
! int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *pullright_name;
|
|
Karsten Hopp |
81c285 |
Dimension height, space, border;
|
|
Karsten Hopp |
81c285 |
--- 778,787 ----
|
|
Karsten Hopp |
81c285 |
return retval;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_add_menu(menu, idx)
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu;
|
|
Karsten Hopp |
81c285 |
! int idx UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *pullright_name;
|
|
Karsten Hopp |
81c285 |
Dimension height, space, border;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 869,875 ****
|
|
Karsten Hopp |
81c285 |
XtVaGetValues(parent->submenu_id, XtNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XtNnumChildren, &num_children,
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XtVaSetValues(children[i],
|
|
Karsten Hopp |
81c285 |
XtNrightMargin, puller_width,
|
|
Karsten Hopp |
81c285 |
--- 866,872 ----
|
|
Karsten Hopp |
81c285 |
XtVaGetValues(parent->submenu_id, XtNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XtNnumChildren, &num_children,
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XtVaSetValues(children[i],
|
|
Karsten Hopp |
81c285 |
XtNrightMargin, puller_width,
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 913,919 ****
|
|
Karsten Hopp |
81c285 |
XtVaGetValues(id, XtNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XtNnumChildren, &num_children,
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (children[i] == ignore)
|
|
Karsten Hopp |
81c285 |
continue;
|
|
Karsten Hopp |
81c285 |
--- 910,916 ----
|
|
Karsten Hopp |
81c285 |
XtVaGetValues(id, XtNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XtNnumChildren, &num_children,
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (children[i] == ignore)
|
|
Karsten Hopp |
81c285 |
continue;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1175,1185 ****
|
|
Karsten Hopp |
81c285 |
return pname;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_add_menu_item(menu, idx)
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu;
|
|
Karsten Hopp |
81c285 |
! int idx;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
vimmenu_T *parent = menu->parent;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1172,1181 ----
|
|
Karsten Hopp |
81c285 |
return pname;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_add_menu_item(menu, idx)
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu;
|
|
Karsten Hopp |
81c285 |
! int idx UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
vimmenu_T *parent = menu->parent;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1444,1450 ****
|
|
Karsten Hopp |
81c285 |
XtNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XtNnumChildren, &numChildren,
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < numChildren; i++)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
whgt = 0;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1440,1446 ----
|
|
Karsten Hopp |
81c285 |
XtNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XtNnumChildren, &numChildren,
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)numChildren; i++)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
whgt = 0;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1473,1482 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_toggle_tearoffs(enable)
|
|
Karsten Hopp |
81c285 |
! int enable;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* no tearoff menus */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 1469,1477 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_toggle_tearoffs(enable)
|
|
Karsten Hopp |
81c285 |
! int enable UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* no tearoff menus */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1537,1543 ****
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
get_left_margin = True;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (children[i] == menu->id)
|
|
Karsten Hopp |
81c285 |
continue;
|
|
Karsten Hopp |
81c285 |
--- 1532,1538 ----
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
get_left_margin = True;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)num_children; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (children[i] == menu->id)
|
|
Karsten Hopp |
81c285 |
continue;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1645,1655 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_menu_timeout(client_data, id)
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Widget w = (Widget)client_data;
|
|
Karsten Hopp |
81c285 |
Widget popup;
|
|
Karsten Hopp |
81c285 |
--- 1640,1649 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_menu_timeout(client_data, id)
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Widget w = (Widget)client_data;
|
|
Karsten Hopp |
81c285 |
Widget popup;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1678,1689 ****
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* This is called when XtPopup() is called.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_popup_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Assumption: XtIsSubclass(XtParent(w),simpleMenuWidgetClass) */
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu = (vimmenu_T *)client_data;
|
|
Karsten Hopp |
81c285 |
--- 1672,1682 ----
|
|
Karsten Hopp |
81c285 |
*
|
|
Karsten Hopp |
81c285 |
* This is called when XtPopup() is called.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_popup_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Assumption: XtIsSubclass(XtParent(w),simpleMenuWidgetClass) */
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu = (vimmenu_T *)client_data;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1711,1717 ****
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_popdown_submenus_action(w, event, args, nargs)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
--- 1704,1709 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1756,1762 ****
|
|
Karsten Hopp |
81c285 |
return False;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_athena_delayed_arm_action(w, event, args, nargs)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
--- 1748,1753 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1837,1843 ****
|
|
Karsten Hopp |
81c285 |
* (XtIsSubclass(popup,simpleMenuWidgetClass) == True) */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_show_popupmenu(menu)
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu;
|
|
Karsten Hopp |
81c285 |
--- 1828,1833 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2046,2060 ****
|
|
Karsten Hopp |
81c285 |
* Put up a file requester.
|
|
Karsten Hopp |
81c285 |
* Returns the selected name in allocated memory, or NULL for Cancel.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
gui_mch_browse(saving, title, dflt, ext, initdir, filter)
|
|
Karsten Hopp |
81c285 |
! int saving; /* select file to write */
|
|
Karsten Hopp |
81c285 |
! char_u *title; /* not used (title for the window) */
|
|
Karsten Hopp |
81c285 |
! char_u *dflt; /* not used (default name) */
|
|
Karsten Hopp |
81c285 |
! char_u *ext; /* not used (extension added) */
|
|
Karsten Hopp |
81c285 |
char_u *initdir; /* initial directory, NULL for current dir */
|
|
Karsten Hopp |
81c285 |
! char_u *filter; /* not used (file name filter) */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Position x, y;
|
|
Karsten Hopp |
81c285 |
char_u dirbuf[MAXPATHL];
|
|
Karsten Hopp |
81c285 |
--- 2036,2049 ----
|
|
Karsten Hopp |
81c285 |
* Put up a file requester.
|
|
Karsten Hopp |
81c285 |
* Returns the selected name in allocated memory, or NULL for Cancel.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
gui_mch_browse(saving, title, dflt, ext, initdir, filter)
|
|
Karsten Hopp |
81c285 |
! int saving UNUSED; /* select file to write */
|
|
Karsten Hopp |
81c285 |
! char_u *title; /* title for the window */
|
|
Karsten Hopp |
81c285 |
! char_u *dflt; /* default name */
|
|
Karsten Hopp |
81c285 |
! char_u *ext UNUSED; /* extension added */
|
|
Karsten Hopp |
81c285 |
char_u *initdir; /* initial directory, NULL for current dir */
|
|
Karsten Hopp |
81c285 |
! char_u *filter UNUSED; /* file name filter */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Position x, y;
|
|
Karsten Hopp |
81c285 |
char_u dirbuf[MAXPATHL];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2100,2112 ****
|
|
Karsten Hopp |
81c285 |
* Callback function for the textfield. When CR is hit this works like
|
|
Karsten Hopp |
81c285 |
* hitting the "OK" button, ESC like "Cancel".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
keyhit_callback(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char buf[2];
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 2089,2100 ----
|
|
Karsten Hopp |
81c285 |
* Callback function for the textfield. When CR is hit this works like
|
|
Karsten Hopp |
81c285 |
* hitting the "OK" button, ESC like "Cancel".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
keyhit_callback(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char buf[2];
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2119,2130 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
butproc(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dialogStatus = (int)(long)client_data + 1;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 2107,2117 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
butproc(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dialogStatus = (int)(long)client_data + 1;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2132,2158 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function called when dialog window closed.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
dialog_wm_handler(w, client_data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (event->type == ClientMessage
|
|
Karsten Hopp |
81c285 |
! && ((XClientMessageEvent *)event)->data.l[0] == dialogatom)
|
|
Karsten Hopp |
81c285 |
dialogStatus = 0;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
gui_mch_dialog(type, title, message, buttons, dfltbutton, textfield)
|
|
Karsten Hopp |
81c285 |
! int type;
|
|
Karsten Hopp |
81c285 |
char_u *title;
|
|
Karsten Hopp |
81c285 |
char_u *message;
|
|
Karsten Hopp |
81c285 |
char_u *buttons;
|
|
Karsten Hopp |
81c285 |
! int dfltbutton;
|
|
Karsten Hopp |
81c285 |
char_u *textfield;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *buts;
|
|
Karsten Hopp |
81c285 |
--- 2119,2143 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function called when dialog window closed.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
dialog_wm_handler(w, client_data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (event->type == ClientMessage
|
|
Karsten Hopp |
81c285 |
! && (Atom)((XClientMessageEvent *)event)->data.l[0] == dialogatom)
|
|
Karsten Hopp |
81c285 |
dialogStatus = 0;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
gui_mch_dialog(type, title, message, buttons, dfltbutton, textfield)
|
|
Karsten Hopp |
81c285 |
! int type UNUSED;
|
|
Karsten Hopp |
81c285 |
char_u *title;
|
|
Karsten Hopp |
81c285 |
char_u *message;
|
|
Karsten Hopp |
81c285 |
char_u *buttons;
|
|
Karsten Hopp |
81c285 |
! int dfltbutton UNUSED;
|
|
Karsten Hopp |
81c285 |
char_u *textfield;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char_u *buts;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_x11.c 2009-02-24 04:11:07.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/gui_x11.c 2009-05-21 16:47:02.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 570,591 ****
|
|
Karsten Hopp |
81c285 |
* Call-back routines.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_timer_cb(timed_out, interval_id)
|
|
Karsten Hopp |
81c285 |
XtPointer timed_out;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *interval_id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*((int *)timed_out) = TRUE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_visibility_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (event->type != VisibilityNotify)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
--- 570,589 ----
|
|
Karsten Hopp |
81c285 |
* Call-back routines.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_timer_cb(timed_out, interval_id)
|
|
Karsten Hopp |
81c285 |
XtPointer timed_out;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *interval_id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*((int *)timed_out) = TRUE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_visibility_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (event->type != VisibilityNotify)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 603,615 ****
|
|
Karsten Hopp |
81c285 |
gui_mch_update();
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_expose_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XExposeEvent *gevent;
|
|
Karsten Hopp |
81c285 |
int new_x;
|
|
Karsten Hopp |
81c285 |
--- 601,612 ----
|
|
Karsten Hopp |
81c285 |
gui_mch_update();
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_expose_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XExposeEvent *gevent;
|
|
Karsten Hopp |
81c285 |
int new_x;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 680,692 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_resize_window_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static int lastWidth, lastHeight;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 677,688 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_resize_window_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static int lastWidth, lastHeight;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 727,761 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_focus_change_cb(w, data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_focus_change(event->type == FocusIn);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_enter_cb(w, data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer data;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_focus_change(TRUE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_leave_cb(w, data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer data;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_focus_change(FALSE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 723,754 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_focus_change_cb(w, data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer data UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_focus_change(event->type == FocusIn);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_enter_cb(w, data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer data UNUSED;
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_focus_change(TRUE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_leave_cb(w, data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer data UNUSED;
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_focus_change(FALSE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 766,778 ****
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_x11_key_hit_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XKeyPressedEvent *ev_press;
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_XIM
|
|
Karsten Hopp |
81c285 |
--- 759,770 ----
|
|
Karsten Hopp |
81c285 |
# endif
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_x11_key_hit_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XKeyPressedEvent *ev_press;
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_XIM
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1078,1090 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_mouse_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static XtIntervalId timer = (XtIntervalId)0;
|
|
Karsten Hopp |
81c285 |
static int timed_out = TRUE;
|
|
Karsten Hopp |
81c285 |
--- 1070,1081 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_mouse_cb(w, dud, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer dud UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static XtIntervalId timer = (XtIntervalId)0;
|
|
Karsten Hopp |
81c285 |
static int timed_out = TRUE;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1210,1220 ****
|
|
Karsten Hopp |
81c285 |
while (arg < *argc)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Look for argv[arg] in cmdline_options[] table */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < XtNumber(cmdline_options); i++)
|
|
Karsten Hopp |
81c285 |
if (strcmp(argv[arg], cmdline_options[i].option) == 0)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (i < XtNumber(cmdline_options))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Remember finding "-rv" or "-reverse" */
|
|
Karsten Hopp |
81c285 |
if (strcmp("-rv", argv[arg]) == 0
|
|
Karsten Hopp |
81c285 |
--- 1201,1211 ----
|
|
Karsten Hopp |
81c285 |
while (arg < *argc)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Look for argv[arg] in cmdline_options[] table */
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)XtNumber(cmdline_options); i++)
|
|
Karsten Hopp |
81c285 |
if (strcmp(argv[arg], cmdline_options[i].option) == 0)
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (i < (int)XtNumber(cmdline_options))
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* Remember finding "-rv" or "-reverse" */
|
|
Karsten Hopp |
81c285 |
if (strcmp("-rv", argv[arg]) == 0
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1319,1330 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void local_xsmp_handle_requests __ARGS((XtPointer c, int *s, XtInputId *i));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
local_xsmp_handle_requests(c, s, i)
|
|
Karsten Hopp |
81c285 |
! XtPointer c;
|
|
Karsten Hopp |
81c285 |
! int *s;
|
|
Karsten Hopp |
81c285 |
! XtInputId *i;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (xsmp_handle_requests() == FAIL)
|
|
Karsten Hopp |
81c285 |
XtRemoveInput(_xsmp_xtinputid);
|
|
Karsten Hopp |
81c285 |
--- 1310,1320 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void local_xsmp_handle_requests __ARGS((XtPointer c, int *s, XtInputId *i));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
local_xsmp_handle_requests(c, s, i)
|
|
Karsten Hopp |
81c285 |
! XtPointer c UNUSED;
|
|
Karsten Hopp |
81c285 |
! int *s UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtInputId *i UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (xsmp_handle_requests() == FAIL)
|
|
Karsten Hopp |
81c285 |
XtRemoveInput(_xsmp_xtinputid);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1438,1444 ****
|
|
Karsten Hopp |
81c285 |
Columns = w;
|
|
Karsten Hopp |
81c285 |
if (mask & HeightValue)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! if (p_window > h - 1 || !option_was_set((char_u *)"window"))
|
|
Karsten Hopp |
81c285 |
p_window = h - 1;
|
|
Karsten Hopp |
81c285 |
Rows = h;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 1428,1434 ----
|
|
Karsten Hopp |
81c285 |
Columns = w;
|
|
Karsten Hopp |
81c285 |
if (mask & HeightValue)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! if (p_window > (long)h - 1 || !option_was_set((char_u *)"window"))
|
|
Karsten Hopp |
81c285 |
p_window = h - 1;
|
|
Karsten Hopp |
81c285 |
Rows = h;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1753,1762 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_exit(rc)
|
|
Karsten Hopp |
81c285 |
! int rc;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if 0
|
|
Karsten Hopp |
81c285 |
/* Lesstif gives an error message here, and so does Solaris. The man page
|
|
Karsten Hopp |
81c285 |
--- 1743,1751 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_exit(rc)
|
|
Karsten Hopp |
81c285 |
! int rc UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if 0
|
|
Karsten Hopp |
81c285 |
/* Lesstif gives an error message here, and so does Solaris. The man page
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1799,1805 ****
|
|
Karsten Hopp |
81c285 |
NULL);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_set_shellsize(width, height, min_width, min_height,
|
|
Karsten Hopp |
81c285 |
base_width, base_height, direction)
|
|
Karsten Hopp |
81c285 |
--- 1788,1793 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1809,1815 ****
|
|
Karsten Hopp |
81c285 |
int min_height;
|
|
Karsten Hopp |
81c285 |
int base_width;
|
|
Karsten Hopp |
81c285 |
int base_height;
|
|
Karsten Hopp |
81c285 |
! int direction;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_XIM
|
|
Karsten Hopp |
81c285 |
height += xim_get_status_area_height(),
|
|
Karsten Hopp |
81c285 |
--- 1797,1803 ----
|
|
Karsten Hopp |
81c285 |
int min_height;
|
|
Karsten Hopp |
81c285 |
int base_width;
|
|
Karsten Hopp |
81c285 |
int base_height;
|
|
Karsten Hopp |
81c285 |
! int direction UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_XIM
|
|
Karsten Hopp |
81c285 |
height += xim_get_status_area_height(),
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1847,1857 ****
|
|
Karsten Hopp |
81c285 |
* If "fontset" is TRUE, load the "font_name" as a fontset.
|
|
Karsten Hopp |
81c285 |
* Return FAIL if the font could not be loaded, OK otherwise.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
gui_mch_init_font(font_name, do_fontset)
|
|
Karsten Hopp |
81c285 |
char_u *font_name;
|
|
Karsten Hopp |
81c285 |
! int do_fontset;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XFontStruct *font = NULL;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1835,1844 ----
|
|
Karsten Hopp |
81c285 |
* If "fontset" is TRUE, load the "font_name" as a fontset.
|
|
Karsten Hopp |
81c285 |
* Return FAIL if the font could not be loaded, OK otherwise.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
gui_mch_init_font(font_name, do_fontset)
|
|
Karsten Hopp |
81c285 |
char_u *font_name;
|
|
Karsten Hopp |
81c285 |
! int do_fontset UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XFontStruct *font = NULL;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2029,2038 ****
|
|
Karsten Hopp |
81c285 |
* Return the name of font "font" in allocated memory.
|
|
Karsten Hopp |
81c285 |
* Don't know how to get the actual name, thus use the provided name.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
gui_mch_get_fontname(font, name)
|
|
Karsten Hopp |
81c285 |
! GuiFont font;
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (name == NULL)
|
|
Karsten Hopp |
81c285 |
--- 2016,2024 ----
|
|
Karsten Hopp |
81c285 |
* Return the name of font "font" in allocated memory.
|
|
Karsten Hopp |
81c285 |
* Don't know how to get the actual name, thus use the provided name.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
gui_mch_get_fontname(font, name)
|
|
Karsten Hopp |
81c285 |
! GuiFont font UNUSED;
|
|
Karsten Hopp |
81c285 |
char_u *name;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (name == NULL)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2521,2527 ****
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
int offset;
|
|
Karsten Hopp |
81c285 |
! const static int val[8] = {1, 0, 0, 0, 1, 2, 2, 2 };
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
XSetForeground(gui.dpy, gui.text_gc, prev_sp_color);
|
|
Karsten Hopp |
81c285 |
for (i = FILL_X(col); i < FILL_X(col + cells); ++i)
|
|
Karsten Hopp |
81c285 |
--- 2507,2513 ----
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
int offset;
|
|
Karsten Hopp |
81c285 |
! static const int val[8] = {1, 0, 0, 0, 1, 2, 2, 2 };
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
XSetForeground(gui.dpy, gui.text_gc, prev_sp_color);
|
|
Karsten Hopp |
81c285 |
for (i = FILL_X(col); i < FILL_X(col + cells); ++i)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2569,2576 ****
|
|
Karsten Hopp |
81c285 |
# ifdef FEAT_XFONTSET
|
|
Karsten Hopp |
81c285 |
if (current_fontset != NULL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! if (c >= 0x10000 && sizeof(wchar_t) <= 2)
|
|
Karsten Hopp |
81c285 |
c = 0xbf; /* show chars > 0xffff as ? */
|
|
Karsten Hopp |
81c285 |
((wchar_t *)buf)[wlen] = c;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
--- 2555,2564 ----
|
|
Karsten Hopp |
81c285 |
# ifdef FEAT_XFONTSET
|
|
Karsten Hopp |
81c285 |
if (current_fontset != NULL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! # ifdef SMALL_WCHAR_T
|
|
Karsten Hopp |
81c285 |
! if (c >= 0x10000)
|
|
Karsten Hopp |
81c285 |
c = 0xbf; /* show chars > 0xffff as ? */
|
|
Karsten Hopp |
81c285 |
+ # endif
|
|
Karsten Hopp |
81c285 |
((wchar_t *)buf)[wlen] = c;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3136,3146 ****
|
|
Karsten Hopp |
81c285 |
/* Nothing to do in X */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_x11_menu_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_menu_cb((vimmenu_T *)client_data);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 3124,3134 ----
|
|
Karsten Hopp |
81c285 |
/* Nothing to do in X */
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_x11_menu_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_menu_cb((vimmenu_T *)client_data);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3153,3165 ****
|
|
Karsten Hopp |
81c285 |
* Function called when window closed. Works like ":qa".
|
|
Karsten Hopp |
81c285 |
* Should put up a requester!
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_wm_protocol_handler(w, client_data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Only deal with Client messages.
|
|
Karsten Hopp |
81c285 |
--- 3141,3152 ----
|
|
Karsten Hopp |
81c285 |
* Function called when window closed. Works like ":qa".
|
|
Karsten Hopp |
81c285 |
* Should put up a requester!
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_wm_protocol_handler(w, client_data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Only deal with Client messages.
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3172,3178 ****
|
|
Karsten Hopp |
81c285 |
* exit. That can be cancelled though, thus Vim shouldn't exit here.
|
|
Karsten Hopp |
81c285 |
* Just sync our swap files.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! if (((XClientMessageEvent *)event)->data.l[0] ==
|
|
Karsten Hopp |
81c285 |
wm_atoms[SAVE_YOURSELF_IDX])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
out_flush();
|
|
Karsten Hopp |
81c285 |
--- 3159,3165 ----
|
|
Karsten Hopp |
81c285 |
* exit. That can be cancelled though, thus Vim shouldn't exit here.
|
|
Karsten Hopp |
81c285 |
* Just sync our swap files.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! if ((Atom)((XClientMessageEvent *)event)->data.l[0] ==
|
|
Karsten Hopp |
81c285 |
wm_atoms[SAVE_YOURSELF_IDX])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
out_flush();
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3185,3191 ****
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (((XClientMessageEvent *)event)->data.l[0] !=
|
|
Karsten Hopp |
81c285 |
wm_atoms[DELETE_WINDOW_IDX])
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 3172,3178 ----
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if ((Atom)((XClientMessageEvent *)event)->data.l[0] !=
|
|
Karsten Hopp |
81c285 |
wm_atoms[DELETE_WINDOW_IDX])
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3196,3208 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function called when property changed. Check for incoming commands
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_send_event_handler(w, client_data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XPropertyEvent *e = (XPropertyEvent *) event;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 3183,3194 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Function called when property changed. Check for incoming commands
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_send_event_handler(w, client_data, event, dum)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *dum UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XPropertyEvent *e = (XPropertyEvent *) event;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3277,3287 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_blink_cb(timed_out, interval_id)
|
|
Karsten Hopp |
81c285 |
! XtPointer timed_out;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *interval_id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (blink_state == BLINK_ON)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 3263,3272 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
gui_x11_blink_cb(timed_out, interval_id)
|
|
Karsten Hopp |
81c285 |
! XtPointer timed_out UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *interval_id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (blink_state == BLINK_ON)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui.c 2009-05-17 16:23:20.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/gui.c 2009-05-21 16:37:39.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3119,3125 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_init_which_components(oldval)
|
|
Karsten Hopp |
81c285 |
! char_u *oldval;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_MENU
|
|
Karsten Hopp |
81c285 |
static int prev_menu_is_active = -1;
|
|
Karsten Hopp |
81c285 |
--- 3119,3125 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_init_which_components(oldval)
|
|
Karsten Hopp |
81c285 |
! char_u *oldval UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_MENU
|
|
Karsten Hopp |
81c285 |
static int prev_menu_is_active = -1;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4668,4675 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static win_T *
|
|
Karsten Hopp |
81c285 |
xy2win(x, y)
|
|
Karsten Hopp |
81c285 |
! int x;
|
|
Karsten Hopp |
81c285 |
! int y;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
int row;
|
|
Karsten Hopp |
81c285 |
--- 4668,4675 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static win_T *
|
|
Karsten Hopp |
81c285 |
xy2win(x, y)
|
|
Karsten Hopp |
81c285 |
! int x UNUSED;
|
|
Karsten Hopp |
81c285 |
! int y UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_WINDOWS
|
|
Karsten Hopp |
81c285 |
int row;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 5121,5128 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_handle_drop(x, y, modifiers, fnames, count)
|
|
Karsten Hopp |
81c285 |
! int x;
|
|
Karsten Hopp |
81c285 |
! int y;
|
|
Karsten Hopp |
81c285 |
int_u modifiers;
|
|
Karsten Hopp |
81c285 |
char_u **fnames;
|
|
Karsten Hopp |
81c285 |
int count;
|
|
Karsten Hopp |
81c285 |
--- 5121,5128 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_handle_drop(x, y, modifiers, fnames, count)
|
|
Karsten Hopp |
81c285 |
! int x UNUSED;
|
|
Karsten Hopp |
81c285 |
! int y UNUSED;
|
|
Karsten Hopp |
81c285 |
int_u modifiers;
|
|
Karsten Hopp |
81c285 |
char_u **fnames;
|
|
Karsten Hopp |
81c285 |
int count;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_beval.c 2009-05-17 16:23:20.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/gui_beval.c 2009-05-21 15:03:02.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 18,24 ****
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
general_beval_cb(beval, state)
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval;
|
|
Karsten Hopp |
81c285 |
! int state;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
int col;
|
|
Karsten Hopp |
81c285 |
--- 18,24 ----
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
general_beval_cb(beval, state)
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval;
|
|
Karsten Hopp |
81c285 |
! int state UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *wp;
|
|
Karsten Hopp |
81c285 |
int col;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 726,735 ****
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
pointerEventEH(w, client_data, event, unused)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *unused;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval = (BalloonEval *)client_data;
|
|
Karsten Hopp |
81c285 |
pointerEvent(beval, event);
|
|
Karsten Hopp |
81c285 |
--- 726,735 ----
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
pointerEventEH(w, client_data, event, unused)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *unused UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval = (BalloonEval *)client_data;
|
|
Karsten Hopp |
81c285 |
pointerEvent(beval, event);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 877,883 ****
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
timerRoutine(dx, id)
|
|
Karsten Hopp |
81c285 |
XtPointer dx;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval = (BalloonEval *)dx;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 877,883 ----
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
timerRoutine(dx, id)
|
|
Karsten Hopp |
81c285 |
XtPointer dx;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval = (BalloonEval *)dx;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_at_sb.c 2008-11-28 21:26:50.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/gui_at_sb.c 2009-05-21 16:38:53.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 198,207 ****
|
|
Karsten Hopp |
81c285 |
/* extension */ NULL
|
|
Karsten Hopp |
81c285 |
},
|
|
Karsten Hopp |
81c285 |
{ /* simple fields */
|
|
Karsten Hopp |
81c285 |
! /* change_sensitive */ XtInheritChangeSensitive
|
|
Karsten Hopp |
81c285 |
},
|
|
Karsten Hopp |
81c285 |
{ /* scrollbar fields */
|
|
Karsten Hopp |
81c285 |
! /* ignore */ 0
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 198,210 ----
|
|
Karsten Hopp |
81c285 |
/* extension */ NULL
|
|
Karsten Hopp |
81c285 |
},
|
|
Karsten Hopp |
81c285 |
{ /* simple fields */
|
|
Karsten Hopp |
81c285 |
! /* change_sensitive */ XtInheritChangeSensitive,
|
|
Karsten Hopp |
81c285 |
! #ifndef OLDXAW
|
|
Karsten Hopp |
81c285 |
! /* extension */ NULL
|
|
Karsten Hopp |
81c285 |
! #endif
|
|
Karsten Hopp |
81c285 |
},
|
|
Karsten Hopp |
81c285 |
{ /* scrollbar fields */
|
|
Karsten Hopp |
81c285 |
! /* empty */ 0
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 241,247 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (bottom <= 0 || bottom <= top)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
! if ((sw = sbw->scrollbar.shadow_width) < 0)
|
|
Karsten Hopp |
81c285 |
sw = 0;
|
|
Karsten Hopp |
81c285 |
margin = MARGIN (sbw);
|
|
Karsten Hopp |
81c285 |
floor = sbw->scrollbar.length - margin + 2;
|
|
Karsten Hopp |
81c285 |
--- 244,251 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
if (bottom <= 0 || bottom <= top)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
! sw = sbw->scrollbar.shadow_width;
|
|
Karsten Hopp |
81c285 |
! if (sw < 0)
|
|
Karsten Hopp |
81c285 |
sw = 0;
|
|
Karsten Hopp |
81c285 |
margin = MARGIN (sbw);
|
|
Karsten Hopp |
81c285 |
floor = sbw->scrollbar.length - margin + 2;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 516,528 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
Initialize(request, new, args, num_args)
|
|
Karsten Hopp |
81c285 |
! Widget request; /* what the client asked for */
|
|
Karsten Hopp |
81c285 |
Widget new; /* what we're going to give him */
|
|
Karsten Hopp |
81c285 |
! ArgList args;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_args;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) new;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 520,531 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
Initialize(request, new, args, num_args)
|
|
Karsten Hopp |
81c285 |
! Widget request UNUSED; /* what the client asked for */
|
|
Karsten Hopp |
81c285 |
Widget new; /* what we're going to give him */
|
|
Karsten Hopp |
81c285 |
! ArgList args UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_args UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) new;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 556,569 ****
|
|
Karsten Hopp |
81c285 |
(w, valueMask, attributes);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static Boolean
|
|
Karsten Hopp |
81c285 |
SetValues(current, request, desired, args, num_args)
|
|
Karsten Hopp |
81c285 |
! Widget current, /* what I am */
|
|
Karsten Hopp |
81c285 |
! request, /* what he wants me to be */
|
|
Karsten Hopp |
81c285 |
! desired; /* what I will become */
|
|
Karsten Hopp |
81c285 |
! ArgList args;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_args;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) current;
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget dsbw = (ScrollbarWidget) desired;
|
|
Karsten Hopp |
81c285 |
--- 559,571 ----
|
|
Karsten Hopp |
81c285 |
(w, valueMask, attributes);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static Boolean
|
|
Karsten Hopp |
81c285 |
SetValues(current, request, desired, args, num_args)
|
|
Karsten Hopp |
81c285 |
! Widget current; /* what I am */
|
|
Karsten Hopp |
81c285 |
! Widget request UNUSED; /* what he wants me to be */
|
|
Karsten Hopp |
81c285 |
! Widget desired; /* what I will become */
|
|
Karsten Hopp |
81c285 |
! ArgList args UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_args UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) current;
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget dsbw = (ScrollbarWidget) desired;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 609,615 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
Redisplay(w, event, region)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
--- 611,616 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 789,799 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
RepeatNotify(client_data, idp)
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *idp;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) client_data;
|
|
Karsten Hopp |
81c285 |
int call_data;
|
|
Karsten Hopp |
81c285 |
--- 790,799 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
RepeatNotify(client_data, idp)
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *idp UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) client_data;
|
|
Karsten Hopp |
81c285 |
int call_data;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 839,884 ****
|
|
Karsten Hopp |
81c285 |
return (num < small) ? small : ((num > big) ? big : num);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollOneLineUp(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, -ONE_LINE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollOneLineDown(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, ONE_LINE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollPageDown(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, ONE_PAGE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollPageUp(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, -ONE_PAGE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 839,880 ----
|
|
Karsten Hopp |
81c285 |
return (num < small) ? small : ((num > big) ? big : num);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollOneLineUp(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, -ONE_LINE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollOneLineDown(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, ONE_LINE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollPageDown(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, ONE_PAGE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
ScrollPageUp(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollSome(w, event, -ONE_PAGE_DATA);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 901,913 ****
|
|
Karsten Hopp |
81c285 |
XtCallCallbacks(w, XtNscrollProc, (XtPointer)call_data);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
NotifyScroll(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) w;
|
|
Karsten Hopp |
81c285 |
Position x, y, loc;
|
|
Karsten Hopp |
81c285 |
--- 897,908 ----
|
|
Karsten Hopp |
81c285 |
XtCallCallbacks(w, XtNscrollProc, (XtPointer)call_data);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
NotifyScroll(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) w;
|
|
Karsten Hopp |
81c285 |
Position x, y, loc;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 991,1003 ****
|
|
Karsten Hopp |
81c285 |
delay, RepeatNotify, (XtPointer)w);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
EndScroll(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XEvent *event; /* unused */
|
|
Karsten Hopp |
81c285 |
! String *params; /* unused */
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params; /* unused */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) w;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 986,997 ----
|
|
Karsten Hopp |
81c285 |
delay, RepeatNotify, (XtPointer)w);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
EndScroll(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget) w;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1023,1035 ****
|
|
Karsten Hopp |
81c285 |
return PICKLENGTH(sbw, x / width, y / height);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
MoveThumb(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params; /* unused */
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params; /* unused */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget)w;
|
|
Karsten Hopp |
81c285 |
Position x, y;
|
|
Karsten Hopp |
81c285 |
--- 1017,1028 ----
|
|
Karsten Hopp |
81c285 |
return PICKLENGTH(sbw, x / width, y / height);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
MoveThumb(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget)w;
|
|
Karsten Hopp |
81c285 |
Position x, y;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1069,1081 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
NotifyThumb(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params; /* unused */
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params; /* unused */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget)w;
|
|
Karsten Hopp |
81c285 |
/* Use a union to avoid a warning for the weird conversion from float to
|
|
Karsten Hopp |
81c285 |
--- 1062,1073 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
NotifyThumb(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
ScrollbarWidget sbw = (ScrollbarWidget)w;
|
|
Karsten Hopp |
81c285 |
/* Use a union to avoid a warning for the weird conversion from float to
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1096,1102 ****
|
|
Karsten Hopp |
81c285 |
XtCallCallbacks(w, XtNjumpProc, (XtPointer)&sbw->scrollbar.top);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
AllocTopShadowGC(w)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
--- 1088,1093 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1110,1116 ****
|
|
Karsten Hopp |
81c285 |
sbw->scrollbar.top_shadow_GC = XtGetGC(w, valuemask, &myXGCV);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
AllocBotShadowGC(w)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
--- 1101,1106 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1124,1134 ****
|
|
Karsten Hopp |
81c285 |
sbw->scrollbar.bot_shadow_GC = XtGetGC(w, valuemask, &myXGCV);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
_Xaw3dDrawShadows(gw, event, region, out)
|
|
Karsten Hopp |
81c285 |
Widget gw;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
Region region;
|
|
Karsten Hopp |
81c285 |
int out;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1114,1123 ----
|
|
Karsten Hopp |
81c285 |
sbw->scrollbar.bot_shadow_GC = XtGetGC(w, valuemask, &myXGCV);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
_Xaw3dDrawShadows(gw, event, region, out)
|
|
Karsten Hopp |
81c285 |
Widget gw;
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
Region region;
|
|
Karsten Hopp |
81c285 |
int out;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_at_fs.c 2006-05-13 15:51:07.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/gui_at_fs.c 2009-05-21 16:38:36.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 829,835 ****
|
|
Karsten Hopp |
81c285 |
text.format = FMT8BIT;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef XtNinternational
|
|
Karsten Hopp |
81c285 |
! if (_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XawTextReplace(selFileField, (XawTextPosition)0,
|
|
Karsten Hopp |
81c285 |
(XawTextPosition)WcsLen((wchar_t *)&SFtextBuffer[0]), &text);
|
|
Karsten Hopp |
81c285 |
--- 829,835 ----
|
|
Karsten Hopp |
81c285 |
text.format = FMT8BIT;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef XtNinternational
|
|
Karsten Hopp |
81c285 |
! if ((unsigned long)_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XawTextReplace(selFileField, (XawTextPosition)0,
|
|
Karsten Hopp |
81c285 |
(XawTextPosition)WcsLen((wchar_t *)&SFtextBuffer[0]), &text);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 851,867 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFbuttonPressList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! int n;
|
|
Karsten Hopp |
81c285 |
! XButtonPressedEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFbuttonPressed = 1;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFbuttonReleaseList(w, n, event)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
--- 851,865 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFbuttonPressList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! int n UNUSED;
|
|
Karsten Hopp |
81c285 |
! XButtonPressedEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFbuttonPressed = 1;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFbuttonReleaseList(w, n, event)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 989,999 ****
|
|
Karsten Hopp |
81c285 |
return result;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFdirModTimer(cl, id)
|
|
Karsten Hopp |
81c285 |
! XtPointer cl;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static int n = -1;
|
|
Karsten Hopp |
81c285 |
static int f = 0;
|
|
Karsten Hopp |
81c285 |
--- 987,996 ----
|
|
Karsten Hopp |
81c285 |
return result;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFdirModTimer(cl, id)
|
|
Karsten Hopp |
81c285 |
! XtPointer cl UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
static int n = -1;
|
|
Karsten Hopp |
81c285 |
static int f = 0;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1596,1606 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFscrollTimer __ARGS((XtPointer p, XtIntervalId *id));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFscrollTimer(p, id)
|
|
Karsten Hopp |
81c285 |
XtPointer p;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFDir *dir;
|
|
Karsten Hopp |
81c285 |
int save;
|
|
Karsten Hopp |
81c285 |
--- 1593,1602 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFscrollTimer __ARGS((XtPointer p, XtIntervalId *id));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFscrollTimer(p, id)
|
|
Karsten Hopp |
81c285 |
XtPointer p;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFDir *dir;
|
|
Karsten Hopp |
81c285 |
int save;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1695,1704 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFenterList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
XEnterWindowEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1691,1699 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFenterList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
XEnterWindowEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1719,1730 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFleaveList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (SFcurrentInvert[n] != -1)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1714,1724 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFleaveList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (SFcurrentInvert[n] != -1)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1733,1742 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFmotionList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
XMotionEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1727,1735 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFmotionList(w, n, event)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
XMotionEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1754,1760 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFvFloatSliderMovedCallback(w, n, fnew)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
--- 1747,1752 ----
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1767,1776 ****
|
|
Karsten Hopp |
81c285 |
SFvSliderMovedCallback(w, (int)(long)n, nw);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFvSliderMovedCallback(w, n, nw)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
int nw;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1759,1767 ----
|
|
Karsten Hopp |
81c285 |
SFvSliderMovedCallback(w, (int)(long)n, nw);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFvSliderMovedCallback(w, n, nw)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
int n;
|
|
Karsten Hopp |
81c285 |
int nw;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1853,1862 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFvAreaSelectedCallback(w, n, pnew)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XtPointer pnew;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1844,1852 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFvAreaSelectedCallback(w, n, pnew)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XtPointer pnew;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1914,1923 ****
|
|
Karsten Hopp |
81c285 |
SFvSliderMovedCallback(w, (int)(long)n, nw);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFhSliderMovedCallback(w, n, nw)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XtPointer nw;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1904,1912 ----
|
|
Karsten Hopp |
81c285 |
SFvSliderMovedCallback(w, (int)(long)n, nw);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFhSliderMovedCallback(w, n, nw)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XtPointer nw;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1933,1942 ****
|
|
Karsten Hopp |
81c285 |
SFdrawList((int)(long)n, SF_DO_NOT_SCROLL);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFhAreaSelectedCallback(w, n, pnew)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XtPointer pnew;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 1922,1930 ----
|
|
Karsten Hopp |
81c285 |
SFdrawList((int)(long)n, SF_DO_NOT_SCROLL);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFhAreaSelectedCallback(w, n, pnew)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XtPointer pnew;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1994,2004 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFpathSliderMovedCallback(w, client_data, nw)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XtPointer nw;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFDir *dir;
|
|
Karsten Hopp |
81c285 |
--- 1982,1991 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFpathSliderMovedCallback(w, client_data, nw)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer nw;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFDir *dir;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2031,2041 ****
|
|
Karsten Hopp |
81c285 |
XawTextSetInsertionPoint(selFileField, pos);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFpathAreaSelectedCallback(w, client_data, pnew)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XtPointer pnew;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nw = (int)(long)pnew;
|
|
Karsten Hopp |
81c285 |
--- 2018,2027 ----
|
|
Karsten Hopp |
81c285 |
XawTextSetInsertionPoint(selFileField, pos);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFpathAreaSelectedCallback(w, client_data, pnew)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer pnew;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nw = (int)(long)pnew;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2206,2218 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFexposeList __ARGS((Widget w, XtPointer n, XEvent *event, Boolean *cont));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFexposeList(w, n, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if ((event->type == NoExpose) || event->xexpose.count)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
--- 2192,2203 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFexposeList __ARGS((Widget w, XtPointer n, XEvent *event, Boolean *cont));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFexposeList(w, n, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer n;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if ((event->type == NoExpose) || event->xexpose.count)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2222,2234 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFmodVerifyCallback __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *cont));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFmodVerifyCallback(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char buf[2];
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 2207,2218 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFmodVerifyCallback __ARGS((Widget w, XtPointer client_data, XEvent *event, Boolean *cont));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFmodVerifyCallback(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char buf[2];
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2241,2251 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFokCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFokCallback(w, cl, cd)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer cl, cd;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFstatus = SEL_FILE_OK;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 2225,2235 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFokCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFokCallback(w, cl, cd)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer cl UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer cd UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFstatus = SEL_FILE_OK;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2258,2268 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFcancelCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFcancelCallback(w, cl, cd)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer cl, cd;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFstatus = SEL_FILE_CANCEL;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 2242,2252 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFcancelCallback __ARGS((Widget w, XtPointer cl, XtPointer cd));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFcancelCallback(w, cl, cd)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer cl UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer cd UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SFstatus = SEL_FILE_CANCEL;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2275,2290 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFdismissAction __ARGS((Widget w, XEvent *event, String *params, Cardinal *num_params));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFdismissAction(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! if (event->type == ClientMessage &&
|
|
Karsten Hopp |
81c285 |
! event->xclient.data.l[0] != SFwmDeleteWindow)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
SFstatus = SEL_FILE_CANCEL;
|
|
Karsten Hopp |
81c285 |
--- 2259,2273 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void SFdismissAction __ARGS((Widget w, XEvent *event, String *params, Cardinal *num_params));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
SFdismissAction(w, event, params, num_params)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED;
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
! if (event->type == ClientMessage
|
|
Karsten Hopp |
81c285 |
! && (Atom)event->xclient.data.l[0] != SFwmDeleteWindow)
|
|
Karsten Hopp |
81c285 |
return;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
SFstatus = SEL_FILE_CANCEL;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2703,2709 ****
|
|
Karsten Hopp |
81c285 |
SFtextChanged()
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_XFONTSET) && defined(XtNinternational)
|
|
Karsten Hopp |
81c285 |
! if (_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
wchar_t *wcbuf=(wchar_t *)SFtextBuffer;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 2686,2692 ----
|
|
Karsten Hopp |
81c285 |
SFtextChanged()
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_XFONTSET) && defined(XtNinternational)
|
|
Karsten Hopp |
81c285 |
! if ((unsigned long)_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
wchar_t *wcbuf=(wchar_t *)SFtextBuffer;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2749,2755 ****
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_XFONTSET) && defined(XtNinternational)
|
|
Karsten Hopp |
81c285 |
char *buf;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
wchar_t *wcbuf;
|
|
Karsten Hopp |
81c285 |
int mbslength;
|
|
Karsten Hopp |
81c285 |
--- 2732,2738 ----
|
|
Karsten Hopp |
81c285 |
#if defined(FEAT_XFONTSET) && defined(XtNinternational)
|
|
Karsten Hopp |
81c285 |
char *buf;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if ((unsigned long)_XawTextFormat((TextWidget)selFileField) == XawFmtWide)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
wchar_t *wcbuf;
|
|
Karsten Hopp |
81c285 |
int mbslength;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_motif.c 2008-06-20 11:39:30.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/gui_motif.c 2009-05-21 17:15:05.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 117,126 ****
|
|
Karsten Hopp |
81c285 |
* Call-back routines.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
scroll_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
scrollbar_T *sb;
|
|
Karsten Hopp |
81c285 |
--- 117,125 ----
|
|
Karsten Hopp |
81c285 |
* Call-back routines.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
scroll_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
scrollbar_T *sb;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 136,146 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_GUI_TABLINE
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmNotebookCallbackStruct *nptr;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 135,145 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_GUI_TABLINE
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmNotebookCallbackStruct *nptr;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 149,159 ****
|
|
Karsten Hopp |
81c285 |
send_tabline_event(nptr->page_number);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_button_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data, call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int cmd, tab_idx;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 148,158 ----
|
|
Karsten Hopp |
81c285 |
send_tabline_event(nptr->page_number);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_button_cb(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int cmd, tab_idx;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 166,176 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Tabline single mouse click timeout handler
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
motif_tabline_timer_cb (timed_out, interval_id)
|
|
Karsten Hopp |
81c285 |
XtPointer timed_out;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *interval_id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*((int *)timed_out) = TRUE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 165,174 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Tabline single mouse click timeout handler
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
motif_tabline_timer_cb (timed_out, interval_id)
|
|
Karsten Hopp |
81c285 |
XtPointer timed_out;
|
|
Karsten Hopp |
81c285 |
! XtIntervalId *interval_id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*((int *)timed_out) = TRUE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 203,215 ****
|
|
Karsten Hopp |
81c285 |
return FALSE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_menu_cb(w, closure, e, continue_dispatch)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer closure;
|
|
Karsten Hopp |
81c285 |
XEvent *e;
|
|
Karsten Hopp |
81c285 |
! Boolean *continue_dispatch;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Widget tab_w;
|
|
Karsten Hopp |
81c285 |
XButtonPressedEvent *event;
|
|
Karsten Hopp |
81c285 |
--- 201,212 ----
|
|
Karsten Hopp |
81c285 |
return FALSE;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_menu_cb(w, closure, e, continue_dispatch)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer closure UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *e;
|
|
Karsten Hopp |
81c285 |
! Boolean *continue_dispatch UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Widget tab_w;
|
|
Karsten Hopp |
81c285 |
XButtonPressedEvent *event;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 277,287 ****
|
|
Karsten Hopp |
81c285 |
XtManageChild(tabLine_menu);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_balloon_cb(beval, state)
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval;
|
|
Karsten Hopp |
81c285 |
! int state;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr;
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
--- 274,283 ----
|
|
Karsten Hopp |
81c285 |
XtManageChild(tabLine_menu);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
tabline_balloon_cb(beval, state)
|
|
Karsten Hopp |
81c285 |
BalloonEval *beval;
|
|
Karsten Hopp |
81c285 |
! int state UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int nr;
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 642,654 ****
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_set_text_area_pos(x, y, w, h)
|
|
Karsten Hopp |
81c285 |
! int x;
|
|
Karsten Hopp |
81c285 |
! int y;
|
|
Karsten Hopp |
81c285 |
! int w;
|
|
Karsten Hopp |
81c285 |
! int h;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_TOOLBAR
|
|
Karsten Hopp |
81c285 |
/* Give keyboard focus to the textArea instead of the toolbar. */
|
|
Karsten Hopp |
81c285 |
--- 638,649 ----
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_set_text_area_pos(x, y, w, h)
|
|
Karsten Hopp |
81c285 |
! int x UNUSED;
|
|
Karsten Hopp |
81c285 |
! int y UNUSED;
|
|
Karsten Hopp |
81c285 |
! int w UNUSED;
|
|
Karsten Hopp |
81c285 |
! int h UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_TOOLBAR
|
|
Karsten Hopp |
81c285 |
/* Give keyboard focus to the textArea instead of the toolbar. */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1261,1267 ****
|
|
Karsten Hopp |
81c285 |
if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (menu->iconidx >= 0 && menu->iconidx
|
|
Karsten Hopp |
81c285 |
! < (sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
|
|
Karsten Hopp |
81c285 |
xpm = built_in_pixmaps[menu->iconidx];
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
xpm = tb_blank_xpm;
|
|
Karsten Hopp |
81c285 |
--- 1256,1262 ----
|
|
Karsten Hopp |
81c285 |
if (menu->icon_builtin || gui_find_bitmap(menu->name, buf, "xpm") == FAIL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (menu->iconidx >= 0 && menu->iconidx
|
|
Karsten Hopp |
81c285 |
! < (int)(sizeof(built_in_pixmaps) / sizeof(built_in_pixmaps[0])))
|
|
Karsten Hopp |
81c285 |
xpm = built_in_pixmaps[menu->iconidx];
|
|
Karsten Hopp |
81c285 |
else
|
|
Karsten Hopp |
81c285 |
xpm = tb_blank_xpm;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1716,1725 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_show_popupmenu(menu)
|
|
Karsten Hopp |
81c285 |
! vimmenu_T *menu;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef MOTIF_POPUP
|
|
Karsten Hopp |
81c285 |
XmMenuPosition(menu->submenu_id, gui_x11_get_last_mouse_event());
|
|
Karsten Hopp |
81c285 |
--- 1711,1719 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_mch_show_popupmenu(menu)
|
|
Karsten Hopp |
81c285 |
! vimmenu_T *menu UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef MOTIF_POPUP
|
|
Karsten Hopp |
81c285 |
XmMenuPosition(menu->submenu_id, gui_x11_get_last_mouse_event());
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2046,2054 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Callback routine for dialog mnemonic processing.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! mnemonic_event(Widget w, XtPointer call_data, XKeyEvent *event)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
do_mnemonic(w, event->keycode);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 2040,2047 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Callback routine for dialog mnemonic processing.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! mnemonic_event(Widget w, XtPointer call_data UNUSED, XKeyEvent *event)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
do_mnemonic(w, event->keycode);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2287,2299 ****
|
|
Karsten Hopp |
81c285 |
* Put up a file requester.
|
|
Karsten Hopp |
81c285 |
* Returns the selected name in allocated memory, or NULL for Cancel.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
gui_mch_browse(saving, title, dflt, ext, initdir, filter)
|
|
Karsten Hopp |
81c285 |
! int saving; /* select file to write */
|
|
Karsten Hopp |
81c285 |
char_u *title; /* title for the window */
|
|
Karsten Hopp |
81c285 |
char_u *dflt; /* default name */
|
|
Karsten Hopp |
81c285 |
! char_u *ext; /* not used (extension added) */
|
|
Karsten Hopp |
81c285 |
char_u *initdir; /* initial directory, NULL for current dir */
|
|
Karsten Hopp |
81c285 |
char_u *filter; /* file name filter */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 2280,2291 ----
|
|
Karsten Hopp |
81c285 |
* Put up a file requester.
|
|
Karsten Hopp |
81c285 |
* Returns the selected name in allocated memory, or NULL for Cancel.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
char_u *
|
|
Karsten Hopp |
81c285 |
gui_mch_browse(saving, title, dflt, ext, initdir, filter)
|
|
Karsten Hopp |
81c285 |
! int saving UNUSED; /* select file to write */
|
|
Karsten Hopp |
81c285 |
char_u *title; /* title for the window */
|
|
Karsten Hopp |
81c285 |
char_u *dflt; /* default name */
|
|
Karsten Hopp |
81c285 |
! char_u *ext UNUSED; /* not used (extension added) */
|
|
Karsten Hopp |
81c285 |
char_u *initdir; /* initial directory, NULL for current dir */
|
|
Karsten Hopp |
81c285 |
char_u *filter; /* file name filter */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2413,2424 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Process callback from Dialog cancel actions.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
DialogCancelCB(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w; /* widget id */
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data; /* data from application */
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data; /* data from widget class */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (browse_fname != NULL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 2405,2415 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Process callback from Dialog cancel actions.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
DialogCancelCB(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED; /* widget id */
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED; /* data from application */
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED; /* data from widget class */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (browse_fname != NULL)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2431,2442 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Process callback from Dialog actions.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
DialogAcceptCB(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w; /* widget id */
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data; /* data from application */
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data; /* data from widget class */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmFileSelectionBoxCallbackStruct *fcb;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 2422,2432 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Process callback from Dialog actions.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
DialogAcceptCB(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED; /* widget id */
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED; /* data from application */
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data; /* data from widget class */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmFileSelectionBoxCallbackStruct *fcb;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2467,2479 ****
|
|
Karsten Hopp |
81c285 |
* Callback function for the textfield. When CR is hit this works like
|
|
Karsten Hopp |
81c285 |
* hitting the "OK" button, ESC like "Cancel".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
keyhit_callback(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char buf[2];
|
|
Karsten Hopp |
81c285 |
KeySym key_sym;
|
|
Karsten Hopp |
81c285 |
--- 2457,2468 ----
|
|
Karsten Hopp |
81c285 |
* Callback function for the textfield. When CR is hit this works like
|
|
Karsten Hopp |
81c285 |
* hitting the "OK" button, ESC like "Cancel".
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
keyhit_callback(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char buf[2];
|
|
Karsten Hopp |
81c285 |
KeySym key_sym;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2490,2501 ****
|
|
Karsten Hopp |
81c285 |
XmTextFieldClearSelection(w, XtLastTimestampProcessed(gui.dpy));
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
butproc(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dialogStatus = (int)(long)client_data + 1;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 2479,2489 ----
|
|
Karsten Hopp |
81c285 |
XmTextFieldClearSelection(w, XtLastTimestampProcessed(gui.dpy));
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
butproc(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
dialogStatus = (int)(long)client_data + 1;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2567,2576 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /* ARGSUSED */
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
gui_mch_dialog(type, title, message, button_names, dfltbutton, textfield)
|
|
Karsten Hopp |
81c285 |
! int type;
|
|
Karsten Hopp |
81c285 |
char_u *title;
|
|
Karsten Hopp |
81c285 |
char_u *message;
|
|
Karsten Hopp |
81c285 |
char_u *button_names;
|
|
Karsten Hopp |
81c285 |
--- 2555,2563 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
gui_mch_dialog(type, title, message, button_names, dfltbutton, textfield)
|
|
Karsten Hopp |
81c285 |
! int type UNUSED;
|
|
Karsten Hopp |
81c285 |
char_u *title;
|
|
Karsten Hopp |
81c285 |
char_u *message;
|
|
Karsten Hopp |
81c285 |
char_u *button_names;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3197,3203 ****
|
|
Karsten Hopp |
81c285 |
XmNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XmNnumChildren, &numChildren, NULL);
|
|
Karsten Hopp |
81c285 |
borders += tst + tmh;
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < numChildren; i++)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
whgt = 0;
|
|
Karsten Hopp |
81c285 |
XtVaGetValues(children[i], XmNheight, &whgt, NULL);
|
|
Karsten Hopp |
81c285 |
--- 3184,3190 ----
|
|
Karsten Hopp |
81c285 |
XmNchildren, &children,
|
|
Karsten Hopp |
81c285 |
XmNnumChildren, &numChildren, NULL);
|
|
Karsten Hopp |
81c285 |
borders += tst + tmh;
|
|
Karsten Hopp |
81c285 |
! for (i = 0; i < (int)numChildren; i++)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
whgt = 0;
|
|
Karsten Hopp |
81c285 |
XtVaGetValues(children[i], XmNheight, &whgt, NULL);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3237,3249 ****
|
|
Karsten Hopp |
81c285 |
* I have to use footer help for backwards compatability. Hopefully both will
|
|
Karsten Hopp |
81c285 |
* get implemented and the user will have a choice.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
toolbarbutton_enter_cb(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu = (vimmenu_T *) client_data;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 3224,3235 ----
|
|
Karsten Hopp |
81c285 |
* I have to use footer help for backwards compatability. Hopefully both will
|
|
Karsten Hopp |
81c285 |
* get implemented and the user will have a choice.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
toolbarbutton_enter_cb(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
vimmenu_T *menu = (vimmenu_T *) client_data;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3254,3266 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
toolbarbutton_leave_cb(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XEvent *event;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_mch_set_footer((char_u *) "");
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
--- 3240,3251 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
toolbarbutton_leave_cb(w, client_data, event, cont)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
! XtPointer client_data UNUSED;
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED;
|
|
Karsten Hopp |
81c285 |
! Boolean *cont UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
gui_mch_set_footer((char_u *) "");
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3492,3501 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Set the fontlist for Widget "id" to use gui.menu_fontset or gui.menu_font.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_motif_menu_fontlist(id)
|
|
Karsten Hopp |
81c285 |
! Widget id;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_MENU
|
|
Karsten Hopp |
81c285 |
#ifdef FONTSET_ALWAYS
|
|
Karsten Hopp |
81c285 |
--- 3477,3485 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* Set the fontlist for Widget "id" to use gui.menu_fontset or gui.menu_font.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
gui_motif_menu_fontlist(id)
|
|
Karsten Hopp |
81c285 |
! Widget id UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_MENU
|
|
Karsten Hopp |
81c285 |
#ifdef FONTSET_ALWAYS
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3566,3573 ****
|
|
Karsten Hopp |
81c285 |
Widget cancel;
|
|
Karsten Hopp |
81c285 |
} SharedFindReplace;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! static SharedFindReplace find_widgets = { NULL };
|
|
Karsten Hopp |
81c285 |
! static SharedFindReplace repl_widgets = { NULL };
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void find_replace_destroy_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
|
Karsten Hopp |
81c285 |
static void find_replace_dismiss_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
|
Karsten Hopp |
81c285 |
--- 3550,3557 ----
|
|
Karsten Hopp |
81c285 |
Widget cancel;
|
|
Karsten Hopp |
81c285 |
} SharedFindReplace;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! static SharedFindReplace find_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
|
|
Karsten Hopp |
81c285 |
! static SharedFindReplace repl_widgets = {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void find_replace_destroy_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
|
Karsten Hopp |
81c285 |
static void find_replace_dismiss_callback __ARGS((Widget w, XtPointer client_data, XtPointer call_data));
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3576,3587 ****
|
|
Karsten Hopp |
81c285 |
static void find_replace_keypress __ARGS((Widget w, SharedFindReplace * frdp, XKeyEvent * event));
|
|
Karsten Hopp |
81c285 |
static void find_replace_dialog_create __ARGS((char_u *entry_text, int do_replace));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_destroy_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SharedFindReplace *cd = (SharedFindReplace *)client_data;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 3560,3570 ----
|
|
Karsten Hopp |
81c285 |
static void find_replace_keypress __ARGS((Widget w, SharedFindReplace * frdp, XKeyEvent * event));
|
|
Karsten Hopp |
81c285 |
static void find_replace_dialog_create __ARGS((char_u *entry_text, int do_replace));
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_destroy_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SharedFindReplace *cd = (SharedFindReplace *)client_data;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3590,3601 ****
|
|
Karsten Hopp |
81c285 |
cd->dialog = (Widget)0;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_dismiss_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SharedFindReplace *cd = (SharedFindReplace *)client_data;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 3573,3583 ----
|
|
Karsten Hopp |
81c285 |
cd->dialog = (Widget)0;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_dismiss_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
SharedFindReplace *cd = (SharedFindReplace *)client_data;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3603,3624 ****
|
|
Karsten Hopp |
81c285 |
XtUnmanageChild(cd->dialog);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
entry_activate_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmProcessTraversal((Widget)client_data, XmTRAVERSE_CURRENT);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
long_u flags = (long_u)client_data;
|
|
Karsten Hopp |
81c285 |
char *find_text, *repl_text;
|
|
Karsten Hopp |
81c285 |
--- 3585,3604 ----
|
|
Karsten Hopp |
81c285 |
XtUnmanageChild(cd->dialog);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
entry_activate_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmProcessTraversal((Widget)client_data, XmTRAVERSE_CURRENT);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_callback(w, client_data, call_data)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
XtPointer client_data;
|
|
Karsten Hopp |
81c285 |
! XtPointer call_data UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
long_u flags = (long_u)client_data;
|
|
Karsten Hopp |
81c285 |
char *find_text, *repl_text;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3668,3677 ****
|
|
Karsten Hopp |
81c285 |
XtFree(repl_text);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_keypress(w, frdp, event)
|
|
Karsten Hopp |
81c285 |
! Widget w;
|
|
Karsten Hopp |
81c285 |
SharedFindReplace *frdp;
|
|
Karsten Hopp |
81c285 |
XKeyEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 3648,3656 ----
|
|
Karsten Hopp |
81c285 |
XtFree(repl_text);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
find_replace_keypress(w, frdp, event)
|
|
Karsten Hopp |
81c285 |
! Widget w UNUSED;
|
|
Karsten Hopp |
81c285 |
SharedFindReplace *frdp;
|
|
Karsten Hopp |
81c285 |
XKeyEvent *event;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_xmdlg.c 2008-11-28 21:26:50.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/gui_xmdlg.c 2009-05-21 17:01:52.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 448,454 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
items[i] = XmStringCreateLocalized(list[ENCODING][i]);
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (i < n_items)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* recycle old button */
|
|
Karsten Hopp |
81c285 |
XtVaSetValues(children[i],
|
|
Karsten Hopp |
81c285 |
--- 448,454 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
items[i] = XmStringCreateLocalized(list[ENCODING][i]);
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if (i < (int)n_items)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
/* recycle old button */
|
|
Karsten Hopp |
81c285 |
XtVaSetValues(children[i],
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 481,487 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Destroy all the outstanding menu items.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! for (i = count[ENCODING]; i < n_items; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XtUnmanageChild(children[i]);
|
|
Karsten Hopp |
81c285 |
XtDestroyWidget(children[i]);
|
|
Karsten Hopp |
81c285 |
--- 481,487 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Destroy all the outstanding menu items.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
! for (i = count[ENCODING]; i < (int)n_items; ++i)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XtUnmanageChild(children[i]);
|
|
Karsten Hopp |
81c285 |
XtDestroyWidget(children[i]);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 544,552 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! stoggle_callback(Widget w,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
XmToggleButtonCallbackStruct *call_data)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 544,551 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! stoggle_callback(Widget w UNUSED,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
XmToggleButtonCallbackStruct *call_data)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 709,719 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
encoding_callback(Widget w,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
! XtPointer dummy)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmString str;
|
|
Karsten Hopp |
81c285 |
XmListCallbackStruct fake_data;
|
|
Karsten Hopp |
81c285 |
--- 708,717 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
encoding_callback(Widget w,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
! XtPointer dummy UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmString str;
|
|
Karsten Hopp |
81c285 |
XmListCallbackStruct fake_data;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 752,762 ****
|
|
Karsten Hopp |
81c285 |
do_choice(w, data, call_data, SIZE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! cancel_callback(Widget w,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
! XmListCallbackStruct *call_data)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (data->sel[ENCODING])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 750,759 ----
|
|
Karsten Hopp |
81c285 |
do_choice(w, data, call_data, SIZE);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! cancel_callback(Widget w UNUSED,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
! XmListCallbackStruct *call_data UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (data->sel[ENCODING])
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 789,799 ****
|
|
Karsten Hopp |
81c285 |
data->exit = True;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! ok_callback(Widget w,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
! XmPushButtonCallbackStruct *call_data)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *pattern;
|
|
Karsten Hopp |
81c285 |
char **name;
|
|
Karsten Hopp |
81c285 |
--- 786,795 ----
|
|
Karsten Hopp |
81c285 |
data->exit = True;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! ok_callback(Widget w UNUSED,
|
|
Karsten Hopp |
81c285 |
SharedFontSelData *data,
|
|
Karsten Hopp |
81c285 |
! XmPushButtonCallbackStruct *call_data UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *pattern;
|
|
Karsten Hopp |
81c285 |
char **name;
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/gui_xmebw.c 2008-11-28 21:26:50.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/gui_xmebw.c 2009-05-21 17:06:17.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 235,247 ****
|
|
Karsten Hopp |
81c285 |
return tmp;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
alloc_color(Display *display,
|
|
Karsten Hopp |
81c285 |
Colormap colormap,
|
|
Karsten Hopp |
81c285 |
char *colorname,
|
|
Karsten Hopp |
81c285 |
XColor *xcolor,
|
|
Karsten Hopp |
81c285 |
! void *closure)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int status;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 235,246 ----
|
|
Karsten Hopp |
81c285 |
return tmp;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
alloc_color(Display *display,
|
|
Karsten Hopp |
81c285 |
Colormap colormap,
|
|
Karsten Hopp |
81c285 |
char *colorname,
|
|
Karsten Hopp |
81c285 |
XColor *xcolor,
|
|
Karsten Hopp |
81c285 |
! void *closure UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int status;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 595,603 ****
|
|
Karsten Hopp |
81c285 |
XtHeight(eb), eb->primitive.highlight_thickness);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! draw_pixmap(XmEnhancedButtonWidget eb, XEvent *event, Region region)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Pixmap pix;
|
|
Karsten Hopp |
81c285 |
GC gc = eb->label.normal_GC;
|
|
Karsten Hopp |
81c285 |
--- 594,603 ----
|
|
Karsten Hopp |
81c285 |
XtHeight(eb), eb->primitive.highlight_thickness);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! draw_pixmap(XmEnhancedButtonWidget eb,
|
|
Karsten Hopp |
81c285 |
! XEvent *event UNUSED,
|
|
Karsten Hopp |
81c285 |
! Region region UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
Pixmap pix;
|
|
Karsten Hopp |
81c285 |
GC gc = eb->label.normal_GC;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 641,647 ****
|
|
Karsten Hopp |
81c285 |
height = eb->core.height - 2 * y;
|
|
Karsten Hopp |
81c285 |
if (h < height)
|
|
Karsten Hopp |
81c285 |
height = h;
|
|
Karsten Hopp |
81c285 |
! if (depth == eb->core.depth)
|
|
Karsten Hopp |
81c285 |
XCopyArea(XtDisplay(eb), pix, XtWindow(eb), gc, 0, 0,
|
|
Karsten Hopp |
81c285 |
width, height, x, y);
|
|
Karsten Hopp |
81c285 |
else if (depth == 1)
|
|
Karsten Hopp |
81c285 |
--- 641,647 ----
|
|
Karsten Hopp |
81c285 |
height = eb->core.height - 2 * y;
|
|
Karsten Hopp |
81c285 |
if (h < height)
|
|
Karsten Hopp |
81c285 |
height = h;
|
|
Karsten Hopp |
81c285 |
! if (depth == (int)eb->core.depth)
|
|
Karsten Hopp |
81c285 |
XCopyArea(XtDisplay(eb), pix, XtWindow(eb), gc, 0, 0,
|
|
Karsten Hopp |
81c285 |
width, height, x, y);
|
|
Karsten Hopp |
81c285 |
else if (depth == 1)
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 731,739 ****
|
|
Karsten Hopp |
81c285 |
eb->label.normal_GC = tmp_gc;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! Enter(Widget wid, XEvent *event, String *params, Cardinal *num_params)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) wid;
|
|
Karsten Hopp |
81c285 |
XmPushButtonCallbackStruct call_value;
|
|
Karsten Hopp |
81c285 |
--- 731,741 ----
|
|
Karsten Hopp |
81c285 |
eb->label.normal_GC = tmp_gc;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! Enter(Widget wid,
|
|
Karsten Hopp |
81c285 |
! XEvent *event,
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED,
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) wid;
|
|
Karsten Hopp |
81c285 |
XmPushButtonCallbackStruct call_value;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 818,826 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! Leave(Widget wid, XEvent *event, String *params, Cardinal *num_params)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget)wid;
|
|
Karsten Hopp |
81c285 |
XmPushButtonCallbackStruct call_value;
|
|
Karsten Hopp |
81c285 |
--- 820,830 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! Leave(Widget wid,
|
|
Karsten Hopp |
81c285 |
! XEvent *event,
|
|
Karsten Hopp |
81c285 |
! String *params UNUSED,
|
|
Karsten Hopp |
81c285 |
! Cardinal *num_params UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget)wid;
|
|
Karsten Hopp |
81c285 |
XmPushButtonCallbackStruct call_value;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 976,984 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! Initialize(Widget rq, Widget ebw, ArgList args, Cardinal *n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget request = (XmEnhancedButtonWidget)rq;
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget)ebw;
|
|
Karsten Hopp |
81c285 |
--- 980,987 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
! Initialize(Widget rq, Widget ebw, ArgList args UNUSED, Cardinal *n UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget request = (XmEnhancedButtonWidget)rq;
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget)ebw;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1056,1064 ****
|
|
Karsten Hopp |
81c285 |
free_pixmaps((XmEnhancedButtonWidget)w);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static Boolean
|
|
Karsten Hopp |
81c285 |
! SetValues(Widget current, Widget request, Widget new, ArgList args, Cardinal *n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget cur = (XmEnhancedButtonWidget) current;
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) new;
|
|
Karsten Hopp |
81c285 |
--- 1059,1070 ----
|
|
Karsten Hopp |
81c285 |
free_pixmaps((XmEnhancedButtonWidget)w);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static Boolean
|
|
Karsten Hopp |
81c285 |
! SetValues(Widget current,
|
|
Karsten Hopp |
81c285 |
! Widget request UNUSED,
|
|
Karsten Hopp |
81c285 |
! Widget new,
|
|
Karsten Hopp |
81c285 |
! ArgList args UNUSED,
|
|
Karsten Hopp |
81c285 |
! Cardinal *n UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget cur = (XmEnhancedButtonWidget) current;
|
|
Karsten Hopp |
81c285 |
XmEnhancedButtonWidget eb = (XmEnhancedButtonWidget) new;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1108,1114 ****
|
|
Karsten Hopp |
81c285 |
if ((win_x < 0) || (win_y < 0))
|
|
Karsten Hopp |
81c285 |
return False;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if ((win_x > r_width) || (win_y > r_height))
|
|
Karsten Hopp |
81c285 |
return False;
|
|
Karsten Hopp |
81c285 |
draw_highlight(eb);
|
|
Karsten Hopp |
81c285 |
draw_shadows(eb);
|
|
Karsten Hopp |
81c285 |
--- 1114,1120 ----
|
|
Karsten Hopp |
81c285 |
if ((win_x < 0) || (win_y < 0))
|
|
Karsten Hopp |
81c285 |
return False;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
! if ((win_x > (int)r_width) || (win_y > (int)r_height))
|
|
Karsten Hopp |
81c285 |
return False;
|
|
Karsten Hopp |
81c285 |
draw_highlight(eb);
|
|
Karsten Hopp |
81c285 |
draw_shadows(eb);
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/if_python.c 2009-01-13 18:10:21.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/if_python.c 2009-05-21 17:27:50.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1096,1104 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Vim module - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! VimCommand(PyObject *self, PyObject *args)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *cmd;
|
|
Karsten Hopp |
81c285 |
PyObject *result;
|
|
Karsten Hopp |
81c285 |
--- 1096,1103 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Vim module - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! VimCommand(PyObject *self UNUSED, PyObject *args)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char *cmd;
|
|
Karsten Hopp |
81c285 |
PyObject *result;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1242,1250 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! VimEval(PyObject *self, PyObject *args)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
char *expr;
|
|
Karsten Hopp |
81c285 |
--- 1241,1248 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
#endif
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! VimEval(PyObject *self UNUSED, PyObject *args)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef FEAT_EVAL
|
|
Karsten Hopp |
81c285 |
char *expr;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1894,1902 ****
|
|
Karsten Hopp |
81c285 |
/* Buffer list object - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static PyInt
|
|
Karsten Hopp |
81c285 |
! BufListLength(PyObject *self)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf_T *b = firstbuf;
|
|
Karsten Hopp |
81c285 |
PyInt n = 0;
|
|
Karsten Hopp |
81c285 |
--- 1892,1899 ----
|
|
Karsten Hopp |
81c285 |
/* Buffer list object - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static PyInt
|
|
Karsten Hopp |
81c285 |
! BufListLength(PyObject *self UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf_T *b = firstbuf;
|
|
Karsten Hopp |
81c285 |
PyInt n = 0;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1910,1918 ****
|
|
Karsten Hopp |
81c285 |
return n;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! BufListItem(PyObject *self, PyInt n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf_T *b;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1907,1914 ----
|
|
Karsten Hopp |
81c285 |
return n;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! BufListItem(PyObject *self UNUSED, PyInt n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
buf_T *b;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2210,2218 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Window list object - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static PyInt
|
|
Karsten Hopp |
81c285 |
! WinListLength(PyObject *self)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *w = firstwin;
|
|
Karsten Hopp |
81c285 |
PyInt n = 0;
|
|
Karsten Hopp |
81c285 |
--- 2206,2213 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Window list object - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static PyInt
|
|
Karsten Hopp |
81c285 |
! WinListLength(PyObject *self UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *w = firstwin;
|
|
Karsten Hopp |
81c285 |
PyInt n = 0;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2226,2234 ****
|
|
Karsten Hopp |
81c285 |
return n;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! WinListItem(PyObject *self, PyInt n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *w;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 2221,2228 ----
|
|
Karsten Hopp |
81c285 |
return n;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! WinListItem(PyObject *self UNUSED, PyInt n)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *w;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2274,2282 ****
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Current items object - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! CurrentGetattr(PyObject *self, char *name)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (strcmp(name, "buffer") == 0)
|
|
Karsten Hopp |
81c285 |
return (PyObject *)BufferNew(curbuf);
|
|
Karsten Hopp |
81c285 |
--- 2268,2275 ----
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/* Current items object - Implementation
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static PyObject *
|
|
Karsten Hopp |
81c285 |
! CurrentGetattr(PyObject *self UNUSED, char *name)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (strcmp(name, "buffer") == 0)
|
|
Karsten Hopp |
81c285 |
return (PyObject *)BufferNew(curbuf);
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2295,2303 ****
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
! CurrentSetattr(PyObject *self, char *name, PyObject *value)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (strcmp(name, "line") == 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
--- 2288,2295 ----
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
! CurrentSetattr(PyObject *self UNUSED, char *name, PyObject *value)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
if (strcmp(name, "line") == 0)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/window.c 2009-02-22 02:36:36.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/window.c 2009-05-21 15:14:54.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1163,1174 ****
|
|
Karsten Hopp |
81c285 |
* WSP_NEWLOC may be specified in flags to prevent the location list from
|
|
Karsten Hopp |
81c285 |
* being copied.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
win_init(newp, oldp, flags)
|
|
Karsten Hopp |
81c285 |
win_T *newp;
|
|
Karsten Hopp |
81c285 |
win_T *oldp;
|
|
Karsten Hopp |
81c285 |
! int flags;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1163,1173 ----
|
|
Karsten Hopp |
81c285 |
* WSP_NEWLOC may be specified in flags to prevent the location list from
|
|
Karsten Hopp |
81c285 |
* being copied.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
win_init(newp, oldp, flags)
|
|
Karsten Hopp |
81c285 |
win_T *newp;
|
|
Karsten Hopp |
81c285 |
win_T *oldp;
|
|
Karsten Hopp |
81c285 |
! int flags UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int i;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1268,1278 ****
|
|
Karsten Hopp |
81c285 |
* Must be called when there is just one window, filling the whole screen
|
|
Karsten Hopp |
81c285 |
* (excluding the command line).
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
make_windows(count, vertical)
|
|
Karsten Hopp |
81c285 |
int count;
|
|
Karsten Hopp |
81c285 |
! int vertical; /* split windows vertically if TRUE */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int maxcount;
|
|
Karsten Hopp |
81c285 |
int todo;
|
|
Karsten Hopp |
81c285 |
--- 1267,1276 ----
|
|
Karsten Hopp |
81c285 |
* Must be called when there is just one window, filling the whole screen
|
|
Karsten Hopp |
81c285 |
* (excluding the command line).
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
make_windows(count, vertical)
|
|
Karsten Hopp |
81c285 |
int count;
|
|
Karsten Hopp |
81c285 |
! int vertical UNUSED; /* split windows vertically if TRUE */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int maxcount;
|
|
Karsten Hopp |
81c285 |
int todo;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 2353,2363 ****
|
|
Karsten Hopp |
81c285 |
* Remove a window and its frame from the tree of frames.
|
|
Karsten Hopp |
81c285 |
* Returns a pointer to the window that got the freed up space.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static win_T *
|
|
Karsten Hopp |
81c285 |
winframe_remove(win, dirp, tp)
|
|
Karsten Hopp |
81c285 |
win_T *win;
|
|
Karsten Hopp |
81c285 |
! int *dirp; /* set to 'v' or 'h' for direction if 'ea' */
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp; /* tab page "win" is in, NULL for current */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
frame_T *frp, *frp2, *frp3;
|
|
Karsten Hopp |
81c285 |
--- 2351,2360 ----
|
|
Karsten Hopp |
81c285 |
* Remove a window and its frame from the tree of frames.
|
|
Karsten Hopp |
81c285 |
* Returns a pointer to the window that got the freed up space.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static win_T *
|
|
Karsten Hopp |
81c285 |
winframe_remove(win, dirp, tp)
|
|
Karsten Hopp |
81c285 |
win_T *win;
|
|
Karsten Hopp |
81c285 |
! int *dirp UNUSED; /* set to 'v' or 'h' for direction if 'ea' */
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp; /* tab page "win" is in, NULL for current */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
frame_T *frp, *frp2, *frp3;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3500,3509 ****
|
|
Karsten Hopp |
81c285 |
* FAIL.
|
|
Karsten Hopp |
81c285 |
* Careful: When OK is returned need to get a new tab page very very soon!
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
leave_tabpage(new_curbuf)
|
|
Karsten Hopp |
81c285 |
! buf_T *new_curbuf; /* what is going to be the new curbuf,
|
|
Karsten Hopp |
81c285 |
NULL if unknown */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp = curtab;
|
|
Karsten Hopp |
81c285 |
--- 3497,3505 ----
|
|
Karsten Hopp |
81c285 |
* FAIL.
|
|
Karsten Hopp |
81c285 |
* Careful: When OK is returned need to get a new tab page very very soon!
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static int
|
|
Karsten Hopp |
81c285 |
leave_tabpage(new_curbuf)
|
|
Karsten Hopp |
81c285 |
! buf_T *new_curbuf UNUSED; /* what is going to be the new curbuf,
|
|
Karsten Hopp |
81c285 |
NULL if unknown */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp = curtab;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 3545,3555 ****
|
|
Karsten Hopp |
81c285 |
* Start using tab page "tp".
|
|
Karsten Hopp |
81c285 |
* Only to be used after leave_tabpage() or freeing the current tab page.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
enter_tabpage(tp, old_curbuf)
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
! buf_T *old_curbuf;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int old_off = tp->tp_firstwin->w_winrow;
|
|
Karsten Hopp |
81c285 |
win_T *next_prevwin = tp->tp_prevwin;
|
|
Karsten Hopp |
81c285 |
--- 3541,3550 ----
|
|
Karsten Hopp |
81c285 |
* Start using tab page "tp".
|
|
Karsten Hopp |
81c285 |
* Only to be used after leave_tabpage() or freeing the current tab page.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static void
|
|
Karsten Hopp |
81c285 |
enter_tabpage(tp, old_curbuf)
|
|
Karsten Hopp |
81c285 |
tabpage_T *tp;
|
|
Karsten Hopp |
81c285 |
! buf_T *old_curbuf UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
int old_off = tp->tp_firstwin->w_winrow;
|
|
Karsten Hopp |
81c285 |
win_T *next_prevwin = tp->tp_prevwin;
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 4157,4166 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* allocate a window structure and link it in the window list
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
static win_T *
|
|
Karsten Hopp |
81c285 |
win_alloc(after)
|
|
Karsten Hopp |
81c285 |
! win_T *after;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *newwin;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 4152,4160 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* allocate a window structure and link it in the window list
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
static win_T *
|
|
Karsten Hopp |
81c285 |
win_alloc(after)
|
|
Karsten Hopp |
81c285 |
! win_T *after UNUSED;
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
win_T *newwin;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/workshop.c 2008-11-28 11:47:14.000000000 +0100
|
|
Karsten Hopp |
81c285 |
--- src/workshop.c 2009-05-21 17:12:55.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 204,215 ****
|
|
Karsten Hopp |
81c285 |
* Function:
|
|
Karsten Hopp |
81c285 |
* Load a given file into the WorkShop buffer.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_load_file(
|
|
Karsten Hopp |
81c285 |
char *filename, /* the file to load */
|
|
Karsten Hopp |
81c285 |
int line, /* an optional line number (or 0) */
|
|
Karsten Hopp |
81c285 |
! char *frameid) /* used for multi-frame support */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
--- 204,214 ----
|
|
Karsten Hopp |
81c285 |
* Function:
|
|
Karsten Hopp |
81c285 |
* Load a given file into the WorkShop buffer.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_load_file(
|
|
Karsten Hopp |
81c285 |
char *filename, /* the file to load */
|
|
Karsten Hopp |
81c285 |
int line, /* an optional line number (or 0) */
|
|
Karsten Hopp |
81c285 |
! char *frameid UNUSED) /* used for multi-frame support */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 263,272 ****
|
|
Karsten Hopp |
81c285 |
load_window(filename, lineno);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_front_file(
|
|
Karsten Hopp |
81c285 |
! char *filename)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
--- 262,270 ----
|
|
Karsten Hopp |
81c285 |
load_window(filename, lineno);
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_front_file(
|
|
Karsten Hopp |
81c285 |
! char *filename UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 538,546 ****
|
|
Karsten Hopp |
81c285 |
* breakpoints have moved when a program has been recompiled and
|
|
Karsten Hopp |
81c285 |
* reloaded into dbx.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
! workshop_moved_marks(char *filename)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
--- 536,543 ----
|
|
Karsten Hopp |
81c285 |
* breakpoints have moved when a program has been recompiled and
|
|
Karsten Hopp |
81c285 |
* reloaded into dbx.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
! workshop_moved_marks(char *filename UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 575,585 ****
|
|
Karsten Hopp |
81c285 |
return (int)h;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_footer_message(
|
|
Karsten Hopp |
81c285 |
! char *message,
|
|
Karsten Hopp |
81c285 |
! int severity) /* severity is currently unused */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
--- 572,581 ----
|
|
Karsten Hopp |
81c285 |
return (int)h;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_footer_message(
|
|
Karsten Hopp |
81c285 |
! char *message,
|
|
Karsten Hopp |
81c285 |
! int severity UNUSED) /* severity is currently unused */
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
#ifdef WSDEBUG_TRACE
|
|
Karsten Hopp |
81c285 |
if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 687,701 ****
|
|
Karsten Hopp |
81c285 |
* command. The globals curMenuName and curMenuPriority contain the name and
|
|
Karsten Hopp |
81c285 |
* priority of the parent menu tree.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_menu_item(
|
|
Karsten Hopp |
81c285 |
char *label,
|
|
Karsten Hopp |
81c285 |
char *verb,
|
|
Karsten Hopp |
81c285 |
! char *accelerator,
|
|
Karsten Hopp |
81c285 |
char *acceleratorText,
|
|
Karsten Hopp |
81c285 |
! char *name,
|
|
Karsten Hopp |
81c285 |
! char *filepos,
|
|
Karsten Hopp |
81c285 |
char *sensitive)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char cbuf[BUFSIZ];
|
|
Karsten Hopp |
81c285 |
--- 683,696 ----
|
|
Karsten Hopp |
81c285 |
* command. The globals curMenuName and curMenuPriority contain the name and
|
|
Karsten Hopp |
81c285 |
* priority of the parent menu tree.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_menu_item(
|
|
Karsten Hopp |
81c285 |
char *label,
|
|
Karsten Hopp |
81c285 |
char *verb,
|
|
Karsten Hopp |
81c285 |
! char *accelerator UNUSED,
|
|
Karsten Hopp |
81c285 |
char *acceleratorText,
|
|
Karsten Hopp |
81c285 |
! char *name UNUSED,
|
|
Karsten Hopp |
81c285 |
! char *filepos UNUSED,
|
|
Karsten Hopp |
81c285 |
char *sensitive)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
char cbuf[BUFSIZ];
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 810,822 ****
|
|
Karsten Hopp |
81c285 |
workshopInitDone = True;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_toolbar_button(
|
|
Karsten Hopp |
81c285 |
char *label,
|
|
Karsten Hopp |
81c285 |
char *verb,
|
|
Karsten Hopp |
81c285 |
! char *senseVerb,
|
|
Karsten Hopp |
81c285 |
! char *filepos,
|
|
Karsten Hopp |
81c285 |
char *help,
|
|
Karsten Hopp |
81c285 |
char *sense,
|
|
Karsten Hopp |
81c285 |
char *file,
|
|
Karsten Hopp |
81c285 |
--- 805,816 ----
|
|
Karsten Hopp |
81c285 |
workshopInitDone = True;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
workshop_toolbar_button(
|
|
Karsten Hopp |
81c285 |
char *label,
|
|
Karsten Hopp |
81c285 |
char *verb,
|
|
Karsten Hopp |
81c285 |
! char *senseVerb UNUSED,
|
|
Karsten Hopp |
81c285 |
! char *filepos UNUSED,
|
|
Karsten Hopp |
81c285 |
char *help,
|
|
Karsten Hopp |
81c285 |
char *sense,
|
|
Karsten Hopp |
81c285 |
char *file,
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 968,974 ****
|
|
Karsten Hopp |
81c285 |
if (strcmp(option, "syntax") == 0)
|
|
Karsten Hopp |
81c285 |
vim_snprintf(cbuf, sizeof(cbuf), "syntax %s", value);
|
|
Karsten Hopp |
81c285 |
else if (strcmp(option, "savefiles") == 0)
|
|
Karsten Hopp |
81c285 |
! ; /* XXX - Not yet implemented */
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
case 'l':
|
|
Karsten Hopp |
81c285 |
--- 962,970 ----
|
|
Karsten Hopp |
81c285 |
if (strcmp(option, "syntax") == 0)
|
|
Karsten Hopp |
81c285 |
vim_snprintf(cbuf, sizeof(cbuf), "syntax %s", value);
|
|
Karsten Hopp |
81c285 |
else if (strcmp(option, "savefiles") == 0)
|
|
Karsten Hopp |
81c285 |
! {
|
|
Karsten Hopp |
81c285 |
! /* XXX - Not yet implemented */
|
|
Karsten Hopp |
81c285 |
! }
|
|
Karsten Hopp |
81c285 |
break;
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
case 'l':
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1098,1107 ****
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* A button in the toolbar has been pushed.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
workshop_get_positions(
|
|
Karsten Hopp |
81c285 |
! void *clientData, /* unused */
|
|
Karsten Hopp |
81c285 |
char **filename, /* output data */
|
|
Karsten Hopp |
81c285 |
int *curLine, /* output data */
|
|
Karsten Hopp |
81c285 |
int *curCol, /* output data */
|
|
Karsten Hopp |
81c285 |
--- 1094,1102 ----
|
|
Karsten Hopp |
81c285 |
/*
|
|
Karsten Hopp |
81c285 |
* A button in the toolbar has been pushed.
|
|
Karsten Hopp |
81c285 |
*/
|
|
Karsten Hopp |
81c285 |
int
|
|
Karsten Hopp |
81c285 |
workshop_get_positions(
|
|
Karsten Hopp |
81c285 |
! void *clientData UNUSED,
|
|
Karsten Hopp |
81c285 |
char **filename, /* output data */
|
|
Karsten Hopp |
81c285 |
int *curLine, /* output data */
|
|
Karsten Hopp |
81c285 |
int *curCol, /* output data */
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 1526,1534 ****
|
|
Karsten Hopp |
81c285 |
return NULL;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
- /*ARGSUSED*/
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
! workshop_save_sensitivity(char *filename)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--- 1521,1528 ----
|
|
Karsten Hopp |
81c285 |
return NULL;
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
void
|
|
Karsten Hopp |
81c285 |
! workshop_save_sensitivity(char *filename UNUSED)
|
|
Karsten Hopp |
81c285 |
{
|
|
Karsten Hopp |
81c285 |
}
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
*** ../vim-7.2.183/src/version.c 2009-05-21 15:19:59.000000000 +0200
|
|
Karsten Hopp |
81c285 |
--- src/version.c 2009-05-21 23:19:40.000000000 +0200
|
|
Karsten Hopp |
81c285 |
***************
|
|
Karsten Hopp |
81c285 |
*** 678,679 ****
|
|
Karsten Hopp |
81c285 |
--- 678,681 ----
|
|
Karsten Hopp |
81c285 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
81c285 |
+ /**/
|
|
Karsten Hopp |
81c285 |
+ 184,
|
|
Karsten Hopp |
81c285 |
/**/
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
--
|
|
Karsten Hopp |
81c285 |
CART DRIVER: Bring out your dead!
|
|
Karsten Hopp |
81c285 |
LARGE MAN: Here's one!
|
|
Karsten Hopp |
81c285 |
CART DRIVER: Ninepence.
|
|
Karsten Hopp |
81c285 |
BODY: I'm not dead!
|
|
Karsten Hopp |
81c285 |
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
|
|
Karsten Hopp |
81c285 |
|
|
Karsten Hopp |
81c285 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
81c285 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
81c285 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
81c285 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|