Mercurial > pidgin
changeset 29952:23406bea038f
Prevent pasting into readonly imhtmls on Windows. Fixes #11867
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 16 May 2010 17:08:02 +0000 |
parents | e8b781c23fb6 |
children | 9945fe7098f7 |
files | pidgin/gtkimhtml.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);