+
+ /* check there are no images in selection */
+ if (has_selection) {
+ gtk_text_buffer_get_selection_bounds (GTK_TEXT_BUFFER (buffer), &start, &end);
+ if (gtk_text_iter_get_char (&start)== 0xFFFC)
+ has_selection = FALSE;
+ else {
+ gtk_text_iter_backward_char (&end);
+ if (gtk_text_iter_forward_find_char (&start, _forward_search_image_char,
+ NULL, &end))
+ has_selection = FALSE;
+ }
+
+ }