예제 #1
0
// PopupAtPointer() is a wrapper for gtk_menu_popup_at_pointer(), on older versions it uses PopupAtMouseCursor
func (v *Menu) PopupAtPointer(_ *gdk.Event) {
	C.gtk_menu_popup(v.native(),
		nil,
		nil,
		nil,
		nil,
		C.guint(0),
		C.gtk_get_current_event_time())
}
예제 #2
0
파일: linux_gtk.go 프로젝트: axet/desktop
func gtk_menu_popup(m GtkWidget, parent GtkWidget, parentitem GtkWidget, fn GPointer, data GPointer, button int, time int) {
	C.gtk_menu_popup(Arg(m), Arg(parent), Arg(parentitem), Arg(fn), Arg(data), C.int(button), C.int(time))
}