How to programmatically close a GtkDropDown list's popup list

I’m working with GTK4 and using a GtkDropDown widget to show a list of items. I regularly needed to update the list. I want to disable the dropdown and close pop up menu (if opened by the user). Thus, I need to programmatically close the dropdown’s pop-up list before updating the list.

Is there a function or method in GTK4 that allows me to close the pop-up list of a GtkDropDown programmatically?

Thanks for your help

I think that’s bad UX.

If you warn the user about the changes, and prevent the user from choosing non functional item, what is the bad side of it?

If you know better applicable way of it, please share with us.

A control via the focus does not work?

Greetings

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.