set_active() sets the 'active' GtkMenuItem in a GtkMenu. Note that this is not the same thing as calling the select() from the menu item, but is a way of adding to the given item's reference count from the menu.
The set_active() method is mainly used internally in GTK, as part of GtkOptionMenu's set_history() method.