Method
Gtk.MenuButton.set_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
.