1

I'm developing an app in C using Gtk. I have a GtkCombo with some restrictions that should launch an error message when user selects wrong entries in the list. The problem is that when callback launches the error message, pop-down string is still open, and if the user moves the mouse over it, the list acts as if all entries under the mouse pointer where clicked. This behavior stops if the user clicks on an empty window area or other GtkWidget. I've tried changing the focus to another widget, launching button_release signal... Anyone knows how to prevent this bug?

1 Answer 1

1

Try connecting the signal with g_signal_connect_after() instead of g_signal_connect(). The callback should run after the combo popdown has finished all its reactions to the click.

Sign up to request clarification or add additional context in comments.

1 Comment

I'm surprised, but with g_signal_connect_after, the dialog appears at the same point as with g_signal_connect.Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.