| 4304 if (!imhtml->editable) |
4304 if (!imhtml->editable) |
| 4305 return; |
4305 return; |
| 4306 |
4306 |
| 4307 if (imhtml->wbfo) |
4307 if (imhtml->wbfo) |
| 4308 gtk_text_buffer_get_bounds(imhtml->text_buffer, &start, &end); |
4308 gtk_text_buffer_get_bounds(imhtml->text_buffer, &start, &end); |
| 4309 else |
4309 else if (!gtk_text_buffer_get_selection_bounds(imhtml->text_buffer, &start, &end)) { |
| 4310 if (!gtk_text_buffer_get_selection_bounds(imhtml->text_buffer, &start, &end)) |
4310 GtkTextMark *mark = gtk_text_buffer_get_insert(imhtml->text_buffer); |
| 4311 gtk_text_buffer_get_bounds(imhtml->text_buffer, &start, &end); |
4311 gtk_text_buffer_get_iter_at_mark(imhtml->text_buffer, &start, mark); |
| |
4312 end = start; |
| |
4313 } |
| 4312 |
4314 |
| 4313 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "BOLD", &start, &end); |
4315 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "BOLD", &start, &end); |
| 4314 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "ITALICS", &start, &end); |
4316 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "ITALICS", &start, &end); |
| 4315 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "UNDERLINE", &start, &end); |
4317 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "UNDERLINE", &start, &end); |
| 4316 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "STRIKE", &start, &end); |
4318 gtk_text_buffer_remove_tag_by_name(imhtml->text_buffer, "STRIKE", &start, &end); |