summary refs log tree commit diff stats
path: root/src/fe-gtk/xtext.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-06-04 07:00:08 -0300
committerTingPing <tngpng@gmail.com>2013-06-04 07:00:08 -0300
commit42e3587fd51b10e987adfcd289ad8ea4b3f74009 (patch)
tree5cc97b6d01cbd726a488dab4810f863e3141d021 /src/fe-gtk/xtext.c
parente3f699a9d8c90baa0a172befb01f22536062af41 (diff)
copy xtext selection to all clipboards
Diffstat (limited to 'src/fe-gtk/xtext.c')
-rw-r--r--src/fe-gtk/xtext.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c
index 81805d99..ae29488a 100644
--- a/src/fe-gtk/xtext.c
+++ b/src/fe-gtk/xtext.c
@@ -71,6 +71,7 @@
 #include "fe-gtk.h"
 #include "xtext.h"
 #include "fkeys.h"
+#include "gtkutil.h"
 
 #define charlen(str) g_utf8_skip[*(guchar *)(str)]
 
@@ -2195,8 +2196,8 @@ gtk_xtext_set_clip_owner (GtkWidget * xtext, GdkEventButton * event)
 	if (str)
 	{
 		if (str[0])
-			gtk_clipboard_set_text (gtk_widget_get_clipboard (xtext, GDK_SELECTION_CLIPBOARD),
-											str, len);
+			gtkutil_copy_to_clipboard (xtext, NULL, str);
+
 		free (str);
 	}