set_accel_widget() is called within GTK+ at the point where a GtkAccelLabel is added to a menu item.
There should be no reason to call this method unless you are writing an original widget.