예제 #1
0
파일: mgrgldi.go 프로젝트: sqp/godock
//export onAppletReload
func onAppletReload(cInstance *C.GldiModuleInstance, oldContainer *C.GldiContainer, cKeyfile *C.GKeyFile) C.gboolean {
	mi := gldi.NewModuleInstanceFromNative(unsafe.Pointer(cInstance))
	cont := gldi.NewContainerFromNative(unsafe.Pointer(oldContainer))
	kf := keyfile.NewFromNative(unsafe.Pointer(cKeyfile))
	if apps.reloadApplet(mi, cont, kf) { // if applet matched, which should always be true.
		return notif.ActionIntercept
	}
	return notif.ActionLetPass
}
예제 #2
0
파일: mgrgldi.go 프로젝트: sqp/godock
//export onAppletStop
func onAppletStop(cInstance *C.GldiModuleInstance) {
	mi := gldi.NewModuleInstanceFromNative(unsafe.Pointer(cInstance))
	apps.stopApplet(mi)
}
예제 #3
0
파일: backendgui.go 프로젝트: sqp/godock
//export reloadCurrentWidget
func reloadCurrentWidget(moduleInstance *C.GldiModuleInstance, showPage C.int) {
	m := gldi.NewModuleInstanceFromNative(unsafe.Pointer(moduleInstance))
	ReloadCurrentWidget(m, int(showPage))
}
예제 #4
0
파일: mgrgldi.go 프로젝트: sqp/godock
//export onAppletInit
func onAppletInit(cInstance *C.GldiModuleInstance, cKeyfile *C.GKeyFile) {
	mi := gldi.NewModuleInstanceFromNative(unsafe.Pointer(cInstance))
	kf := keyfile.NewFromNative(unsafe.Pointer(cKeyfile))
	apps.startApplet(mi, kf)
}
예제 #5
0
파일: backendgui.go 프로젝트: sqp/godock
//export showModuleInstanceGui
func showModuleInstanceGui(moduleInstance *C.GldiModuleInstance, showPage C.int) {
	m := gldi.NewModuleInstanceFromNative(unsafe.Pointer(moduleInstance))
	ShowModuleInstanceGui(m, int(showPage))

}