Hi , On a related note - I have about a 1000 lines of code working well and using gtk source view.
All this is in gtk 3+ I probably have another work of 500 lines to go before I start trying to demo/release to users. should I be prioritizing about : a) upgrading to gtk 4 b) getting the final application to work on windows, mac ? Now I am testing on fedora as I code... Thank you for awesome support so far. cheers, karan On Fri, Jan 19, 2018 at 8:32 PM, Florian Müllner <fmuell...@gnome.org> wrote: > On Wed, Jan 17, 2018 at 3:19 PM, Lucky B.C <lblack...@gmail.com> wrote: > > I'm trying to get the range of the selected word by > > gtk_text_iter_get_offset (start) and gtk_text_ter_get_offset (end) on > > the “extend-selection” signal, > > Right, that doesn't work. There is no selected word when the signal > handler is run, as it's the handler itself that is responsible for > *setting* the selection in the first place. That is, both 'start' and > 'end' are uninitialized and the handler is expected to set them to the > start and end of the word (or line). If you are fine with the > selection that the default signal handler provides and want to get the > selection bounds, you can connect to the 'notify::has-selection' > signal on the text view's buffer and use > gtk_text_buffer_get_selection_bounds() to get the range. > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@gnome.org > https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list > _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list