Re: turn on italics in TextView

2017-06-20 Thread Eric Cashon via gtk-app-devel-list
On that last post, I think that I have some bad pointer arithmetic. Moving a pointer past the end and freeing a moved pointer. Not so good. Eric ... GSList *tlist=NULL; GSList *p=NULL; GSList *next=NULL; tlist=gtk_text_iter_get_tags(); p=tlist; if(tlist!=NULL) {

Re: turn on italics in TextView

2017-06-20 Thread Eric Cashon via gtk-app-devel-list
Another option is to look at the properties of the tags to get the information that you need. This might work better than saving globals and matching pointers. Eric ... GSList *tlist=NULL; GSList *next=NULL; tlist=gtk_text_iter_get_tags(); if(tlist!=NULL) { do

Re: Find path under mouse

2017-06-20 Thread Anthony Ruth
If I understand correctly, you want to get the x and y value of the mouse at the time when the keyboard event happens. You can either use GdkDeviceManager to get the pointer and then get x and y from that, or listen for motion_notify events on your treeview and keep track of x and y values (I