I have a text view which displays the contents of a file.
When i select/highlight some text, i use the get_selection_bounds() function to get the selected text and then i display the selection in another text view.
what i want to do now is to check wether the selection has characters on either side (i.e is it part of a word?)
if "or" is selected, there are characters on either side. any ideas on how to
here is my code to find the boundary of selected text and store it:
gtk_text_buffer_get_selection_bounds (widget->buffer1, &start, &end);
selected = gtk_text_buffer_get_text (widget->buffer1, &start, &end, FALSE);