gtkItemFactoryPopup: gtkItemFactoryPopup
Description
Pops up the menu constructed from the item factory at (x
, y
).
WARNING: gtk_item_factory_popup
has been deprecated since version 2.4 and should not be used in newly-written code. Use GtkUIManager
instead.
Usage
gtkItemFactoryPopup(object, x, y, mouse.button, time = "GDK_CURRENT_TIME")
Arguments
mouse.button
the mouse button which was pressed to initiate the popup
time
the time at which the activation event occurred
Details
The mouse.button
parameter 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,
mouse.button
should be 0.
The time.
parameter should be the time stamp of the event that
initiated the popup. If such an event is not available, use
gtkGetCurrentEventTime
instead.
The operation of the mouse.button
and the time.
parameter is the same
as the button
and activation.time
parameters for gtkMenuPopup
.