Re: gtkentry grab-focus

2006-12-04 Thread control H
For those interested, here's a way to get the desired result. The source of gtkentry.c shows that if the entry receives a click, it resets the selection to the current position of the cursor. Hence the following button-press-event callback works: static gboolean event_cb(GtkWidget*w,GdkEvent*event

gtkentry grab-focus

2006-11-29 Thread control H
Say you have some widgets, one of them being a gtkentry. When you tab through the widgets towards the entry, its text will be selected when the entry gets focus. I would like that behaviour also when I just click the text in the entry. I connect to the grab-focus signal where I select all availabl