ItemFactory.this

Warning gtk_item_factory_new has been deprecated since version 2.4 and should not be used in newly-written code. Use GtkUIManager instead. Creates a new GtkItemFactory. Beware that the returned object does not have a floating reference.

  1. this(GtkItemFactory* gtkItemFactory)
  2. this(GType containerType, string path, AccelGroup accelGroup)
    class ItemFactory

Parameters

containerType GType

the kind of menu to create; can be GTK_TYPE_MENU_BAR, GTK_TYPE_MENU or GTK_TYPE_OPTION_MENU

path string

the factory path of the new item factory, a string of the form "<name>"

accelGroup AccelGroup

a GtkAccelGroup to which the accelerators for the menu items will be added, or NULL to create a new one. [allow-none]

Throws

ConstructionException GTK+ fails to create the object.

Meta