Beispiel #1
0
func app_indicator_set_menu(app AppIndicator, menu GtkWidget) {
	C.app_indicator_set_menu(Arg(app), Arg(menu))
}
Beispiel #2
0
// Sets the menu that should be shown the indicator is clicked on in the panel. An application indicator will not be rendered unless it has a menu.
// This is the C version of the function and should only be used it not using GoGtk.
func (indicator *AppIndicator) C_SetMenu(menu unsafe.Pointer) {
	C.app_indicator_set_menu((*C.AppIndicator)(indicator.IndicatorPtr), (*C.GtkMenu)(menu))
}
Beispiel #3
0
func (indicator *AppIndicatorGotk3) SetMenu(menu *gtk.Menu) {
	C.app_indicator_set_menu((*C.AppIndicator)(indicator.IndicatorPtr), (*C.GtkMenu)(unsafe.Pointer(menu.Native())))
}