ItemFactory.popupWithData

Warning gtk_item_factory_popup_with_data has been deprecated since version 2.4 and should not be used in newly-written code. Use GtkUIManager instead. Pops up the menu constructed from the item factory at (x, y). Callbacks can access the popup_data while the menu is posted via gtk_item_factory_popup_data() and gtk_item_factory_popup_data_from_widget(). 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 gtk_get_current_event_time() instead. The operation of the mouse_button and the time_ parameters is the same as the button and activation_time parameters for gtk_menu_popup().

class ItemFactory
void
popupWithData
(
void* popupData
,,
uint x
,
uint y
,,
uint time
)

Parameters

popupData void*

data available for callbacks while the menu is posted

destroy GDestroyNotify

a GDestroyNotify function to be called on popup_data when the menu is unposted

x uint

the x position

y uint

the y position

mouseButton uint

the mouse button which was pressed to initiate the popup

time uint

the time at which the activation event occurred

Meta