Can not find the gtk_menu_button_set_icon_name Function in the api!

I am creating a menu button and I called the gtk_menu_button_set_icon_name but seems to not exist.

The documentation does not say something about it, being deprecated or removed, instead the compiler says:

error: implicit declaration of function ‘gtk_menu_button_set_icon_name’; did you mean ‘gtk_tool_button_set_icon_name’? [-Wimplicit-function-declaration]|

That function is from GTK4. You are probably using GTK3.

1 Like

Yes, you are right. I was Here and used the search field ( top-right) and somehow I got there. Did not noticed.

Thank you