How to get GtkDropDown selection changes?

What signal is used to tell when a user selects a drop-down item in Gtk4?

I am trying to connect a function after choosing a drop-down item. Also is it possible to determine whether the user clicked the left mouse or right mouse button when choosing an item?

For the first question, you need the signal “notify::selected-item”. See this example.

Alright helpful thanks

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