<ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <linklocation="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
<returns>The full path to <paramrefname="widget"/> if it has been created by an item factory, <seelangword="null"/> otherwise. This value is owned by GTK+ and must not be modified or freed.</returns>
The full path of a <paramrefname="widget"/> is the concatenation of the factory path specified in <seecref="M:Gtk.ItemFactory.Construct"/> with the path specified in the <seecref="T:Gtk.ItemFactoryEntry"/> from which the <paramrefname="widget"/> was created.
<paramrefname="popup_data"/> associated with the item factory from which <paramrefname="widget"/> was created, or <seelangword="null"/> if <paramrefname="widget"/> wasn't created by an item factory.</returns>
<summary>Installs an accelerator for <paramrefname="accel_widget"/> in <paramrefname="accel_group"/>, that causes the activate event to be emitted it the accelerator is activated.</summary>
<paramname="accel_widget">Widget to install an accelerator on.</param>
<paramname="full_path">The full path for the <paramrefname="accel_widget"/>.</param>
<paramname="accel_group">The accelerator group to install the accelerator in.</param>
<paramname="keyval">Key value of the accelerator.</param>
<paramname="modifiers">Modifier combination of the acelerator.</param>
This method can be used to make widgets participate in the accel saving/restoring functionality provided by <seecref="M:Gtk.Accel.MapSave"/> and <seecref="M:Gtk.Accel.MapLoad"/>, even if they haven't been created by an item factory. The recommended API for this purpose are the <seecref="P:Gtk.Menu.AccelPath"/> and <seecref="P:Gtk.Widget.SetAccelPath"/>; don't use <seecref="M:Gtk.ItemFactory.AddForeign"/> in new code, since it is likely to be removed in the future.
<paramname="container_type">The kind of menu to create, an object of type 'uint'.</param>
<paramname="path">The factory path of <seecref="T:Gtk.ItemFactory"/>, a string of the form "name".</param>
<paramname="accel_group">A <seecref="T:Gtk.AccelGroup"/> to which the accelerators for the menu items will be added, or <seelangword="null"/> to create a new one.</param>
<summary>Creates an item for <paramrefname="entry"/>.</summary>
<paramname="entry">The <seecref="T:Gtk.ItemFactoryEntry"/> to create an item for.</param>
<paramname="callback_data">Data passed to the callback method of <paramrefname="entry"/>.</param>
<paramname="callback_type">1 if the callback method of <paramrefname="entry"/> is of type <seecref="T:Gtk.ItemFactoryCallback"/>, 2 if it is of type <seecref="T:Gtk.ItemFactoryCallback1"/>.</param>
If the <paramrefname="widget"/> corresponding to <paramrefname="path"/> is a menu item which opens a submenum, then the item is returned. If you are interested in the submenum, use <seecref="M:Gtk.ItemFactory.GetWidget"/> instead.
<summary>Creates the menu items from the <paramrefname="entries"/>.</summary>
<paramname="n_entries">The length of <paramrefname="entries"/>.</param>
<paramname="entries">An array of <seecref="T:Gtk.ItemFactoryEntry"/>s whose <paramrefname="callback"/> members must be of type <seecref="T:Gtk.ItemFactoryCallback1"/>.</param>
<paramname="callback_data">Data passed to the callback methods of all entries.</param>
<summary>Obtains the <paramrefname="widget"/> which corresponds to <paramrefname="path"/>.</summary>
<paramname="path">The path to the <paramrefname="widget"/>.</param>
<returns>The <paramrefname="widget"/> for the given path, or <seelangword="null"/> if <paramrefname="path"/> doesn't lead to a <paramrefname="widget"/>.</returns>
If the <paramrefname="widget"/> corresponding to <paramrefname="path"/> is a menu item which opens a submenu, then the submenu is returned. If you are interested in the menu item, use <seecref="M:Gtk:ItemFactory.GetItem"/> instead.
<summary>Sets a method to be used for translating the path elements before they are displayed.</summary>
<paramname="func">The <seecref="T:Gtk.TraslateFunc"/> delegate to be used to traslate path elements.</param>
<paramname="data">Data to pass to <paramrefname="func"/> and <paramrefname="notify"/>.</param>
<paramname="notify">A <seecref="T:Gtk.DestroyNotify"/> delegate to be called when the <seecref="T:Gtk.ItemFactory"/> object is destroyed and when the translation is changed again.</param>
<returns>Creates a new instance of ItemFactory, using the GLib-provided type</returns>
<remarks>
<para>This is a constructor used by derivative types of <seecref="T:Gtk.ItemFactory"/> that would have their own GLib type assigned to it. This is not typically used by C# code.</para>
Callbacks can access the <paramrefname="popup_data"/> while the menu is posted via <seecref="M:Gtk.ItemFactory.PopupData"/> and <seecref="M:Gtk.ItemFactory.PopupDataFromWidget"/>.
The <paramrefname="mouse_button"/> should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, <paramrefname="mouse_button"/> should be 0.
The <paramrefname="time_"/> should be the time stamp of the event that initiated the popup. If such a event is not available, use <seecref="P:Gtk.Global.CurrentEventTime"/> instead.
The operation of the <paramrefname="mouse_button"/> and the <paramrefname="time_"/> is the same as the <paramrefname="button"/> and <paramrefname="activation_time"/> for <seecref="M:Gtk.Menu.Popup"/>.
The <paramrefname="mouse_button"/> should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, <paramrefname="mouse_button"/> should be 0.
The <paramrefname="time_"/> should be the time stamp of the event that initiated the popup. If such a event is not available, use <seecref="P:Gtk.Global.CurrentEventTime"/> instead.
The operation of the <paramrefname="mouse_button"/> and the <paramrefname="time_"/> is the same as the <paramrefname="button"/> and <paramrefname="activation_time"/> for <seecref="M:Gtk.Menu.Popup"/>.