tags:

views:

19

answers:

1

I have one GtkWindow with one GtkVBox and GtkEntry.
Some times it happens that i am unable to access buttons Buttons, lists, entries.
But i am able to add widgets to GtkVBox and it gets updated with new widgets too.

Looks like it loses Focus. i tries with setting focus but it does not helps.

What might be wrong.

+1  A: 

You mention having a pop-up, in a comment. Is this pop-up modal, are you nesting calls to gtk_main(), or calling gtk_dialog_run()?

It sounds a bit as if GTK+ is considering the displayed UI to be "locked", which it also does when a modal dialog is open.

Try it without your timer and pop-up, see if it changes.

unwind
Pop-up is model type, i am not using any nesting calls to `gtk_main`. i am destroying pop-up when timer expires. if gtk locks any window then how should we unlock it?
PP