Re: Combobox focus event

2017-04-11 Thread Thomas Rønshof
Works fine :-))) Thanks Eric. Regards Thomas Den 04/08/2017 kl. 07:30 PM skrev cecas...@aol.com: > > Another thing to give a try is just to set a boolean in the > "set-focus-child" callback. Not sure if this will always work. I think > that it should. > > I don't know the best workaround for

Re: Combobox focus event

2017-04-08 Thread Eric Cashon via gtk-app-devel-list
Another thing to give a try is just to set a boolean in the "set-focus-child" callback. Not sure if this will always work. I think that it should. I don't know the best workaround for the "focus-in-event" in a combo box. It isn't obvious how to connect that signal for the combobox. Eric

Re: Combobox focus event

2017-04-07 Thread Thomas Rønshof
Thanks :-)) I'l try that. Thomas On 07-04-2017 23:10, cecas...@aol.com wrote: Hi Nicola, The "set-focus-child" on the container fires for the "focus-in-event" and "focus-out-event". I forgot about those container functions though. You can get the toggle button pointer from the

Re: Combobox focus event

2017-04-07 Thread Eric Cashon via gtk-app-devel-list
Hi Nicola, The "set-focus-child" on the container fires for the "focus-in-event" and "focus-out-event". I forgot about those container functions though. You can get the toggle button pointer from the container and set up your "focus-in-event". That way there is no ugly business of using a

Re: Combobox focus event

2017-04-07 Thread Nicola Fontana
Il Fri, 7 Apr 2017 13:52:57 -0400 Eric Cashon via gtk-app-devel-list scrisse: > Thomas, > > Your original question looked easy. Connect the "focus-in-event" to the combo > box and everything will work fine. > ... Hi, GtkComboBox is a GtkContainer, so I would

Re: Combobox focus event

2017-04-07 Thread Eric Cashon via gtk-app-devel-list
Thomas, Your original question looked easy. Connect the "focus-in-event" to the combo box and everything will work fine. The "focus-in-event" works with other widgets. So I tried it out. Couldn't get it to work. Tried changing some combo box functions around and still couldn't get it to work.

Re: Combobox focus event

2017-04-07 Thread tr
Hi Eric, Thanks a lot, looks good. I will try it. If I want the same feature with other widgets, then I can find the structs in the sources from GTK ? Thomas On 04/06/2017 10:43 PM, cecas...@aol.com wrote: Hi Thomas, You can try getting the private toggle button in the combo box. This

Re: Combobox focus event

2017-04-06 Thread Eric Cashon via gtk-app-devel-list
Hi Thomas, You can try getting the private toggle button in the combo box. This isn't a solution using the given GTK api but if you want to inspect the how to get the "focus-in-event" to work with a combo box, this might be helpful. You are working in C right? Eric /* gcc -Wall

Combobox focus event

2017-04-05 Thread Thomas Rønshof
Hi, I can't get focus-in-event to work for a combobox. It seems others have the same problem, when I google. Is there a way to get an event when clicking on a combobox ? Either with the mouse or with TAB. Regards Thomas ___ gtk-app-devel-list