Re: Libzvt accessibility-related API Change Request-- Selection_changed signal



On Tue, 2001-12-04 at 03:41, Marc Mulcahy wrote:
> This patch allows assistive technologies to determine when the selection 
> has changed in a ZvtTerm widget.  It is required for full accessibility 
> support of libzvt.
> 
> Index: libzvt/libzvt/update.c
> ===================================================================
> RCS file: /cvs/gnome/libzvt/libzvt/update.c,v
> retrieving revision 1.68
> diff -u -r1.68 update.c
> --- libzvt/libzvt/update.c	2001/09/01 18:25:39	1.68
> +++ libzvt/libzvt/update.c	2001/12/04 06:40:57
> @@ -1273,6 +1273,7 @@
>    vx->selendyold = vx->selendy;
>    vx->selstartxold = vx->selstartx;
>    vx->selstartyold = vx->selstarty;
> +  vx->selection_changed (vx->vt.user_data);
>  }
>  
>  /*

check if selection_changed is NULL first.

> @@ -1310,6 +1311,10 @@
>  {
>    return 0;
>  }
> +static void
> +dummy_selection_changed (void *user_data)
> +{
> +}
>  
>  static struct vt_line *copy_line(struct vt_line *l)
>  {
> @@ -1668,6 +1673,7 @@
>    vx->scroll_area = dummy_scroll_area;
>    vx->draw_text = dummy_draw_text;
>    vx->cursor_state = dummy_cursor_state;
> +  vx->selection_changed = dummy_selection_changed;
>  
>    /* other parameters initialised to 0 by calloc */
>    vx->vt.user_data = user_data;

 
> @@ -268,6 +278,7 @@
>    term_class->copy_clipboard = zvt_term_real_copy_clipboard;
>    term_class->paste_clipboard = zvt_term_real_paste_clipboard;
>    term_class->scroll = zvt_term_scroll;
> +  term_class->selection_changed = zvt_term_real_selection_changed;

> +
> +static void
> +zvt_term_real_selection_changed (ZvtTerm *term)
> +{
> +  return;
> +}
> +

remove these parts and feel free to commit.

jacob
-- 
"In fact, can you imagine anything more terrifying than a zombie clown?"
	-- moby



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]