I am very new to C++ gtkmm (Linux) programming. I developing a program where I need a button to be clicked in the callback function of another button on the gui. I have tried button.activate() But it only animates the button click but the callback function is not called. When I click the button manually, the callback function is called. Please explain how to inject event into the gtkmm C++ coding. Events may include button press, key press etc.