# HG changeset patch # User Daniel Atallah # Date 1274029682 0 # Node ID 23406bea038f6c4355e52273a7a57512cd0427d4 # Parent e8b781c23fb615d9cd1847429e0f350f86ccfed7 Prevent pasting into readonly imhtmls on Windows. Fixes #11867 diff -r e8b781c23fb6 -r 23406bea038f pidgin/gtkimhtml.c --- a/pidgin/gtkimhtml.c Sat May 15 06:13:15 2010 +0000 +++ b/pidgin/gtkimhtml.c Sun May 16 17:08:02 2010 +0000 @@ -1262,7 +1262,7 @@ #ifdef _WIN32 /* If we're on windows, let's see if we can get data from the HTML Format clipboard before we try to paste from the GTK buffer */ - if (!clipboard_paste_html_win32(imhtml)) { + if (!clipboard_paste_html_win32(imhtml) && gtk_text_view_get_editable(GTK_TEXT_VIEW(imhtml))) { GtkClipboard *clipboard = gtk_widget_get_clipboard(GTK_WIDGET(imhtml), GDK_SELECTION_CLIPBOARD); gtk_clipboard_request_text(clipboard, paste_plaintext_received_cb, imhtml);