Method
GtkMenuButtonset_create_popup_func
Declaration [src]
void
gtk_menu_button_set_create_popup_func (
GtkMenuButton* menu_button,
GtkMenuButtonCreatePopupFunc func,
gpointer user_data,
GDestroyNotify destroy_notify
)
Description [src]
Sets func to be called when a popup is about to be shown.
func should use one of
to set a popup for menu_button.
If func is non-NULL, menu_button will always be sensitive.
Using this function will not reset the menu widget attached to
menu_button. Instead, this can be done manually in func.
Parameters
func-
Type:
GtkMenuButtonCreatePopupFuncFunction to call when a popup is about to be shown, but none has been provided via other means, or
NULLto reset to default behavior.The argument can be NULL. user_data-
Type:
gpointerUser data to pass to
func.The argument can be NULL.The data is owned by the caller of the function. destroy_notify-
Type:
GDestroyNotifyDestroy notify for
user_data.The argument can be NULL.