|
Karsten Hopp |
5d62ff |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
5d62ff |
Subject: Patch 7.3.262
|
|
Karsten Hopp |
5d62ff |
Fcc: outbox
|
|
Karsten Hopp |
5d62ff |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
5d62ff |
Mime-Version: 1.0
|
|
Karsten Hopp |
5d62ff |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
5d62ff |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
5d62ff |
------------
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
Patch 7.3.262
|
|
Karsten Hopp |
5d62ff |
Problem: Photon code style doesn't match Vim style.
|
|
Karsten Hopp |
5d62ff |
Solution: Clean up some of it. (Elias Diem)
|
|
Karsten Hopp |
5d62ff |
Files: src/gui_photon.c
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
*** ../vim-7.3.261/src/gui_photon.c 2011-01-17 20:08:03.000000000 +0100
|
|
Karsten Hopp |
5d62ff |
--- src/gui_photon.c 2011-07-27 14:07:02.000000000 +0200
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 32,40 ****
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#define ARRAY_LENGTH(a) (sizeof(a) / sizeof(a[0]))
|
|
Karsten Hopp |
5d62ff |
! #define RGB(r,g,b) PgRGB(r,g,b)
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! #define EVENT_BUFFER_SIZE sizeof( PhEvent_t ) + 1000
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Some defines for gui_mch_mousehide() */
|
|
Karsten Hopp |
5d62ff |
#define MOUSE_HIDE TRUE
|
|
Karsten Hopp |
5d62ff |
--- 32,40 ----
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#define ARRAY_LENGTH(a) (sizeof(a) / sizeof(a[0]))
|
|
Karsten Hopp |
5d62ff |
! #define RGB(r, g, b) PgRGB(r, g, b)
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! #define EVENT_BUFFER_SIZE sizeof(PhEvent_t) + 1000
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Some defines for gui_mch_mousehide() */
|
|
Karsten Hopp |
5d62ff |
#define MOUSE_HIDE TRUE
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 206,258 ****
|
|
Karsten Hopp |
5d62ff |
static PtCallbackF_t gui_ph_handle_menu_unrealized;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#ifdef USE_PANEL_GROUP
|
|
Karsten Hopp |
5d62ff |
! static void gui_ph_get_panelgroup_margins( short*, short*, short*, short* );
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#ifdef FEAT_TOOLBAR
|
|
Karsten Hopp |
5d62ff |
! static PhImage_t *gui_ph_toolbar_find_icon( vimmenu_T *menu );
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! static void gui_ph_draw_start( void );
|
|
Karsten Hopp |
5d62ff |
! static void gui_ph_draw_end( void );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Set the text for the balloon */
|
|
Karsten Hopp |
5d62ff |
! static PtWidget_t * gui_ph_show_tooltip( PtWidget_t *window,
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
int position,
|
|
Karsten Hopp |
5d62ff |
char *text,
|
|
Karsten Hopp |
5d62ff |
char *font,
|
|
Karsten Hopp |
5d62ff |
PgColor_t fill_color,
|
|
Karsten Hopp |
5d62ff |
! PgColor_t text_color );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! static PtWidget_t * gui_ph_show_tooltip( PtWidget_t *window,
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
int position,
|
|
Karsten Hopp |
5d62ff |
char *text,
|
|
Karsten Hopp |
5d62ff |
char *font,
|
|
Karsten Hopp |
5d62ff |
PgColor_t fill_color,
|
|
Karsten Hopp |
5d62ff |
! PgColor_t text_color )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtArg_t arg;
|
|
Karsten Hopp |
5d62ff |
vimmenu_T *menu;
|
|
Karsten Hopp |
5d62ff |
char_u *tooltip;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtSetArg( &arg, Pt_ARG_POINTER, &menu, 0 );
|
|
Karsten Hopp |
5d62ff |
! PtGetResources( widget, 1, &arg );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Override the text and position */
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
tooltip = text;
|
|
Karsten Hopp |
5d62ff |
! if( menu != NULL )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
int index = MENU_INDEX_TIP;
|
|
Karsten Hopp |
5d62ff |
! if( menu->strings[ index ] != NULL )
|
|
Karsten Hopp |
5d62ff |
tooltip = menu->strings[ index ];
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( PtInflateBalloon(
|
|
Karsten Hopp |
5d62ff |
window,
|
|
Karsten Hopp |
5d62ff |
widget,
|
|
Karsten Hopp |
5d62ff |
/* Don't put the balloon at the bottom,
|
|
Karsten Hopp |
5d62ff |
--- 206,258 ----
|
|
Karsten Hopp |
5d62ff |
static PtCallbackF_t gui_ph_handle_menu_unrealized;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#ifdef USE_PANEL_GROUP
|
|
Karsten Hopp |
5d62ff |
! static void gui_ph_get_panelgroup_margins(short*, short*, short*, short*);
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#ifdef FEAT_TOOLBAR
|
|
Karsten Hopp |
5d62ff |
! static PhImage_t *gui_ph_toolbar_find_icon(vimmenu_T *menu);
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! static void gui_ph_draw_start(void);
|
|
Karsten Hopp |
5d62ff |
! static void gui_ph_draw_end(void);
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Set the text for the balloon */
|
|
Karsten Hopp |
5d62ff |
! static PtWidget_t * gui_ph_show_tooltip(PtWidget_t *window,
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
int position,
|
|
Karsten Hopp |
5d62ff |
char *text,
|
|
Karsten Hopp |
5d62ff |
char *font,
|
|
Karsten Hopp |
5d62ff |
PgColor_t fill_color,
|
|
Karsten Hopp |
5d62ff |
! PgColor_t text_color);
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! static PtWidget_t * gui_ph_show_tooltip(PtWidget_t *window,
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
int position,
|
|
Karsten Hopp |
5d62ff |
char *text,
|
|
Karsten Hopp |
5d62ff |
char *font,
|
|
Karsten Hopp |
5d62ff |
PgColor_t fill_color,
|
|
Karsten Hopp |
5d62ff |
! PgColor_t text_color)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtArg_t arg;
|
|
Karsten Hopp |
5d62ff |
vimmenu_T *menu;
|
|
Karsten Hopp |
5d62ff |
char_u *tooltip;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtSetArg(&arg, Pt_ARG_POINTER, &menu, 0);
|
|
Karsten Hopp |
5d62ff |
! PtGetResources(widget, 1, &arg;;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Override the text and position */
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
tooltip = text;
|
|
Karsten Hopp |
5d62ff |
! if (menu != NULL)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
int index = MENU_INDEX_TIP;
|
|
Karsten Hopp |
5d62ff |
! if (menu->strings[ index ] != NULL)
|
|
Karsten Hopp |
5d62ff |
tooltip = menu->strings[ index ];
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return PtInflateBalloon(
|
|
Karsten Hopp |
5d62ff |
window,
|
|
Karsten Hopp |
5d62ff |
widget,
|
|
Karsten Hopp |
5d62ff |
/* Don't put the balloon at the bottom,
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 261,285 ****
|
|
Karsten Hopp |
5d62ff |
tooltip,
|
|
Karsten Hopp |
5d62ff |
font,
|
|
Karsten Hopp |
5d62ff |
fill_color,
|
|
Karsten Hopp |
5d62ff |
! text_color ) );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
! gui_ph_resize_container( void )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PhArea_t area;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtWidgetArea( gui.vimWindow, &area );
|
|
Karsten Hopp |
5d62ff |
! PtWidgetPos ( gui.vimContainer, &area.pos );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtSetResource( gui.vimContainer, Pt_ARG_AREA, &area, 0 );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_menu_resize(
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
void *other,
|
|
Karsten Hopp |
5d62ff |
! PtCallbackInfo_t *info )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtContainerCallback_t *sizes = info->cbdata;
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *container;
|
|
Karsten Hopp |
5d62ff |
--- 261,285 ----
|
|
Karsten Hopp |
5d62ff |
tooltip,
|
|
Karsten Hopp |
5d62ff |
font,
|
|
Karsten Hopp |
5d62ff |
fill_color,
|
|
Karsten Hopp |
5d62ff |
! text_color);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
! gui_ph_resize_container(void)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PhArea_t area;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtWidgetArea(gui.vimWindow, &area);
|
|
Karsten Hopp |
5d62ff |
! PtWidgetPos (gui.vimContainer, &area.pos);
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtSetResource(gui.vimContainer, Pt_ARG_AREA, &area, 0);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_menu_resize(
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
void *other,
|
|
Karsten Hopp |
5d62ff |
! PtCallbackInfo_t *info)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtContainerCallback_t *sizes = info->cbdata;
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *container;
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 291,297 ****
|
|
Karsten Hopp |
5d62ff |
/* Because vim treats the toolbar and menubar separately,
|
|
Karsten Hopp |
5d62ff |
* and here they're lumped together into a PtToolbarGroup,
|
|
Karsten Hopp |
5d62ff |
* we only need either menu_height or toolbar_height set at once */
|
|
Karsten Hopp |
5d62ff |
! if( gui.menu_is_active )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui.menu_height = height;
|
|
Karsten Hopp |
5d62ff |
gui.toolbar_height = 0;
|
|
Karsten Hopp |
5d62ff |
--- 291,297 ----
|
|
Karsten Hopp |
5d62ff |
/* Because vim treats the toolbar and menubar separately,
|
|
Karsten Hopp |
5d62ff |
* and here they're lumped together into a PtToolbarGroup,
|
|
Karsten Hopp |
5d62ff |
* we only need either menu_height or toolbar_height set at once */
|
|
Karsten Hopp |
5d62ff |
! if (gui.menu_is_active)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui.menu_height = height;
|
|
Karsten Hopp |
5d62ff |
gui.toolbar_height = 0;
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 310,325 ****
|
|
Karsten Hopp |
5d62ff |
container = gui.vimContainer;
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtSetResource( container, Pt_ARG_POS, &below_menu, 0 );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_ph_resize_container();
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#ifdef USE_PANEL_GROUP
|
|
Karsten Hopp |
5d62ff |
gui_ph_get_panelgroup_margins(
|
|
Karsten Hopp |
5d62ff |
&pg_margin_top, &pg_margin_bottom,
|
|
Karsten Hopp |
5d62ff |
! &pg_margin_left, &pg_margin_right );
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
--- 310,325 ----
|
|
Karsten Hopp |
5d62ff |
container = gui.vimContainer;
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! PtSetResource(container, Pt_ARG_POS, &below_menu, 0);
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_ph_resize_container();
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#ifdef USE_PANEL_GROUP
|
|
Karsten Hopp |
5d62ff |
gui_ph_get_panelgroup_margins(
|
|
Karsten Hopp |
5d62ff |
&pg_margin_top, &pg_margin_bottom,
|
|
Karsten Hopp |
5d62ff |
! &pg_margin_left, &pg_margin_right);
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 330,352 ****
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_timer_cursor(
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
void *data,
|
|
Karsten Hopp |
5d62ff |
! PtCallbackInfo_t *info )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! if( blink_state == BLINK_ON )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_undraw_cursor();
|
|
Karsten Hopp |
5d62ff |
blink_state = BLINK_OFF;
|
|
Karsten Hopp |
5d62ff |
! PtSetResource( gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL,
|
|
Karsten Hopp |
5d62ff |
! blink_offtime, 0 );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_update_cursor(TRUE, FALSE);
|
|
Karsten Hopp |
5d62ff |
blink_state = BLINK_ON;
|
|
Karsten Hopp |
5d62ff |
! PtSetResource( gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL,
|
|
Karsten Hopp |
5d62ff |
! blink_ontime, 0 );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 330,352 ----
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_timer_cursor(
|
|
Karsten Hopp |
5d62ff |
PtWidget_t *widget,
|
|
Karsten Hopp |
5d62ff |
void *data,
|
|
Karsten Hopp |
5d62ff |
! PtCallbackInfo_t *info)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! if (blink_state == BLINK_ON)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_undraw_cursor();
|
|
Karsten Hopp |
5d62ff |
blink_state = BLINK_OFF;
|
|
Karsten Hopp |
5d62ff |
! PtSetResource(gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL,
|
|
Karsten Hopp |
5d62ff |
! blink_offtime, 0);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_update_cursor(TRUE, FALSE);
|
|
Karsten Hopp |
5d62ff |
blink_state = BLINK_ON;
|
|
Karsten Hopp |
5d62ff |
! PtSetResource(gui_ph_timer_cursor, Pt_ARG_TIMER_INITIAL,
|
|
Karsten Hopp |
5d62ff |
! blink_ontime, 0);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 354,360 ****
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
is_timeout = TRUE;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 354,360 ----
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
is_timeout = TRUE;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 402,408 ****
|
|
Karsten Hopp |
5d62ff |
break;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 402,408 ----
|
|
Karsten Hopp |
5d62ff |
break;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 426,438 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
case Pt_SCROLL_SET:
|
|
Karsten Hopp |
5d62ff |
/* FIXME: return straight away here? */
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
break;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_drag_scrollbar(sb, value, dragging);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 426,438 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
case Pt_SCROLL_SET:
|
|
Karsten Hopp |
5d62ff |
/* FIXME: return straight away here? */
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
break;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_drag_scrollbar(sb, value, dragging);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 453,459 ****
|
|
Karsten Hopp |
5d62ff |
/* We're a good lil photon program, aren't we? yes we are, yeess wee arrr */
|
|
Karsten Hopp |
5d62ff |
if( key->key_flags & Pk_KF_Compose )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( (key->key_flags & Pk_KF_Cap_Valid) &&
|
|
Karsten Hopp |
5d62ff |
--- 453,459 ----
|
|
Karsten Hopp |
5d62ff |
/* We're a good lil photon program, aren't we? yes we are, yeess wee arrr */
|
|
Karsten Hopp |
5d62ff |
if( key->key_flags & Pk_KF_Compose )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( (key->key_flags & Pk_KF_Cap_Valid) &&
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 473,479 ****
|
|
Karsten Hopp |
5d62ff |
gui_is_menu_shortcut( key->key_cap ) ) ) )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
/* Fallthrough and let photon look for the hotkey */
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--- 473,479 ----
|
|
Karsten Hopp |
5d62ff |
gui_is_menu_shortcut( key->key_cap ) ) ) )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
/* Fallthrough and let photon look for the hotkey */
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 544,550 ****
|
|
Karsten Hopp |
5d62ff |
add_to_input_buf( string, len );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONSUME );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
len = 0;
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
--- 544,550 ----
|
|
Karsten Hopp |
5d62ff |
add_to_input_buf( string, len );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONSUME;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
len = 0;
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 579,585 ****
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else
|
|
Karsten Hopp |
5d62ff |
--- 579,585 ----
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 622,632 ****
|
|
Karsten Hopp |
5d62ff |
if( len > 0 )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
add_to_input_buf( string, len );
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONSUME );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 622,632 ----
|
|
Karsten Hopp |
5d62ff |
if( len > 0 )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
add_to_input_buf( string, len );
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONSUME;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 652,658 ****
|
|
Karsten Hopp |
5d62ff |
if( info->event->type == Ph_EV_PTR_MOTION_NOBUTTON )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_mouse_moved( mouse_x, mouse_y );
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( pointer->key_mods & Pk_KM_Shift )
|
|
Karsten Hopp |
5d62ff |
--- 652,658 ----
|
|
Karsten Hopp |
5d62ff |
if( info->event->type == Ph_EV_PTR_MOTION_NOBUTTON )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_mouse_moved( mouse_x, mouse_y );
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( pointer->key_mods & Pk_KM_Shift )
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 702,708 ****
|
|
Karsten Hopp |
5d62ff |
gui_send_mouse_event( button , mouse_x, mouse_y, repeated_click, modifiers );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Handle a focus change of the PtRaw widget */
|
|
Karsten Hopp |
5d62ff |
--- 702,708 ----
|
|
Karsten Hopp |
5d62ff |
gui_send_mouse_event( button , mouse_x, mouse_y, repeated_click, modifiers );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Handle a focus change of the PtRaw widget */
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 721,727 ****
|
|
Karsten Hopp |
5d62ff |
PtAddEventHandler( gui.vimTextArea, Ph_EV_PTR_MOTION_NOBUTTON,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_mouse, NULL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
--- 721,727 ----
|
|
Karsten Hopp |
5d62ff |
PtAddEventHandler( gui.vimTextArea, Ph_EV_PTR_MOTION_NOBUTTON,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_mouse, NULL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 793,799 ****
|
|
Karsten Hopp |
5d62ff |
PtRealizeWidget( menu->submenu_id );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* This is used for pulldown/popup menus and also toolbar buttons */
|
|
Karsten Hopp |
5d62ff |
--- 793,799 ----
|
|
Karsten Hopp |
5d62ff |
PtRealizeWidget( menu->submenu_id );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* This is used for pulldown/popup menus and also toolbar buttons */
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 805,811 ****
|
|
Karsten Hopp |
5d62ff |
vimmenu_T *menu = (vimmenu_T *) data;
|
|
Karsten Hopp |
5d62ff |
gui_menu_cb( menu );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Stop focus from disappearing into the menubar... */
|
|
Karsten Hopp |
5d62ff |
--- 805,811 ----
|
|
Karsten Hopp |
5d62ff |
vimmenu_T *menu = (vimmenu_T *) data;
|
|
Karsten Hopp |
5d62ff |
gui_menu_cb( menu );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Stop focus from disappearing into the menubar... */
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 816,822 ****
|
|
Karsten Hopp |
5d62ff |
PtCallbackInfo_t *info )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtGiveFocus( gui.vimTextArea, NULL );
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 816,822 ----
|
|
Karsten Hopp |
5d62ff |
PtCallbackInfo_t *info )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtGiveFocus( gui.vimTextArea, NULL );
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 826,832 ****
|
|
Karsten Hopp |
5d62ff |
PtCallbackInfo_t *info )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_set_shellsize( FALSE, TRUE, RESIZE_BOTH );
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
--- 826,832 ----
|
|
Karsten Hopp |
5d62ff |
PtCallbackInfo_t *info )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_set_shellsize( FALSE, TRUE, RESIZE_BOTH );
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 878,884 ****
|
|
Karsten Hopp |
5d62ff |
( STRCMP( items->dname, name ) != 0 ) )
|
|
Karsten Hopp |
5d62ff |
items = items->next;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( items );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
--- 878,884 ----
|
|
Karsten Hopp |
5d62ff |
( STRCMP( items->dname, name ) != 0 ) )
|
|
Karsten Hopp |
5d62ff |
items = items->next;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return items;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 927,933 ****
|
|
Karsten Hopp |
5d62ff |
gui_menu_cb( menu );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
--- 927,933 ----
|
|
Karsten Hopp |
5d62ff |
gui_menu_cb( menu );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 974,983 ****
|
|
Karsten Hopp |
5d62ff |
mark++;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( *mark == ')' )
|
|
Karsten Hopp |
5d62ff |
! return( TRUE);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( FALSE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
--- 974,983 ----
|
|
Karsten Hopp |
5d62ff |
mark++;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( *mark == ')' )
|
|
Karsten Hopp |
5d62ff |
! return TRUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return FALSE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static void
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1057,1063 ****
|
|
Karsten Hopp |
5d62ff |
gui_ph_pg_remove_buffer( menu->dname );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--- 1057,1063 ----
|
|
Karsten Hopp |
5d62ff |
gui_ph_pg_remove_buffer( menu->dname );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1071,1077 ****
|
|
Karsten Hopp |
5d62ff |
PtContainerHold( gui.vimContainer );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
--- 1071,1077 ----
|
|
Karsten Hopp |
5d62ff |
PtContainerHold( gui.vimContainer );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1126,1132 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.event_buffer = (PhEvent_t *) alloc( EVENT_BUFFER_SIZE );
|
|
Karsten Hopp |
5d62ff |
if( gui.event_buffer == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Get a translation so we can convert from ISO Latin-1 to UTF */
|
|
Karsten Hopp |
5d62ff |
charset_translate = PxTranslateSet( NULL, "latin1" );
|
|
Karsten Hopp |
5d62ff |
--- 1126,1132 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.event_buffer = (PhEvent_t *) alloc( EVENT_BUFFER_SIZE );
|
|
Karsten Hopp |
5d62ff |
if( gui.event_buffer == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* Get a translation so we can convert from ISO Latin-1 to UTF */
|
|
Karsten Hopp |
5d62ff |
charset_translate = PxTranslateSet( NULL, "latin1" );
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1141,1147 ****
|
|
Karsten Hopp |
5d62ff |
PtSetArg( &args[ n++ ], Pt_ARG_DIM, &window_size, 0 );
|
|
Karsten Hopp |
5d62ff |
gui.vimWindow = PtCreateWidget( PtWindow, NULL, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimWindow == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimWindow, Pt_CB_WINDOW, gui_ph_handle_window_cb, NULL );
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimWindow, Pt_CB_WINDOW_OPENING,
|
|
Karsten Hopp |
5d62ff |
--- 1141,1147 ----
|
|
Karsten Hopp |
5d62ff |
PtSetArg( &args[ n++ ], Pt_ARG_DIM, &window_size, 0 );
|
|
Karsten Hopp |
5d62ff |
gui.vimWindow = PtCreateWidget( PtWindow, NULL, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimWindow == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimWindow, Pt_CB_WINDOW, gui_ph_handle_window_cb, NULL );
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimWindow, Pt_CB_WINDOW_OPENING,
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1158,1164 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimPanelGroup = PtCreateWidget( PtPanelGroup, gui.vimWindow, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimPanelGroup == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimPanelGroup, Pt_CB_PG_PANEL_SWITCHING,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_pg_change, NULL );
|
|
Karsten Hopp |
5d62ff |
--- 1158,1164 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimPanelGroup = PtCreateWidget( PtPanelGroup, gui.vimWindow, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimPanelGroup == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimPanelGroup, Pt_CB_PG_PANEL_SWITCHING,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_pg_change, NULL );
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1172,1178 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimContainer = PtCreateWidget( PtPane, gui.vimWindow, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimContainer == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimContainer, Pt_CB_RESIZE, gui_ph_pane_resize, NULL );
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
--- 1172,1178 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimContainer = PtCreateWidget( PtPane, gui.vimWindow, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimContainer == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimContainer, Pt_CB_RESIZE, gui_ph_pane_resize, NULL );
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1195,1201 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimTextArea = PtCreateWidget( PtRaw, Pt_DFLT_PARENT, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimTextArea == NULL)
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* TODO: use PtAddEventHandlers instead? */
|
|
Karsten Hopp |
5d62ff |
/* Not using Ph_EV_BUT_REPEAT because vim wouldn't use it anyway */
|
|
Karsten Hopp |
5d62ff |
--- 1195,1201 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimTextArea = PtCreateWidget( PtRaw, Pt_DFLT_PARENT, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimTextArea == NULL)
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* TODO: use PtAddEventHandlers instead? */
|
|
Karsten Hopp |
5d62ff |
/* Not using Ph_EV_BUT_REPEAT because vim wouldn't use it anyway */
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1220,1230 ****
|
|
Karsten Hopp |
5d62ff |
*/
|
|
Karsten Hopp |
5d62ff |
gui_ph_timer_cursor = PtCreateWidget( PtTimer, gui.vimWindow, 0, NULL );
|
|
Karsten Hopp |
5d62ff |
if( gui_ph_timer_cursor == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_ph_timer_timeout = PtCreateWidget( PtTimer, gui.vimWindow, 0, NULL );
|
|
Karsten Hopp |
5d62ff |
if( gui_ph_timer_timeout == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui_ph_timer_cursor, Pt_CB_TIMER_ACTIVATE,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_timer_cursor, NULL);
|
|
Karsten Hopp |
5d62ff |
--- 1220,1230 ----
|
|
Karsten Hopp |
5d62ff |
*/
|
|
Karsten Hopp |
5d62ff |
gui_ph_timer_cursor = PtCreateWidget( PtTimer, gui.vimWindow, 0, NULL );
|
|
Karsten Hopp |
5d62ff |
if( gui_ph_timer_cursor == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_ph_timer_timeout = PtCreateWidget( PtTimer, gui.vimWindow, 0, NULL );
|
|
Karsten Hopp |
5d62ff |
if( gui_ph_timer_timeout == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui_ph_timer_cursor, Pt_CB_TIMER_ACTIVATE,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_timer_cursor, NULL);
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1239,1245 ****
|
|
Karsten Hopp |
5d62ff |
gui.vimToolBarGroup = PtCreateWidget( PtToolbarGroup, gui.vimWindow,
|
|
Karsten Hopp |
5d62ff |
n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimToolBarGroup == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimToolBarGroup, Pt_CB_RESIZE,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_menu_resize, NULL );
|
|
Karsten Hopp |
5d62ff |
--- 1239,1245 ----
|
|
Karsten Hopp |
5d62ff |
gui.vimToolBarGroup = PtCreateWidget( PtToolbarGroup, gui.vimWindow,
|
|
Karsten Hopp |
5d62ff |
n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimToolBarGroup == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtAddCallback( gui.vimToolBarGroup, Pt_CB_RESIZE,
|
|
Karsten Hopp |
5d62ff |
gui_ph_handle_menu_resize, NULL );
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1254,1260 ****
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
gui.vimMenuBar = PtCreateWidget( PtMenuBar, gui.vimToolBarGroup, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimMenuBar == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
# ifdef FEAT_TOOLBAR
|
|
Karsten Hopp |
5d62ff |
n = 0;
|
|
Karsten Hopp |
5d62ff |
--- 1254,1260 ----
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
gui.vimMenuBar = PtCreateWidget( PtMenuBar, gui.vimToolBarGroup, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimMenuBar == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
# ifdef FEAT_TOOLBAR
|
|
Karsten Hopp |
5d62ff |
n = 0;
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1273,1279 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimToolBar = PtCreateWidget( PtToolbar, gui.vimToolBarGroup, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimToolBar == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
* Size for the toolbar is fetched in gui_mch_show_toolbar, after
|
|
Karsten Hopp |
5d62ff |
--- 1273,1279 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui.vimToolBar = PtCreateWidget( PtToolbar, gui.vimToolBarGroup, n, args );
|
|
Karsten Hopp |
5d62ff |
if( gui.vimToolBar == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
* Size for the toolbar is fetched in gui_mch_show_toolbar, after
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1284,1296 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( OK );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
gui_mch_init_check(void)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return( (is_photon_available == TRUE) ? OK : FAIL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
--- 1284,1296 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return OK;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
gui_mch_init_check(void)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return (is_photon_available == TRUE) ? OK : FAIL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1310,1316 ****
|
|
Karsten Hopp |
5d62ff |
if (gui_win_x != -1 && gui_win_y != -1)
|
|
Karsten Hopp |
5d62ff |
gui_mch_set_winpos(gui_win_x, gui_win_y);
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( (PtRealizeWidget( gui.vimWindow ) == 0) ? OK : FAIL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
void
|
|
Karsten Hopp |
5d62ff |
--- 1310,1316 ----
|
|
Karsten Hopp |
5d62ff |
if (gui_win_x != -1 && gui_win_y != -1)
|
|
Karsten Hopp |
5d62ff |
gui_mch_set_winpos(gui_win_x, gui_win_y);
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return (PtRealizeWidget( gui.vimWindow ) == 0) ? OK : FAIL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
void
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1336,1342 ****
|
|
Karsten Hopp |
5d62ff |
exit_gui_mch_update( void *data )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
*(int *)data = FALSE;
|
|
Karsten Hopp |
5d62ff |
! return( Pt_END );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
void
|
|
Karsten Hopp |
5d62ff |
--- 1336,1342 ----
|
|
Karsten Hopp |
5d62ff |
exit_gui_mch_update( void *data )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
*(int *)data = FALSE;
|
|
Karsten Hopp |
5d62ff |
! return Pt_END;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
void
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1365,1374 ****
|
|
Karsten Hopp |
5d62ff |
if( input_available() )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtSetResource( gui_ph_timer_timeout, Pt_ARG_TIMER_INITIAL, 0, 0 );
|
|
Karsten Hopp |
5d62ff |
! return( OK );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else if( is_timeout == TRUE )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--- 1365,1374 ----
|
|
Karsten Hopp |
5d62ff |
if( input_available() )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
PtSetResource( gui_ph_timer_timeout, Pt_ARG_TIMER_INITIAL, 0, 0 );
|
|
Karsten Hopp |
5d62ff |
! return OK;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
else if( is_timeout == TRUE )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1446,1454 ****
|
|
Karsten Hopp |
5d62ff |
vim_free( default_path );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( file.ret == Pt_FSDIALOG_BTN1 )
|
|
Karsten Hopp |
5d62ff |
! return( vim_strsave( file.path ) );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( NULL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--- 1446,1454 ----
|
|
Karsten Hopp |
5d62ff |
vim_free( default_path );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( file.ret == Pt_FSDIALOG_BTN1 )
|
|
Karsten Hopp |
5d62ff |
! return vim_strsave(file.path);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return NULL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1470,1476 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtModalUnblock( modal_ctrl, (void *) button );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( Pt_TRUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 1470,1476 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
PtModalUnblock( modal_ctrl, (void *) button );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return Pt_TRUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1478,1484 ****
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if( info->reason_subtype == Pt_EDIT_ACTIVATE )
|
|
Karsten Hopp |
5d62ff |
gui_ph_dialog_close( 1, data );
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONTINUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
--- 1478,1484 ----
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if( info->reason_subtype == Pt_EDIT_ACTIVATE )
|
|
Karsten Hopp |
5d62ff |
gui_ph_dialog_close( 1, data );
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONTINUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
static int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1490,1498 ****
|
|
Karsten Hopp |
5d62ff |
if( ( key->key_flags & Pk_KF_Cap_Valid ) && ( key->key_cap == Pk_Escape ) )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_ph_dialog_close( 0, data );
|
|
Karsten Hopp |
5d62ff |
! return( Pt_CONSUME );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( Pt_PROCESS );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
--- 1490,1498 ----
|
|
Karsten Hopp |
5d62ff |
if( ( key->key_flags & Pk_KF_Cap_Valid ) && ( key->key_cap == Pk_Escape ) )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
gui_ph_dialog_close( 0, data );
|
|
Karsten Hopp |
5d62ff |
! return Pt_CONSUME;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return Pt_PROCESS;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1519,1525 ****
|
|
Karsten Hopp |
5d62ff |
button_count = len = i = 0;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( buttons == NULL || *buttons == NUL )
|
|
Karsten Hopp |
5d62ff |
! return( -1 );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* There is one less separator than buttons, so bump up the button count */
|
|
Karsten Hopp |
5d62ff |
button_count = 1;
|
|
Karsten Hopp |
5d62ff |
--- 1519,1525 ----
|
|
Karsten Hopp |
5d62ff |
button_count = len = i = 0;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( buttons == NULL || *buttons == NUL )
|
|
Karsten Hopp |
5d62ff |
! return -1;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/* There is one less separator than buttons, so bump up the button count */
|
|
Karsten Hopp |
5d62ff |
button_count = 1;
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1637,1643 ****
|
|
Karsten Hopp |
5d62ff |
vim_free( button_array );
|
|
Karsten Hopp |
5d62ff |
vim_free( buttons_copy );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( dialog_result );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
--- 1637,1643 ----
|
|
Karsten Hopp |
5d62ff |
vim_free( button_array );
|
|
Karsten Hopp |
5d62ff |
vim_free( buttons_copy );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return dialog_result;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1653,1659 ****
|
|
Karsten Hopp |
5d62ff |
*x = pos->x;
|
|
Karsten Hopp |
5d62ff |
*y = pos->y;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( OK );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
void
|
|
Karsten Hopp |
5d62ff |
--- 1653,1659 ----
|
|
Karsten Hopp |
5d62ff |
*x = pos->x;
|
|
Karsten Hopp |
5d62ff |
*y = pos->y;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return OK;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
void
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 1975,1985 ****
|
|
Karsten Hopp |
5d62ff |
hex_digit(int c)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if (VIM_ISDIGIT(c))
|
|
Karsten Hopp |
5d62ff |
! return( c - '0' );
|
|
Karsten Hopp |
5d62ff |
c = TOLOWER_ASC(c);
|
|
Karsten Hopp |
5d62ff |
if (c >= 'a' && c <= 'f')
|
|
Karsten Hopp |
5d62ff |
! return( c - 'a' + 10 );
|
|
Karsten Hopp |
5d62ff |
! return( -1000 );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--- 1975,1985 ----
|
|
Karsten Hopp |
5d62ff |
hex_digit(int c)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if (VIM_ISDIGIT(c))
|
|
Karsten Hopp |
5d62ff |
! return c - '0';
|
|
Karsten Hopp |
5d62ff |
c = TOLOWER_ASC(c);
|
|
Karsten Hopp |
5d62ff |
if (c >= 'a' && c <= 'f')
|
|
Karsten Hopp |
5d62ff |
! return c - 'a' + 10;
|
|
Karsten Hopp |
5d62ff |
! return -1000;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2065,2077 ****
|
|
Karsten Hopp |
5d62ff |
b = hex_digit( name[5] ) * 16 + hex_digit( name[6] );
|
|
Karsten Hopp |
5d62ff |
if( r < 0 || g < 0 || b < 0 )
|
|
Karsten Hopp |
5d62ff |
return INVALCOLOR;
|
|
Karsten Hopp |
5d62ff |
! return( RGB( r, g, b ) );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
for( i = 0; i < ARRAY_LENGTH( table ); i++ )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if( STRICMP( name, table[i].name ) == 0 )
|
|
Karsten Hopp |
5d62ff |
! return( table[i].colour );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
--- 2065,2077 ----
|
|
Karsten Hopp |
5d62ff |
b = hex_digit( name[5] ) * 16 + hex_digit( name[6] );
|
|
Karsten Hopp |
5d62ff |
if( r < 0 || g < 0 || b < 0 )
|
|
Karsten Hopp |
5d62ff |
return INVALCOLOR;
|
|
Karsten Hopp |
5d62ff |
! return RGB(r, g, b);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
for( i = 0; i < ARRAY_LENGTH( table ); i++ )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if( STRICMP( name, table[i].name ) == 0 )
|
|
Karsten Hopp |
5d62ff |
! return table[i].colour;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2115,2121 ****
|
|
Karsten Hopp |
5d62ff |
if (STRICMP(color, name) == 0)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
fclose(fd);
|
|
Karsten Hopp |
5d62ff |
! return( (guicolor_T) RGB(r,g,b) );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--- 2115,2121 ----
|
|
Karsten Hopp |
5d62ff |
if (STRICMP(color, name) == 0)
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
fclose(fd);
|
|
Karsten Hopp |
5d62ff |
! return (guicolor_T)RGB(r, g, b);
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2451,2458 ****
|
|
Karsten Hopp |
5d62ff |
for (i = 0; special_keys[i].key_sym != 0; i++)
|
|
Karsten Hopp |
5d62ff |
if (name[0] == special_keys[i].vim_code0 &&
|
|
Karsten Hopp |
5d62ff |
name[1] == special_keys[i].vim_code1)
|
|
Karsten Hopp |
5d62ff |
! return( OK );
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
--- 2451,2458 ----
|
|
Karsten Hopp |
5d62ff |
for (i = 0; special_keys[i].key_sym != 0; i++)
|
|
Karsten Hopp |
5d62ff |
if (name[0] == special_keys[i].vim_code0 &&
|
|
Karsten Hopp |
5d62ff |
name[1] == special_keys[i].vim_code1)
|
|
Karsten Hopp |
5d62ff |
! return OK;
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/****************************************************************************/
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2512,2518 ****
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
temp_phi = &external_icon;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( temp_phi );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
--- 2512,2518 ----
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
temp_phi = &external_icon;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return temp_phi;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2541,2556 ****
|
|
Karsten Hopp |
5d62ff |
icon = gui_ph_toolbar_load_icon( full_pathname );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( icon != NULL )
|
|
Karsten Hopp |
5d62ff |
! return( icon );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( menu->iconidx >= 0 &&
|
|
Karsten Hopp |
5d62ff |
( menu->iconidx < ARRAY_LENGTH( gui_ph_toolbar_images ) ) )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return( gui_ph_toolbar_images[ menu->iconidx ] );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( NULL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--- 2541,2556 ----
|
|
Karsten Hopp |
5d62ff |
icon = gui_ph_toolbar_load_icon( full_pathname );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( icon != NULL )
|
|
Karsten Hopp |
5d62ff |
! return icon;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( menu->iconidx >= 0 &&
|
|
Karsten Hopp |
5d62ff |
( menu->iconidx < ARRAY_LENGTH( gui_ph_toolbar_images ) ) )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
! return gui_ph_toolbar_images[menu->iconidx];
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return NULL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
#endif
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2895,2905 ****
|
|
Karsten Hopp |
5d62ff |
* at least has the bits we're checking for */
|
|
Karsten Hopp |
5d62ff |
if( font_size == info.size &&
|
|
Karsten Hopp |
5d62ff |
style == (info.style & style) )
|
|
Karsten Hopp |
5d62ff |
! return( (GuiFont) font_tag );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
vim_free( font_tag );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( NULL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
--- 2895,2905 ----
|
|
Karsten Hopp |
5d62ff |
* at least has the bits we're checking for */
|
|
Karsten Hopp |
5d62ff |
if( font_size == info.size &&
|
|
Karsten Hopp |
5d62ff |
style == (info.style & style) )
|
|
Karsten Hopp |
5d62ff |
! return (GuiFont)font_tag;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
vim_free( font_tag );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return NULL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2957,2965 ****
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( TRUE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return( FALSE );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
--- 2957,2965 ----
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return TRUE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
! return FALSE;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
int
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2985,2991 ****
|
|
Karsten Hopp |
5d62ff |
"pcterm12", -1, PHFONT_FIXED, NULL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( font_tag == NULL )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_mch_free_font( gui.norm_font );
|
|
Karsten Hopp |
5d62ff |
gui.norm_font = font_tag;
|
|
Karsten Hopp |
5d62ff |
--- 2985,2991 ----
|
|
Karsten Hopp |
5d62ff |
"pcterm12", -1, PHFONT_FIXED, NULL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( font_tag == NULL )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_mch_free_font( gui.norm_font );
|
|
Karsten Hopp |
5d62ff |
gui.norm_font = font_tag;
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 2997,3009 ****
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if( gui_ph_parse_font_name( vim_font_name, &font_name, &font_flags,
|
|
Karsten Hopp |
5d62ff |
&font_size ) == FALSE )
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
font_tag = gui_ph_get_font( font_name, font_flags, font_size, 0 );
|
|
Karsten Hopp |
5d62ff |
if( font_tag == NULL )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
vim_free( font_name );
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_mch_free_font( gui.norm_font );
|
|
Karsten Hopp |
5d62ff |
--- 2997,3009 ----
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
if( gui_ph_parse_font_name( vim_font_name, &font_name, &font_flags,
|
|
Karsten Hopp |
5d62ff |
&font_size ) == FALSE )
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
font_tag = gui_ph_get_font( font_name, font_flags, font_size, 0 );
|
|
Karsten Hopp |
5d62ff |
if( font_tag == NULL )
|
|
Karsten Hopp |
5d62ff |
{
|
|
Karsten Hopp |
5d62ff |
vim_free( font_name );
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
gui_mch_free_font( gui.norm_font );
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 3026,3032 ****
|
|
Karsten Hopp |
5d62ff |
gui.char_ascent = - extent.ul.y;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
vim_free( font_name );
|
|
Karsten Hopp |
5d62ff |
! return( OK );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
--- 3026,3032 ----
|
|
Karsten Hopp |
5d62ff |
gui.char_ascent = - extent.ul.y;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
vim_free( font_name );
|
|
Karsten Hopp |
5d62ff |
! return OK;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/*
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 3042,3048 ****
|
|
Karsten Hopp |
5d62ff |
gui.char_height = - info.ascender + info.descender + p_linespace;
|
|
Karsten Hopp |
5d62ff |
gui.char_ascent = - info.ascender + p_linespace / 2;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( OK );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
GuiFont
|
|
Karsten Hopp |
5d62ff |
--- 3042,3048 ----
|
|
Karsten Hopp |
5d62ff |
gui.char_height = - info.ascender + info.descender + p_linespace;
|
|
Karsten Hopp |
5d62ff |
gui.char_ascent = - info.ascender + p_linespace / 2;
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return OK;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
GuiFont
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 3060,3072 ****
|
|
Karsten Hopp |
5d62ff |
vim_free( font_name );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( font_tag != NULL )
|
|
Karsten Hopp |
5d62ff |
! return( (GuiFont) font_tag );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( report_error )
|
|
Karsten Hopp |
5d62ff |
EMSG2(e_font, vim_font_name );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return( FAIL );
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#if defined(FEAT_EVAL) || defined(PROTO)
|
|
Karsten Hopp |
5d62ff |
--- 3060,3072 ----
|
|
Karsten Hopp |
5d62ff |
vim_free( font_name );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( font_tag != NULL )
|
|
Karsten Hopp |
5d62ff |
! return (GuiFont)font_tag;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
if( report_error )
|
|
Karsten Hopp |
5d62ff |
EMSG2(e_font, vim_font_name );
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
! return FAIL;
|
|
Karsten Hopp |
5d62ff |
}
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
#if defined(FEAT_EVAL) || defined(PROTO)
|
|
Karsten Hopp |
5d62ff |
*** ../vim-7.3.261/src/version.c 2011-07-27 13:59:12.000000000 +0200
|
|
Karsten Hopp |
5d62ff |
--- src/version.c 2011-07-27 14:08:08.000000000 +0200
|
|
Karsten Hopp |
5d62ff |
***************
|
|
Karsten Hopp |
5d62ff |
*** 711,712 ****
|
|
Karsten Hopp |
5d62ff |
--- 711,714 ----
|
|
Karsten Hopp |
5d62ff |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
5d62ff |
+ /**/
|
|
Karsten Hopp |
5d62ff |
+ 262,
|
|
Karsten Hopp |
5d62ff |
/**/
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
--
|
|
Karsten Hopp |
5d62ff |
You know you use Vim too much when you have this alias in your
|
|
Karsten Hopp |
5d62ff |
~/.bashrc file: alias :e=/bin/vim (Eljay Love-Jensen)
|
|
Karsten Hopp |
5d62ff |
|
|
Karsten Hopp |
5d62ff |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
5d62ff |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
5d62ff |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
5d62ff |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|