mirror of https://github.com/subgraph/fw-daemon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
515 B
20 lines
515 B
7 years ago
|
// +build !gtk_3_6,!gtk_3_8,!gtk_3_10,!gtk_3_12,!gtk_3_14,!gtk_3_16,!gtk_3_18,!gtk_3_20
|
||
|
|
||
|
package gtk
|
||
|
|
||
|
// #cgo pkg-config: gtk+-3.0
|
||
|
// #include <stdlib.h>
|
||
|
// #include <gtk/gtk.h>
|
||
|
import "C"
|
||
|
import (
|
||
|
"unsafe"
|
||
|
|
||
|
"github.com/gotk3/gotk3/gdk"
|
||
|
)
|
||
|
|
||
|
// PopupAtPointer() is a wrapper for gtk_menu_popup_at_pointer(), on older versions it uses PopupAtMouseCursor
|
||
|
func (v *Menu) PopupAtPointer(triggerEvent *gdk.Event) {
|
||
|
e := (*C.GdkEvent)(unsafe.Pointer(triggerEvent.Native()))
|
||
|
C.gtk_menu_popup_at_pointer(v.native(), e)
|
||
|
}
|