GtkItemFactory: GtkItemFactory

Description Methods and Functions Hierarchy Detailed Description Structures Convenient Construction User Functions Author(s) References

Description

A factory for menus

Methods and Functions

gtkItemFactoryNew(container.type, path, accel.group = NULL)
gtkItemFactoryConstruct(object, container.type, path, accel.group)
gtkItemFactoryAddForeign(accel.widget, full.path, accel.group, keyval, modifiers)
gtkItemFactoryFromWidget(widget)
gtkItemFactoryPathFromWidget(widget)
gtkItemFactoryGetItem(object, path)
gtkItemFactoryGetWidget(object, path)
gtkItemFactoryGetWidgetByAction(object, action)
gtkItemFactoryGetItemByAction(object, action)
gtkItemFactoryCreateItem(object, entry, callback.data = NULL, callback.type)
gtkItemFactoryCreateItems(object, entries, callback.data = NULL)
gtkItemFactoryCreateItemsAc(object, entries, callback.data, callback.type)
gtkItemFactoryDeleteItem(object, path)
gtkItemFactoryDeleteEntry(object, entry)
gtkItemFactoryDeleteEntries(object, entries)
gtkItemFactoryPopup(object, x, y, mouse.button, time = "GDK_CURRENT_TIME")
gtkItemFactoryPopupWithData(object, popup.data, x, y, mouse.button, time = "GDK_CURRENT_TIME")
gtkItemFactoryPopupData(object)
gtkItemFactoryPopupDataFromWidget(widget)
gtkItemFactoryFromPath(path)
gtkItemFactoryCreateMenuEntries(entries)
gtkItemFactoriesPathDelete(ifactory.path, path)
gtkItemFactorySetTranslateFunc(object, func, data = NULL)
gtkItemFactory(container.type, path, accel.group = NULL)

Hierarchy

1
2
3
4
GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkItemFactory

Detailed Description

As of GTK+ 2.4, GtkItemFactory has been deprecated in favour of GtkUIManager.

Structures

GtkItemFactory

WARNING: GtkItemFactory is deprecated and should not be used in newly-written code. undocumented

GtkItemFactoryEntry

WARNING: GtkItemFactoryEntry is deprecated and should not be used in newly-written code. undocumented GtkItemFactoryEntry is a transparent-type.

Convenient Construction

gtkItemFactory is the equivalent of gtkItemFactoryNew.

User Functions

GtkPrintFunc()

undocumented

GtkTranslateFunc(path, func.data)

The function used to translate messages in e.g. GtkIconFactory and GtkActionGroup.

path

The id of the message. In GtkItemFactory this will be a path from a GtkItemFactoryEntry, in GtkActionGroup, it will be a label or tooltip from a GtkActionEntry.

func.data

user data passed in when registering the function

Returns: [character] the translated message

GtkItemFactoryCallback()

undocumented

GtkItemFactoryCallback1()

undocumented

GtkItemFactoryCallback2()

undocumented

Author(s)

Derived by RGtkGen from GTK+ documentation

References

https://developer.gnome.org/gtk2/stable/GtkItemFactory.html


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.

Related to GtkItemFactory in RGtk2...