コード例 #1
0
ファイル: application.go プロジェクト: rosatolen/coyim
// SetApplicationID is a wrapper around g_application_set_application_id().
func (v *Application) SetApplicationID(id string) {
	cstr1 := (*C.gchar)(C.CString(id))
	defer C.free(unsafe.Pointer(cstr1))

	C.g_application_set_application_id(v.native(), cstr1)
}
コード例 #2
0
ファイル: GApplication.go プロジェクト: gotk3/gio
//Sets the unique identifier for application .
//The application id can only be modified if application has not yet been registered.
//If non-NULL, the application id must be valid. See g_application_id_is_valid().
func (v *Application) SetApplicationId(application_id string) {
	cstr := C.CString(application_id)
	defer C.free(unsafe.Pointer(cstr))
	C.g_application_set_application_id(v.native(), (*C.gchar)(cstr))
}