Esempio n. 1
0
// 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)
}
Esempio n. 2
0
//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))
}