Re: [patch] - Don't send keys if we are in read only mode



On Sat, Jul 25, 2009 at 02:58:14PM -0300, Jonh Wendell wrote:
> OK to push?
> -- 

ACK, that's fine

Daniel

> >From 3fc91b0740f52329d0098656200dc82fa983d78f Mon Sep 17 00:00:00 2001
> From: Jonh Wendell <jwendell gnome org>
> Date: Sat, 25 Jul 2009 14:53:59 -0300
> Subject: [PATCH] Don't send keys if we are in read only mode
> X-Spam-Status: Yes, hits=1.000000 required=0.900000, tests=bmf
> X-Spam-Flag: YES
> 
> ---
>  src/vncdisplay.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/vncdisplay.c b/src/vncdisplay.c
> index 5b732a4..3fc7137 100644
> --- a/src/vncdisplay.c
> +++ b/src/vncdisplay.c
> @@ -1507,7 +1507,7 @@ void vnc_display_send_keys_ex(VncDisplay *obj, const guint *keyvals,
>  {
>  	int i;
>  
> -	if (obj->priv->gvnc == NULL || !gvnc_is_open(obj->priv->gvnc))
> +	if (obj->priv->gvnc == NULL || !gvnc_is_open(obj->priv->gvnc) || obj->priv->read_only)
>  		return;
>  
>  	if (kind & VNC_DISPLAY_KEY_EVENT_PRESS) {
> -- 
> 1.6.0.4
> 

> _______________________________________________
> gtk-vnc-list mailing list
> gtk-vnc-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-vnc-list


-- 
|: http://berrange.com/     -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://freshmeat.net/~danielpb/    -o-   http://gtk-vnc.sourceforge.net :|


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