changeset 7742:6cd69aa58253

[gaim-migrate @ 8387] This should most likely make selecting text in an IMHTML automatically copy it. This might be a bad idea. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 04 Dec 2003 08:27:15 +0000
parents cbf4725c60aa
children a5765980ea1e
files src/gtkimhtml.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Thu Dec 04 08:04:32 2003 +0000
+++ b/src/gtkimhtml.c	Thu Dec 04 08:27:15 2003 +0000
@@ -389,9 +389,14 @@
 	g_free(text);
 	
 	if (!gtk_text_iter_equal(&start, &last))
+#infdef WIN32
+		gtk_clipboard_set_text(gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD), 
+				       str->str, str->len);
+#endif
 		gtk_clipboard_set_text(clipboard ? clipboard :  
 				       gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD), 
 				       str->str, str->len);
+
 	g_string_free(str, TRUE);
 }