# HG changeset patch
# User Sean Egan <seanegan@gmail.com>
# Date 1080950146 0
# Node ID 6eb60b70491eebbd6d6ec08a4206a806bca74e1b
# Parent  52473ca8f2e5b48c8881a8a6f04d98b5976eba17
[gaim-migrate @ 9313]
Brining back rich text copy/paste

committer: Tailor Script <tailor@pidgin.im>

diff -r 52473ca8f2e5 -r 6eb60b70491e src/gtkimhtml.c
--- a/src/gtkimhtml.c	Fri Apr 02 20:54:42 2004 +0000
+++ b/src/gtkimhtml.c	Fri Apr 02 23:55:46 2004 +0000
@@ -97,7 +97,7 @@
 static guint signals [LAST_SIGNAL] = { 0 };
 
 GtkTargetEntry selection_targets[] = {
-/*	{ "text/html", 0, TARGET_HTML },*/
+	{ "text/html", 0, TARGET_HTML },
 	{ "UTF8_STRING", 0, TARGET_UTF8_STRING },
 	{ "COMPOUND_TEXT", 0, TARGET_COMPOUND_TEXT },
 	{ "STRING", 0, TARGET_STRING },
@@ -727,13 +727,11 @@
 			  GDK_ACTION_COPY);
 	g_signal_connect(G_OBJECT(imhtml), "drag_data_received", G_CALLBACK(gtk_imhtml_link_drag_rcv_cb), imhtml);
 
-#if 0 /* Remove buggy copy-and-paste for 0.76 */
 #if GTK_CHECK_VERSION(2,2,0)
 	g_signal_connect(G_OBJECT(imhtml), "copy-clipboard", G_CALLBACK(copy_clipboard_cb), NULL);
 	g_signal_connect(G_OBJECT(imhtml), "paste-clipboard", G_CALLBACK(paste_clipboard_cb), NULL);
 	g_signal_connect(G_OBJECT(imhtml), "button-release-event", G_CALLBACK(button_release_cb), imhtml);
 #endif
-#endif
 	gtk_widget_add_events(GTK_WIDGET(imhtml), GDK_LEAVE_NOTIFY_MASK);
 
 	imhtml->tip = NULL;