gtkentry is editable but not work, can't write!

I'm followed steps this tutorial

But my 'quickly' have problem when create a gtkentry. I can't write any letter, not have focus and when press tab button, not have focus too.

I created a new ubuntu-application but not work gktentry too. I don't understand this problem.

1

1 Answer

The GTK_CAN_FOCUS flag is required to be set.

If using Glade to develop the UI, you can click on your GtkEntry element, then in the Properties panel, click on the Common tab, then toggle the Can focus: button to Yes.

Run your application again and you will be able to set focus to the field and enter text.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like