[gtk-vnc] Fix data type of arg to cut-text signal in VncConnection
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Fix data type of arg to cut-text signal in VncConnection
- Date: Wed, 3 Nov 2010 14:35:51 +0000 (UTC)
commit f01086725f1996af7396de83632fe5ec1dc0ead5
Author: Daniel P. Berrange <berrange redhat com>
Date: Wed Nov 3 14:34:23 2010 +0000
Fix data type of arg to cut-text signal in VncConnection
The vnc-server-cut-text signal is marshalled by
g_cclosure_marshal_VOID__STRING
so its argument must be a 'const char *', not a 'GString *'
datatype.
* src/vncconnection.c: Fix data type for cut-text signal arg
src/vncconnection.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vncconnection.c b/src/vncconnection.c
index 571cb3a..4a0c53c 100644
--- a/src/vncconnection.c
+++ b/src/vncconnection.c
@@ -389,7 +389,7 @@ struct signal_data
union {
VncCursor *cursor;
gboolean absPointer;
- GString *text;
+ const char *text;
struct {
int x;
int y;
@@ -2474,7 +2474,7 @@ static void vnc_connection_server_cut_text(VncConnection *conn,
return;
text = g_string_new_len ((const gchar *)data, len);
- sigdata.params.text = text;
+ sigdata.params.text = text->str;
vnc_connection_emit_main_context(conn, VNC_SERVER_CUT_TEXT, &sigdata);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]