コード例 #1
0
ファイル: appindicator.go プロジェクト: perlw/appindicator
// Sets the menu to be activated when a secondary activation event (i.e middle-click) is emitted over the indicator icon/label.
// This is the C version of the function and should only be used it not using GoGtk.
func (indicator *AppIndicator) C_SetSecondaryActivateTarget(menu unsafe.Pointer) {
	C.app_indicator_set_secondary_activate_target((*C.AppIndicator)(indicator.IndicatorPtr), (*C.GtkWidget)(menu))
}
コード例 #2
0
ファイル: gotk3.go プロジェクト: perlw/appindicator
func (indicator *AppIndicatorGotk3) SetSecondaryActivateTarget(menuItem *gtk.Widget) {
	C.app_indicator_set_secondary_activate_target((*C.AppIndicator)(indicator.IndicatorPtr), (*C.GtkWidget)(unsafe.Pointer(menuItem.Native())))
}