diff src/gtkimhtml.c @ 8105:42c7227d6e4d

[gaim-migrate @ 8805] Patch from Nathan Fredrickson to fix some accessibility focus issues with conversation windows. The text input does not force itself to have focus all the time now, but typing normal text should still go into the input box. I organized key_press_cb in gtkconv.c so it's sane. I don't think I lost any shortcuts, but it's possible. Also from Nathan Fredrickson, gtkimhtml widgets marked as non-editable no longer allow text to be pasted into themselves. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 15 Jan 2004 03:43:32 +0000
parents 56b74730715f
children 52089b055c12
line wrap: on
line diff
--- a/src/gtkimhtml.c	Thu Jan 15 03:16:21 2004 +0000
+++ b/src/gtkimhtml.c	Thu Jan 15 03:43:32 2004 +0000
@@ -433,6 +433,9 @@
 	guint16 c;
 	GtkIMHtml *imhtml = data;
 
+	if (!gtk_text_view_get_editable(imhtml))
+		return;
+
 	if (selection_data->length < 0) {
 		text = gtk_clipboard_wait_for_text(clipboard);
 	} else {