[gaim-migrate @ 15498]

Mon, 06 Feb 2006 08:00:22 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Mon, 06 Feb 2006 08:00:22 +0000
changeset 13137
e593b638b636
parent 13136
0438506e90ac
child 13138
4d3bd039da3e

[gaim-migrate @ 15498]
Part of SF Patch #1415135 from Sadrul
Fixes SF Bug #1414719

The bug description is:
"Using Gaim 2.0.0 beta 2.
In the conversation window, if I select some text in
the _scrollback_ and then i send or receive a message,
the font face of the selected text is resetted (set to
default) and the foreground color is set to black
(default?)"

committer: Richard Laager <rlaager@pidgin.im>

src/gtkimhtml.c file | annotate | diff | comparison | revisions
--- a/src/gtkimhtml.c	Mon Feb 06 07:53:51 2006 +0000
+++ b/src/gtkimhtml.c	Mon Feb 06 08:00:22 2006 +0000
@@ -4280,7 +4280,7 @@
 			gtk_text_buffer_get_bounds(imhtml->text_buffer, &start, &end); \
 			remove_func(imhtml, &start, &end, TRUE); \
 		} else { \
-			if (gtk_text_buffer_get_selection_bounds(imhtml->text_buffer, &start, &end)) \
+			if (imhtml->editable && gtk_text_buffer_get_selection_bounds(imhtml->text_buffer, &start, &end)) \
 				remove_func(imhtml, &start, &end, TRUE); \
 		} \
 	} \

mercurial