Creates a new instance of the GtkItemFactory class.
One factory can be used for one menu, and not more. This means that if you want to have
a standard GtkMenuBar at the top of a window and an additional
right-click popup menu, you have to use 2 item factories.
The container_type determines, which type the root menu will have:
GtkMenu, GtkMenuBar or
GtkOptionMenu. To get the GtkType you want,
just use the the get_type() function of this class:
$type = GtkMenuBar::get_type();
The path is a unique name for this menu, enclosed in
< and >, e.g. <mainmenu>.
This path has to be unique in the whole application.
The accel_group is the accelerator group belonging to this window
and is responsible for the menu shortcuts. It can be NULL, but then the
menu shortcuts won't work.