patches/gtk-vnc-01-cp-utf8.diff
author yippi
Mon, 27 Sep 2010 21:07:51 +0000
changeset 20108 51df67ca9307
parent 16244 d5c21f9e92cf
permissions -rw-r--r--
I had these modules listed as being owned by me, but they are really owned by wangke, correcting.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16244
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     1
commit 6836a24b21063c6f45728addde4348b3453f53eb
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     2
Author: Halton Huo <[email protected]>
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     3
Date:   Wed Aug 12 11:48:20 2009 +0800
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     4
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     5
    Fix gtk-vnc breaks strings in copy/paste because it removes the end of '\0'. Closes #591523.
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     6
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     7
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     8
index e587dfb..d54cbe9 100644
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
     9
--- a/src/vncdisplay.c
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    10
+++ b/src/vncdisplay.c
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    11
@@ -2129,7 +2129,7 @@ void vnc_display_client_cut_text(VncDisplay *obj, const gchar *text)
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    12
 	g_return_if_fail (VNC_IS_DISPLAY (obj));
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    13
 
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    14
 	if (!obj->priv->read_only)
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    15
-		gvnc_client_cut_text(obj->priv->gvnc, text, strlen (text));
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    16
+		gvnc_client_cut_text(obj->priv->gvnc, text, strlen (text) + 1);
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    17
 }
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    18
 
d5c21f9e92cf 2009-08-12 Halton Huo <[email protected]>
halton
parents:
diff changeset
    19
 void vnc_display_set_lossy_encoding(VncDisplay *obj, gboolean enable)