pidgin: 8ff2ee29: Prevent pasting into readonly imhtmls on...

datallah at pidgin.im datallah at pidgin.im
Sun May 16 13:15:54 EDT 2010


-----------------------------------------------------------------
Revision: 8ff2ee29eabe00715f5da3d756f3bf52b9509879
Ancestor: 2a7ad9dd15f080096423a10b56336b0f1c25783a
Author: datallah at pidgin.im
Date: 2010-05-16T17:08:02
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8ff2ee29eabe00715f5da3d756f3bf52b9509879

Modified files:
        pidgin/gtkimhtml.c

ChangeLog: 

Prevent pasting into readonly imhtmls on Windows. Fixes #11867

-------------- next part --------------
============================================================
--- pidgin/gtkimhtml.c	6330df8878a0fb043601f60ab382a99a2cde34d2
+++ pidgin/gtkimhtml.c	e05445dce47c3bf29c3cbe9d7279ec4c33175b3f
@@ -1262,7 +1262,7 @@ static void paste_clipboard_cb(GtkIMHtml
 #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);
 


More information about the Commits mailing list