void connect_proxy(GtkWidget proxy);

This method allows you to tie a particular widget to an action object. Using this method will result in synchronisation of all the properties of the action with the widget (such as label, icon, tooltip etc.) It will also attach a callback so that the action gets activated when the proxy widget does.

If the widget is already connected to an action, it is disconnected first.

See also: disconnect_proxy()